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 17:07:03
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01021089
Message ID:
01021147
Views:
21
This message has been marked as a message which has helped to the initial question of the thread.
Yes it is Thank you :o)))

I just played around this and if you want to click on active control
if type( "_Screen.ActiveForm.Name" ) == "C"
  local lcActiveForm
  lcActiveForm = _Screen.ActiveForm.Name
  IF NOT ISNULL(_Screen.ActiveForm.ActiveControl)
    **** Click in the middle of the Control, but this is dangerous if the control is a button
    **** or if you have some code in Click Event of the control
    mTop  = INT(_screen.ActiveForm.ActiveControl.Top  + _screen.ActiveForm.ActiveControl.Height/2)
    mLeft = INT(_screen.ActiveForm.ActiveControl.Left + _screen.ActiveForm.ActiveControl.Width/2)
    MOUSE CLICK WINDOW (m1) AT mTop,mLeft PIXELS
  ELSE
     mouse click at -1, 0 pixels window (lcActiveForm) && Just to make sure you don't have a control on 0,0 position of the form
  ENDIF
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
Next
Reply
Map
View

Click here to load this message in the networking platform