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 16:43:20
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:
01021142
Vues:
17
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform