General XMetaL Discussion

XMetaL Community Forum General XMetaL Discussion Deactivating toolbar buttons when changing view mode

  • bjorn

    Deactivating toolbar buttons when changing view mode

    Participants 0
    Replies 1
    Last Activity 5 years, 8 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#:




    Reply to: Deactivating toolbar buttons when changing view mode

    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.

Lost Your Password?