Page History
...
The RemoveControls method permanently removes controls from the ribbon. If you want to temporarily hide controls, use the ControlVisible property instead.
All you have to do is pass an @FM delimited list of control keys. It does not matter where in the ribbon these controls live, since any control's key must be unique anyway. Note that any commands associated with the deleted controls are not deleted. This allows you to reuse those commands later.
...
Code Block |
---|
// Delete all four instances of our Find buttons KeyList = "BTN_FIND":@FM:"QA_BTN_FIND":@FM:"TB_BTN_FIND":@FM:"SPL_BTN_FIND" Send_Message(@Window:".OLE_RIBBON", "OLE.RemoveControls", KeyList) |