Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Catch22 in When Event
Message
 
To
16/05/2002 04:44:51
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00656948
Message ID:
00657309
Views:
32
Len,
The problem is in the GotFocus event. (I have to use this if I want a SetFocus command

Bu if I just have a return .f. in the GotFocus, it stays in the control
If I Have a Nodefault, it jumps out of the control but seems to labd on the control whos tabindex = 1

I want to be able to jump to the next control in the Tab order, without issuing a setfocus command from the GotFocus.

regards,

Gerard




>>Cetin, I've just been having another look at this:
>>
>>It seems if I issue a NODefault in the GotFocus event, without a Setfocus, focus goes to the FIRST object in the Tab Order on the screen.
>>What I want to do is go to the NEXT object in the Tabindex, but without having to do an explicit MyObject.setfocus. i.e I always want it to go to whatever is the next object in the tabindex:
>
>
>I guess I'm missing something obvious here, but doesn't returning false in the When event have the required effect. In your original code the .F. was missing from the return, so it would return .T. by default
>
>
>When Event:
>Cmd1
>Cmd2
>cmd3
>If !MyTest1
>    return .F.
>Endif
>If !Mytest2
>    Return .F.
>Endif
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform