User Tools

Site Tools


displaying_20a_20tooltip_20on_20demand_20_28lbb_29

Differences

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

Link to this comparison view

displaying_20a_20tooltip_20on_20demand_20_28lbb_29 [2018/03/31 13:19]
127.0.0.1 external edit
displaying_20a_20tooltip_20on_20demand_20_28lbb_29 [2018/04/17 15:49] (current)
tbest3112 Added syntax highlighting
Line 2: Line 2:
  
 //by Richard Russell, August 2012//\\ \\  As a rule, a **tooltip** is displayed when the mouse moves into the tool's //​rectangle//​ and stays there for a specified minimum period of time; typically this is when the user '​hovers'​ the mouse over a control or other region of interest. However it is also possible to force a tooltip to display 'on demand',​ under the control of your program.\\ \\  The code listing below demonstrates how to do that:​\\ ​ //by Richard Russell, August 2012//\\ \\  As a rule, a **tooltip** is displayed when the mouse moves into the tool's //​rectangle//​ and stays there for a specified minimum period of time; typically this is when the user '​hovers'​ the mouse over a control or other region of interest. However it is also possible to force a tooltip to display 'on demand',​ under the control of your program.\\ \\  The code listing below demonstrates how to do that:​\\ ​
 +<code lb>
       nomainwin       nomainwin
  
Line 60: Line 61:
       close #w       close #w
       end       end
 +</​code>​
 As shown, clicking the button will cause a **balloon tooltip** (available in Windows XP or later) to be displayed at the mouse position, and to remain displayed for two seconds. If the **TTS_BALLOON** style is omitted a regular tooltip will be displayed. As shown, clicking the button will cause a **balloon tooltip** (available in Windows XP or later) to be displayed at the mouse position, and to remain displayed for two seconds. If the **TTS_BALLOON** style is omitted a regular tooltip will be displayed.
displaying_20a_20tooltip_20on_20demand_20_28lbb_29.txt ยท Last modified: 2018/04/17 15:49 by tbest3112