Groups | Search | Server Info | Login | Register


Groups > comp.databases.xbase.fox > #56

Re: Using LostFocus instead of Valid

From Gene Wirchenko <genew@telus.net>
Newsgroups comp.databases.xbase.fox, microsoft.public.fox.programmer.exchange
Subject Re: Using LostFocus instead of Valid
Date 2013-01-30 12:19 -0800
Organization A noiseless patient Spider
Message-ID <3vvig89u90isng505g6v3tp5rscm7f17a8@4ax.com> (permalink)
References <n4ndg89bgf1hjj9umpsrjniov9ju022v5d@4ax.com> <ke93db$icl$1@dont-email.me> <gblgg8tabskgs8ormdu5543qeiqh6gem24@4ax.com> <keacbh$aru$1@dont-email.me>

Cross-posted to 2 groups.

Show all headers | View raw


On Tue, 29 Jan 2013 21:50:43 -0800, Dan Freeman <dan@dfapam.com>
wrote:

>Gene Wirchenko laid this down on his screen :
>> On Tue, 29 Jan 2013 10:11:56 -0800, Dan Freeman <dan@dfapam.com>
>> wrote:
>>
>> [snip]
>>
>>> They're really very different conditions and using one for the other's 
>>> purpose seems like you're swimming against the tide. You wouldn't use 
>>> Click() to handle a Keypress().
>>
>>      It is a limitation of VFP that one can not have a second Valid
>> being executed while there is another in the call chain.  I sometimes
>> have a Valid being executed and would then like to have validation on
>> a nested form.  I can not do that using Valid.  With LostFocus, it is
>> apparently possible.  I want that flexibility.  My app would be more
>> user-friendly.
>
>Seems like you're playing convenient semantics games.

     I have no idea what you are talking about.

>In the VFP object model, valid must return before focus can leave a 
>control. You want to use another control in another VFP container to do 
>something you're calling validation, and that's fine, but it isn't what 
>VFP calls validation.

     No.  As I stated, the validation is done in the same control's
LostFocus.  It is only the SetFocus that is elsewhere.

>In that case, your previously described observer pattern is appropriate 
>but all behaviors rightly belong in the observer and not in the object 
>being observed.
>
>When bypassing VFP's normal tab order processing there won't be any 
>convenient way to taking advantage of the tab order processing that 
>you're intentionally bypassing. Full kludge ahead!

     Someone else, on ProFox, was nice enough to point out that I
should use nodefault in the LostFocus to cancel the focus change. That
works nicely.

Sincerely,

Gene Wirchenko

Back to comp.databases.xbase.fox | Previous | NextPrevious in thread | Find similar


Thread

Using LostFocus instead of Valid Gene Wirchenko <genew@telus.net> - 2013-01-28 12:28 -0800
  Re: Using LostFocus instead of Valid Bernhard Sander <fuchs@kein.spam> - 2013-01-29 13:59 +0100
    Re: Using LostFocus instead of Valid Gene Wirchenko <genew@telus.net> - 2013-01-29 10:30 -0800
  Re: Using LostFocus instead of Valid Dan Freeman <dan@dfapam.com> - 2013-01-29 10:11 -0800
    Re: Using LostFocus instead of Valid Gene Wirchenko <genew@telus.net> - 2013-01-29 15:07 -0800
      Re: Using LostFocus instead of Valid Dan Freeman <dan@dfapam.com> - 2013-01-29 21:50 -0800
        Re: Using LostFocus instead of Valid Gene Wirchenko <genew@telus.net> - 2013-01-30 12:19 -0800

csiph-web