Silverfrost Logo About Us | Contact Us
 

%bc - Button Background Colour

Purpose

To specify the background colour of the next %bt or %bb 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 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 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

 

 

 

Copyright © 1999-2017 Silverfrost Limited