A tooltip is a bit of information that is displayed when the mouse pauses over an item on a panel. The information can be the name of an icon, a short instruction, or some other useful information. The three main JMRI panel editors support tooltips for icons that relate to JMRI components such as sensors, turnouts, etc. Standalone icons and text labels can also have tooltips.
The default user name (system name)
tooltip for table items does not store any
data. It uses the current names when showing the tooltip. This eliminates problems when user
names are changed or moved to a different system name. The default tooltip for standalone icons
is Icon and for text labels the default is Text Label.
Custom tooltips can be created. This data is stored. The custom content can have the
current user name (system name)
information added to the front of the custom
tooltip.
since 5.7.2Tooltips are not shown for items that have the Hide when not editing option enabled and the panel is not in edit mode.
Existing tooltip content is not automatically removed. Depending on the age of the panel and its icons, it may have old content. The ClearTooltips.py script can be run to clear the old tooltip content. From the main PanelPro menu, select Scripting ⇒ Run Script.... The script is included with the JMRI install and it is located in the jython directory.
Each editor has an option to enable or disabled tooltips for its panels. Each tooltip also has an option to show or not show its tooltip content. This provides the ability to control the tooltip process. For example, a panel can have tooltips enabled with individual icons set to not show a tooltip. The reverse is also possible when tooltips are disabled for the panel with individual icons set to show a tooltip.
Note: Changing the panel option for showing tooltips results in setting every panel item to show or not show its tooltip.
When the panel is in edit mode, use the Show Tooltips for all items option to enable or disable tooltips for the panel.
Note: The panel is in edit mode when the Panel items popup menus active item is enabled. Closing the editor window does not change the edit mode.
When the panel is in edit mode, select the Options menu and use the Show Tooltips for all items menu item to enable or disable tooltips for the panel.
The Layout Editor has several options for displaying tooltips.
since 5.7.2The two tooltip edit mode options reset all of the tooltips when the Layout Editor Edit Mode option is changed. When Always or Never is selected, changes to the edit mode do not affect the individual item settings.
Note: Layout Editor does not display tooltips for track components except for turnouts and slips (as of JMRI 5.3.6). These are drawn using a set of lines. They are not icons.
The default tooltip shows the user name and system name of the related JMRI item.
The icon context menu (right click) has an entry for Tooltips with 3 menu items. Note: The Layout Editor turnout and slip context menus do not have a tooltips sub menu even though they show tooltips as of JMRI 5.3.6.
Sensor Name
(IS101): Used to trigger a Route
.Thanks and congratulations to all who contributed! Contact us via the JMRI users Groups.io group.
Copyright © 1997 - 2024 JMRI Community. JMRI®, DecoderPro®, PanelPro™, DispatcherPro™, OperationsPro™, SignalPro™, SoundPro™, LccPro™, TrainPro™, Logix™, LogixNG™ and associated logos are our trademarks. Additional information on copyright, trademarks and licenses is linked here.
View the