Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SETFOCUS() in lost focus event.
Message
From
07/06/1999 20:35:00
 
 
To
06/06/1999 22:23:56
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00226954
Message ID:
00227317
Views:
32
>>Am I going crazy here.
>>
>>If you put a THIS.setfocus() call in the lost focus event of a dropdown/combobox, should that not force the combobox to keep regain focus ?
>>
>>At the moment it is not ... and I'm sure I have tried this before.
>>
>>Any comments or suggestions?
>
>If you are not using a toolbar, then the above just wasted your time <g> -- and you may want to provide a little more detail.

Actually more a theory question ... how can you force a dropdown box to keep focus without using a NODEFAULT on the keypress <>

Since the dropdown does not fire its valid clause when you exit the field (it fires when you select a value) ... I need to include code in the lostfocus to make sure that the box actually contains a valid value.

This is done by adding some code to the lostfocus that checks if a valid has actually fired for the dropdown ... if it has not then I want to force the combo to keep focus.

Any comments of suggestions ?
Previous
Reply
Map
View

Click here to load this message in the networking platform