I'm looking for a way to disable or hide most of the toolbar items when selection is in a certain tag. So far I'm able to disable only buttons and even that not for 100% cause when marking some text CUT and PASTE buttons come back to life on their own. Lists and other controls don't even seem to have the option of being disabled.
Is there a way to either disable for good (until I decide to enable them again) or just change their style to hidden and no matter what anything else does they aren't even displayed.
Is there a way to set IDs for all the controls?
Any ideas?
Is there a way to either disable for good (until I decide to enable them again) or just change their style to hidden and no matter what anything else does they aren't even displayed.
Is there a way to set IDs for all the controls?
Any ideas?
Re: Disabling hidding toolbar items.
This is how to get a control handler.
This is how to hide/unhide it for good so no other event will activate it.
This IS ugly and this IS brutal, as I said, so I'm still looking for a way to disable controls in the traditional way, and force lock them, without having empty gaps in the toolbar.