Navigation:  thinBasic Modules > UI (User Interface) > DIALOGSs >

DIALOG SET GRADIENT

Previous pageReturn to chapter overviewNext page

 

Description

 

Fill the dialog client area with a gradient background.

 

Syntax

 

DIALOG SET GRADIENT hwnd, GradientType [, StartColor, EndCOlor]

 

Returns

 

None

 

Parameters

 

Name

Type

Optional

Meaning

hwnd

Number

No

Handle of the dialog

GradientType

Number

No

Use one of the following equates:

%GRADIENT_FILL_V  from top to bottom

%GRADIENT_FILL_H  from left to right

%GRADIENT_FILL_None  to remove any gradient background

 

StartColor

Number

Yes

Starting color. Use RGB function for easy setup.

EndColor

Number

Yes

Ending color. Use RGB function for easy setup.

 

Remarks

 

To remove a gradient color use the following command:

DIALOG SET GRADIENT hwnd, %GRADIENT_FILL_None

 

Restrictions

 

See also

 

Examples