%bc - Button Background Colour

Purpose

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

Syntax

winio@('%bc[colour]') 
winio@('%bc', 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.

%bu (Button Text Colour) is similar to %bc but is used to specify the foreground (text) colour.

Example

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

See also

%bt (Button), %tt (Textual Toolbar), %bg (Background Colour)

 

 

 

Basket
Empty
 
Copyright © 1999-2020 Silverfrost Limited