Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Shortcut Keys for Toolbar Buttons
Message
De
20/01/1999 13:32:29
 
 
À
20/01/1999 13:28:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00178065
Message ID:
00178156
Vues:
34
It's not necessarily if every form supports this behaviour. When you leave a form you will fire next form Activate code, i.e. it does not matter what form lost the focus, it matters what form has focus now. It's another story that each form may reset some properties of mediator object to prepare situation which will be analyzed upon next form activation.

>Yes it could but you have more flexibility using the Got/LostFocus as you can test the state of the toolbar or menu selectively according to which form has focus.
>
>>Actually, all this code can be put into FormClass.Activate event, i.e. each Form object knows what to do with toolbar, menu and all mediator object properties.
>>
>>>Hi Vinod ---
>>>
>>>The way I have done this in the past is to put code enabling/disabling toolbars and menu items in the GotFocus and LostFocus of my form classes....this works well because as you move from form to form the menu and/or toolbar may blink but they stay enabled. If you close the last form then they get disabled as there is no GotFocus enabling them again.
>>>
>>>
>>>>
>>>>The only thing is that menu should only become active when that toolbar is visible & that toolbar is visible only when user chooses any form(s) for data entry...
>>>>
>>>>Can u pls advs.. How I can do this ??
>>>>
>>>>TIA
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform