Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SETFOCUS() in lost focus event.
Message
From
06/06/1999 22:23:56
 
 
To
06/06/1999 22:10:05
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00226954
Message ID:
00226957
Views:
30
>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?

Don't know where you are doing this. I went crazy with the same problem as soon as I moved my save button off my form onto a toolbar. (The toolbar never gains focus, so you leave the control without ever activating the valid or lostfocust event.)

The solution for toolbars was actually given to me on this board. The control is still active. So put a statement in your save (or whatever) button. PseudoCode is as follows:
IF the current ACTIVECONTROL IS A TEXTBOX, EDIT OR COMBO CONTRO
  *Actual code
  REPLACE (_SCREEN.ACTIVEFORM.ACTIVECONTROL.CONTROLSOURCE);
     WITH _SCREEN.ACTIVEFORM.ACTIVECONTROL.VALUE
  *BACK TO PSEUDO CODE
END IF
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.

Thanks
Thanks

Gar W. Lipow
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform