Toolbars syntax

Build 1501 on 14/Nov/2017  This topic last edited on: 6/Sep/2016, at 13:33

This topic shows the syntax of script calls for toolbar icons (in WinUI and additional ones). It applies on script without parameters, and on scripts with a single string parameter.

Scripts with more than one parameter, or with one parameter that is not a string parameter, cannot be called from menus, toolbars and keys/mouse.

Typical entries - without parameters

To call scripts without any parameter, for icons non in WinUI (the name prefix is #):

<l:TBBtn CommandParameter="ToggleAllPalettes" ToolTip="Toggle All Palettes" Icon="#nu19.gif" />

To call scripts without any parameter, for icons in WinUI (the name prefix is %):

<l:TBBtn CommandParameter="SaveDesktop" ToolTip="Save Workspace" Icon="%13_save workspace_16.png" />

To call scripts without any parameter, for custom icons:

<l:TBBtn CommandParameter="RunSkype" ToolTip="Run Skype">

 <l:ConfigIcon IconName="tlb_skype" Size="16" />

</l:TBBtn>

Typical entries - with parameters

These are suitable to call scripts with one string parameter. Add this statement:

Param="<param_string>"

Example

<l:TBBtn CommandParameter="ExecuteWorkflowOnObjects" ToolTip="Publish to News" Icon="#nu14.gif" Param="wf=publish&amp;Pars=DestPath:/GNWeb/News;prompt:false;promptMode:true;" />

See also

If a modified menu command / shortcut key do not function