General XMetaL Discussion
XMetaL Community Forum › General XMetaL Discussion › Disabling Change Tracking Toolbar Controls
-
gihyunlee December 8, 2008 at 9:00 pm
Disabling Change Tracking Toolbar Controls
December 8, 2008 at 9:00 pmParticipants 4Replies 5Last Activity 14 years, 1 month agoIs there an easy way to disable the change tracking controls ('Track Changes' and 'Accept or Reject Changes…') from a XMetaL document customization?
From my understanding of the documentation, I cannot set
CommandBarControl_object.Enabled = false
if the control is a built in control. Please let let me know if there is a way to do this. The current way I am doing this is to remove the two items from the menu bar altogether.
mag3737 December 9, 2008 at 10:44 pm
Reply to: Disabling Change Tracking Toolbar Controls
December 9, 2008 at 10:44 pmRemoving the items the only way I know how to do it. I'll invite Derek to chime in if he knows something different.
I assume your purpose is that you want Change Tracking operations to be on/off at your own control, not at the user's. Are you also remembering to disable the “Reviewing” toolbar which provides access to the same (and more) operations?
gihyunlee December 10, 2008 at 3:23 am
Reply to: Disabling Change Tracking Toolbar Controls
December 10, 2008 at 3:23 amRemoving the items the only way I know how to do it. I'll invite Derek to chime in if he knows something different.
I assume your purpose is that you want Change Tracking operations to be on/off at your own control, not at the user's. Are you also remembering to disable the “Reviewing” toolbar which provides access to the same (and more) operations?
Yes, the purpose of disabling the track changes operations is to be able to control them. I dont want to completely remove them because I could not figure out how to re-add them back if they are needed later on. If it is just as easy to re-add the change tracking controls, please let me know.
And thank you, I did forget about the Reviewing toolbar.
XMetaLOldTimer December 11, 2008 at 7:21 am
Reply to: Disabling Change Tracking Toolbar Controls
December 11, 2008 at 7:21 amIf your requirement is to stop change-tracking for custom operations/macros, you can toggle off the 'TrackRevisions' property on ActiveDocument and restore it when the macro/script completes.
Regards,
AddamP.S. CommandBarControl.Enabled still remains unimplemented for both built-in or custom toolbar controls. You can only disable custom controls via Application.DisableMacro(macroName).
gihyunlee December 11, 2008 at 7:56 am
Reply to: Disabling Change Tracking Toolbar Controls
December 11, 2008 at 7:56 amThanks for the input. So, I figured out how to reset the tool bars, much easier than I thought.
So if one cannot disable a built in CommandBarControl, is it possible to disable the “Reviewing” toolbar as mag3737 stated?
I've tried executing the following code snipped from various macros and it will not disable the Reviewing toolbar.
[code]var cmdBars = Application.CommandBars;
var revBar = cmdBars.item(“Reviewing”);
revBar.Enable = false;[/code]This does not disable the reviewing toolbar. I've also tried to individually disable each control within the Reviewing toolbar and had no better success. But XMetaLOldTimer's note explains why this doesnt work.
Any suggestions? Is it possible to completely disable the Reviewing toolbar?
Just as a little background I am doing this in a document customization and not an application customization.
-
AuthorPosts
- You must be logged in to reply to this topic.