Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How is the form events order when its calling
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00851707
Message ID:
00852556
Vues:
7
Hi Again,
yes my toolbar cmdaddnew.click button code as your code and before i'am detecting it like below code
* Toolbar.cmdAddNew.Click()
If type("_screen.activeform")<>"O"	
	thisform.stop() && makes disable controls
	RETURN .t.
ENDIF
_screen.ActiveForm.AddNew()
i think your keypress event code will solve my problem and i don't need to use on key label f2 oToolbar.cmdaddnew.click() command at loadevent and for release it on destroy event . isn't it ?
* Form.KeyPress( nKeycode, nShiftAltCtrl )
if ( nKeyCode = -1 ) && F2
   this.AddNew()
   nodefault && prevent the key from being seen by the current ActiveControl
endif

return dodefault( nKeycode, nShiftAltCtrl )
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform