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
Titre:
Disabling timer-edit toolbars vfp7/8
Divers
Thread ID:
00823204
Message ID:
00823204
Vues:
56
I have top-levels using timers to check and enable/disable for system cut/copy/paste-type edits, which generally works fine for menus and toolbars. The idea was originally from Tamar Granor around '97 or so, to give proper credit.

I also have some popup editboxes with their own right-click edit menus in modals, very similar in functionality. When the modals are open, I have a standard framework TL method that disables the entire toolbar and menu functionality, and when a modal is opened, it starts out that way just fine, with menus/toolbar all disabled. When the modals are closed, all the proper toolbar buttons/menus are enabled again. Works fine, for the most part.

Tha Paste toolbar click, for example has:

SYS(1500,'_MED_PASTE','_MEDIT') which is in sync with the menu functionality.

Again, all works fine generally, but I've been receiving a complaint or two that when the modals are in use and edits are being done on them, the toolbar edit buttons still become enabled (the Paste toolbar button is enabled most often, but Cut/Copy/Undo also get enabled), even though they are inaccessible due to the modal. (The users haven't yet realized the TL Edit menu actually works, oddly, but I'm not concerned, because the TL menu actually works, even with a modal open.) It's just the toolbar buttons that *look* enabled but are not accessible that are the problem.

Some users would like the toolbar edit functions disabled. I tried to demonstrate that's not standard behavior by showing numerous modals in Word, Excel, etc, where they don't bother to disable ANY toolbar buttons. At least I *try* to disable toolbars when modals are activeforms, better than most MS and other apps do.

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:

cSkipbar = SKPBAR(system edit variables), which is EVALed by the toolbar timer. I've played with this, but it doesn't seem to like to be changed at runtime at all. I've also tried temporarily stopping the timer, and that sort of works, but then any clipboard info gets interrupted and the edit functions get erratic.

Just trying to keep users happy, and I sort of agree toolbars should be disabled if not accesssible...

This is perhaps a little confusing and difficult to explain, but maybe someone has been through this, and has an idea on how to keep the toolbar edit buttons totally disabled while a modal menu is in active edit status?
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform