Silverfrost Logo About Us | Contact Us
 

%bg - Background Colour

Purpose

Background colour format.

Syntax

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

Modifiers

Grave accent (`) - set the colour of the next control.

Description

colour is one of: black, white, grey, red, green, blue, and yellow. Alternatively one of the following additional named system colours can be used: scrollbar, background, activecaption, inactivecaption, menu, window (use this for the default window background), windowframe, menutext, windowtext, captiontext, activeborder, inactiveborder (use this for dialog box backgrounds), appworkspace (use this for the MDI backdrop), highlight (use this when you are adding your own draw focus), highlighttext, btnface, btnshadow, greytext, btntext, inactivecaptiontext, and btnhighlight. The definition of these colours depends on the user's desktop configuration (if you require the actual value for an RGB colour, use the API function GetSysColor with the named colour parameters defined the file windows.ins; e.g. COLOR_BTNFACE).

colour_value is typically a value returned by RGB@.

Use without the grave modifier to set the background colour of the main window. Use with the grave modifier to set the background colour of the next control (e.g. %rd, %rf, %rs, %ls, but not %bt).

Example

winio@('%bg', RGB@(120,120,0))
winio@('%bg[white]')
winio@('%bg[btnface]') the default button face colour.

See also

%bc - Button Background Colour, %wp - Wallpaper bitmap

 

 

 

Copyright © 1999-2017 Silverfrost Limited