BBjControl::setBackColor

Description

Sets the background color for the BBjControl.

Syntax

Return Value Method
void setBackColor(BBjColor color!)

Parameters

Parameter Description
color! Color of the BBjControl's background.

Return Value

None.

Remarks

In BBj 18.20 and higher, setBackColor and setOpaque are completely independent of each other by default. In previous versions of BBj, setBackColor automatically forced setOpaque (true). To reinstate the original behavior, set the BACKCOLOR_SETS_OPAQUE !COMPAT setting to TRUE .

Example

rem ' BBjControl::setBackColor

sysgui = unt
open (sysgui)"X0"
sysgui! = bbjapi().getSysGui()
window! = sysgui!.addWindow(100,100,200,200,"setBackColor",$00090003$)
window!.setCallback(window!.ON_CLOSE,"eoj")
cedit! = window!.addCEdit(101,25,25,150,100,"BBjCEdit",$0004$)
cedit!.setBackColor(BBjColor.YELLOW)
edit! = window!.addEditBox(102,25,150,150,25,"BBjEditBox",$$)
color! = sysgui!.makeColor(rnd(255),rnd(255),rnd(255),200)
edit!.setBackColor(color!)
process_events

eoj:
release

See Also

BBjAPI

BBjSysGui

BBjWindow

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.