BBjGrid::setViewportColor

Description

In BBj 17.00 and higher, this method sets the viewport color for a BBjGrid.

Syntax

Return Value

Method

void

setViewportColor(BBjColor p_color)

Parameters

Variable

Description

p_color

Specifies the color of the viewport.

Return Value

None.

Remarks

Passing in a value of null will set the default value.

Example

sysgui!=BBjAPI().openSysGui("X0")
myWindow! = sysgui!.addWindow(10,10,600,400,"setViewPortColor Example")
myGrid! = myWindow!.addGrid(101,0,0,600,400)
red!=sysgui!.makeColor("RED")
myGrid!.setViewportColor(red!)
process_events

See Also

BBjAPI

BBjColor

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