%bu - Button Text Colour

Purpose

To specify the text colour of the next %bt (Button) or %bb (Button) button.

Syntax

winio@('%bu[colour]')
winio@('%bu', colour_value)
integer colour_value     (input)

Modifiers

Grave accent (`) - allows colour_value to be changed dynamically.

Description

colour is one of: black, white, grey, red, green, blue, and yellow. Alternatively one of the additional named colours listed for %bg (Background Colour) can be used.

colour_value is typically a value returned by RGB@. If the grave accent is used, this value can be changed after the button has been displayed. colour_value is then passed to window_update@ in order to update the screen.

%bc (Button Background Colour) is similar to %bu but is used to specify the background colour.

Example

winio@('%bu', RGB@(120,120,0))
winio@('%bu[white]')

See also

%bc (Button Background Colour)

 

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited