3.15 Implementing help texts

RapaGUI supports several ways of implementing context-sensitive help texts in your applications. First of all, every widget can have tooltips that pop up after the mouse has been hovering over a widget for some time. This is done via the Area.Tooltip attribute. As Area class is the super class for all widgets, you can use this attribute to add tooltip help to all your widgets. Here is an example:

 
<vgroup>
   <listview tooltip="List of loaded video files">
      <column/>
   </listview>
   <button id="btn1" tooltip="Plays a video stream">Play</button>
   <button id="btn2" tooltip="Stops a video stream">Stop</button>
   <button id="btn3" tooltip="Exits the program.">Quit</button>
</vgroup>

Furthermore, menu items and toolbar buttons support the attributes Menuitem.Help and Toolbarbutton.Help, respectively. If your window has a status bar attached, then the text you specify in these attributes is automatically shown in the status bar whenever the mouse cursor is over the respective menu item or toolbar button. This kind of visual feedback is very helpful because it is shown immediately in the status bar and the user doesn't have to wait for a few seconds as it is the case with tooltips.


Show TOC