General XMetaL Discussion
bjorn July 4, 2017 at 12:15 pm
Deactivating toolbar buttons when changing view modeJuly 4, 2017 at 12:15 pmParticipants 0Replies 1Last Activity 5 years, 4 months ago
We use track changes when editing documents.
I see when I switch from “Tags on view” mode to “Plain text view” mode the buttons in the reviewing toolbar goes gray, meaning that they can't be used. I have added a custom button to the reviewing toolbar and I want the new button to also be “gray” when changing to “Plain text view”.
I guess the function that is making the default reviewing buttons gray is a builtin function in XMetaL, meaning that they cannot be altered.
Is there a function that is executed when changing view mode? Maybe I can change this method to deactivate the new button/icon.
Or do you have any other suggestions to solve this?
Using XMetaL Version#: 9.0.0.053
Thanks!tonys July 5, 2017 at 3:26 am
Reply to: Deactivating toolbar buttons when changing view modeJuly 5, 2017 at 3:26 am
I believe when disabling macros it is best to use the On_Update_UI even macro. All macros are enabled when this is called so disabling macros elsewhere will probably give the wrong result.
Try something like this:
if (ActiveDocument.ViewType == 2) /* 2: plain text */
- You must be logged in to reply to this topic.