Textual toolbar - %tt[button_text]

In this section:

This format code is much the same as %bt (Button), except that the button is not as tall. Also the width of the button is rounded up to one of a set of standard sizes. This makes it possible to produce a textual toolbar (using a sequence of %tt (Textual Toolbar) formats) as used, for example, in the standard Windows Help buttons "Contents", "Search", "Back", etc. When using this format you will probably want to remove the borders from the window using the no_border option of the %ww (Window Style) format.

For example:

      WINAPP
      INTEGER i,winio@
      i=winio@('%ww[no_border]%ca[Textual toolbar]&')
      i=winio@('%mn[Exit]&','EXIT')
      i=winio@('%tt[Compile]%tt[Link]%tt[Run]&')
      i=winio@('%bx&',0.0D0)
      i=winio@('%bg[grey]&')
      i=winio@('%pv%fr',400,100)
      END

 

The text on a button can be changed dynamically by calling CHANGE_BUTTON_TEXT@.

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited