Page 1 of 1

Hide ViewList, Selection Filter, Clipboard Display from ToolBar

Posted: Tue Apr 10, 2018 3:24 pm
by sarlaa
Hi,

I want to hide ViewList, Selection Filter, Clipboard Display from ToolBar.

For hiding BlockList I can do :

Code: Select all

var action = RGuiAction.getByScriptFile("scripts/Widgets/BlockList/BlockList.js");
action.setWidgetNames(["ViewMenu", "ViewToolsPanel", "WidgetsMatrixPanel"]);
But could you tell me how to hide ViewList, Selection Filter, Clipboard Display also from ToolBar (you can see the picture ToHideFromToolBar.PNG).

Thans in advance.

Re: Hide ViewList, Selection Filter, Clipboard Display from ToolBar

Posted: Tue Apr 10, 2018 3:51 pm
by andrew
In the init function of one of your tools, you can do:

Code: Select all

RSettings.setValue("BlockList/VisibleInToolBar", false);
RSettings.setValue("ViewList/VisibleInToolBar", false);
RSettings.setValue("SelectionFilter/VisibleInToolBar", false);
RSettings.setValue("ClipboardDisplay/VisibleInToolBar", false);

Re: Hide ViewList, Selection Filter, Clipboard Display from ToolBar

Posted: Tue Apr 10, 2018 4:00 pm
by sarlaa
It works. Thanks !