Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disabling timer-edit toolbars vfp7/8
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00823204
Message ID:
00823234
Views:
25
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform