Bubble and tooltip help - %bh and %th

%bh (Bubble Help) takes an INTEGER argument that is a control variable. When this variable is non-zero, help text is supplied in the form of a "bubble" whenever the mouse cursor lies over the control in question. To enable users to switch such help on and off, simply supply a button with a call-back function that changes the integer control variable.

For example.

  INTEGER switch,i
  COMMON switch
  EXTERNAL toggle
  CHARACTER*60 hlp
  hlp='Toggle bubble help On/Off'
c--- Define a button with help attach the help ---
c--- string with an @ symbol ---
  switch=0
  i=winio@('%^?bt[Start]@%bh',toggle,hlp,switch)
  END

  INTEGER FUNCTION toggle()
  INTEGER switch
  COMMON switch
  switch=1-switch
  toggle=2
  END

A grave accent can be added to %bh. This has the effect of generating a short delay before the help bubble appears.

%th (Tooltip Help) is used as an alternative to %`bh. %th provides a help bubble in the form of a "tooltip".

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited