This topic covers adding a menu option so the users can toggle Tooltips On/Off with a menu option
(note there are separate templates that provide one way On/Off methods for use with a button)
Click the New Item icon and add a new item called &Show Tooltips
IMPORTANT:
1. Set the Use Variable to GLO:TipLink (do not use ?GLO:TipLink)
2. Check the Toggle (on/off) Item box
This will link the internal variable GLO:TipLink (used by the program to determine if Tooltips are enabled) to this menu item. The user will get a clear visual indicator of the status of tooltips when you use this method.
Click the Actions tab and then the Embeds button to add a code template.
Click INSERT to add an embed and type TipLink in the search bar.
The list of TipLink code embeds appears:
Select the TipLink:MenuToggleOnOff code template.
You will see this screen:
Notice that it is clearly identified as a Code Embed Template and the action provided is show as Toggle the tooltips On/Off.
Below you will also see the CODE that is used in this template. When you use this template then the following line of code is added into this embed point:
DO ROUTINE:TurnTipsOnOff
IMPORTANT NOTE: This code template assumes you are using a menu option set to "Toggle" with its USE var set to GLO:TipLink.
If you want to use this in some other manner - then YOU need to change the value of GLO:TipLink (0=Off 1=On) and then use the code template or call DO ROUTINE:TipsOnOFF
We believe in showing you the code used by the template (when possible) so that you can easily learn what is going on.
NOTE: All TipLink code routine names start with the word ROUTINE: This makes it easy to spot them if you look at the generated code.
Click OK to accept the code template
Click here to see how to create a user option to set the Balloon tip shapes