Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Move focus from toolbar textbox to active form control
Message
 
To
07/06/2005 16:43:20
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01021089
Message ID:
01021142
Views:
20
>An additional observation based on debug info I've scattered throughout my code:
>
>_Screen.ActiveForm.ActiveControl.SetFocus() is correctly setting focus to the proper control - I can verify by seeing that each control's GotFocus() event is being raised.
>
>The problem is that the control gaining focus can't keep it - instead VFP returns focus back to the toolbar control that issued the SetFocus() request.
>
>Any insight?
>
>Thanks,
>Malcolm


OK, OK let's mix your with my code :o)))
if type( "_Screen.ActiveForm.ActiveControl.Name" ) == "C"
  wndActive = _Screen.ActiveForm.Name
  MOUSE CLICK AT 0,0 WINDOW (_wndActive)
  set message to "Setfocus() to " + _Screen.ActiveForm.ActiveControl.Name
else
  set message to "No activecontrol to set focus to"
endif
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform