%tt - Textual Toolbar

Purpose

To insert a textual toolbar.

Syntax

winio@('%tt[button_text]')
winio@('%~tt[button_text]', grey_ctrl)
integer grey_ctrl     (input)

Modifiers

Tilde (~) - adds a grey control.

Grave accent (`) - specifies that this is the default button.

Question mark (?) - the help string is placed in square brackets after [button_text].

Caret (^) - the call-back function is called when the user clicks on the button.

Description

%tt is similar to %bt (Button) but provides a button that is not as deep and whose width is rounded to one of a set of standard sizes.

button_text is a standard character string (can be replaced by @).

%tt is typically used with %ww (Window Style)[no_border] and/or %bx (Grey Bar).

To change the text dynamically use %lc (Handle of Last Control) and CHANGE_BUTTON_TEXT@.

Example

winio@('%?^tt[Cancel][Help text...]',cb_func)

See also

%bt (Button), %ib (Image Button), %tb (Bitmap Button), %bx (Grey Bar)

 

 

 

Basket
Empty
 
Copyright © 1999-2020 Silverfrost Limited