User Tools

Site Tools


dev-guide:linking-help-button

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
dev-guide:linking-help-button [2024/07/08 12:04] timObdev-guide:linking-help-button [2024/07/08 12:19] (current) timOb
Line 24: Line 24:
    
 In the case of an explorer created by a resource directory, the path in the properties file is ''/ui/panels/objects/<Name-of-the-dir>''. In the case of an explorer created by a resource directory, the path in the properties file is ''/ui/panels/objects/<Name-of-the-dir>''.
 +
 +
 +===== Adding a new help button to a panel =====
 +
 +In order to add a help button to the upper right corner of a panel without a menu, the easiest way is to link the default menu which already includes a help button. This can be done by adding '' <link source="/ui/explorer/menu"/>'' as a child of any PanelFactory (<panel>).
 +If a menu already exists,  the following lines can be added as the last entry of the src directory.
 +<code>
 +  <separator fill="true" />
 +  <link source="/ui/doc/helpButton"/>
 +</code> 
 +
 +If the help is not suppose to be added as a button but as a regular menu item, ''<link source="/ui/doc/help"/>'' can be added similar to any other factory or command.
 +
  
  
dev-guide/linking-help-button.1720433044.txt.gz · Last modified: 2024/07/08 12:04 by timOb