Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Move focus from toolbar textbox to active form control
Message
 
À
07/06/2005 17:07:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01021089
Message ID:
01021147
Vues:
18
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform