Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disabling timer-edit toolbars vfp7/8
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00823204
Message ID:
00823234
Vues:
26
>However, I'm stuck for ideas on how to disable the toolbar buttons. I can't disable the TL menu, obviously (which could be one way to do it), but then the modal edits won't work either. In the toolbar edit buttons is an added property:

Major Duh...on the commute home, realized was making a mountain out of a you-know-what...

All I needed was a TL property, call it lModal for the modal entry and exit TL methods:

Enter a modal: topmain.lModal = .T.
Exit modal: topmain.lModal = .F.

Code added to top of toolbar Timer event (to poll for edits):
if topmain.lModal
  return
endif
Works fine, super-simple, and no need to mess with vfp internal edit functionality. Thinking too hard or something, I guess, just needed to step back and take a fresh look...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform