<<

Contents

Search

>>

 

SCROLLPANE_SET_BACKGROUNDCOLOR

 

 

Function

 

 

Syntax:

SCROLLPANE_SET_BACKGROUNDCOLOR(<Handle>,<Number of Component>,<Red>,<Green>,<Blue>,<Red-2>,<Green-2>,<Blue-2>,<Direction>)

 

<Handle>

= <NUM-EXPRESSION>

<Number of Component>

= <NUM-EXPRESSION>

<Red>

= <NUM-EXPRESSION>

 

<Green>

= <NUM-EXPRESSION>

 

<Blue>

= <NUM-EXPRESSION>

 

<Red-2>

= <NUM-EXPRESSION>

 

<Green-2>

= <NUM-EXPRESSION>

 

<Blue-2>

= <NUM-EXPRESSION>

 

<Direction>

= <NUM-EXPRESSION>

 

 

 

Meaning:

Sets the background of a component of a Scrollpane.

 

If <Red-2> >= 0 and <Green-2> >= 0 and <Blue-2> >= 0 a color gradient from  <Red>,<Green>,<Blue> to <Red-2>,<Green-2>,<Blue-2> is created, otherwise the background color <Red>,<Green>,<Blue> si set.

 

If one of the colors <Red>,<Green>,<Blue> is < 0 the background of the component is deleted.

 

If one of the colors <Rot-2>,<Grün-2>,<Blau-2> is < 0 an existing color gradient is deleted.

 

SCROLLPANE_SET_BACKGROUNDCOLOR returns -1 if the Scrollpane specified by <Handle> does not exist otherwise 1 is returned.

 

Parameter:

Handle

Handle of Scrollpane

Number of Component

Number of component

Red

Color-1: Red value

Green

Color-1: Green value

Blue

Color-1: Blue value

Red-2

Color-2: Red value

Green-2

Color-2: Green value

Blue-2

Color-2: Blue value

Direction

Defines the gradient direction:

1 = from left to right

2 = from top to bottom

3 = from top right to bottom left

4 = from center outwards

5 = from left to right centered

6 = from top to bottom centered

7 = from center circular outwards

8 = corners

else = from top left to bottom right

 

Sample:

HANDLE% = SCROLLPANE(3,3,10,40,2,20,3,0)

 

H% = SCROLLPANE_SET_BACKGROUNDCOLOR(HANDLE%,0,255,255,255,192,192,192,0)

H% = SCROLLPANE_SET_BACKGROUNDCOLOR(HANDLE%,1,196,196,255,-1,-1,-1,-1)

H% = SCROLLPANE_SET_BACKGROUNDCOLOR(HANDLE%,2,255,196,196,-1,-1,-1,-1)

 

See also:

SCROLLPANE

GET_SCROLLPANE_HANDLE

CLOSE_SCROLLPANE

EBUS_SCROLLPANE_MOUSE_COL

EBUS_SCROLLPANE_MOUSE_ROW

EBUS_SCROLLPANE_MOUSE_HANDLE

EBUS_SCROLLPANE_MOUSE_PANEL