SetUIColourMode

www.progui.co.uk  Top  Previous  Next

SetUIColourMode()

Syntax

Success = SetUIColourMode(Mode.l)

Description

 

Changes the current colour scheme rendering mode for styled components such as MenuEx, ToolbarEx and Rebars.

This command also automatically updates all skinned controls to the equivalent colour theme name if supported (see UpdateSkins).

Mode can be any of the following constants: -

 

#UICOLOURMODE_DEFAULT

Automatically selects "best match" colour scheme based on user's Windows theme colour.

#UICOLOURMODE_DEFAULT_BLUE

Renders the User Interface using the default "blue" colour scheme.

#UICOLOURMODE_DEFAULT_OLIVE

Renders the User Interface using the default "olive" colour scheme.

#UICOLOURMODE_DEFAULT_SILVER

Renders the User Interface using the default "silver" colour scheme.

#UICOLOURMODE_DEFAULT_GREY

Renders the User Interface using the default classic "grey" colour scheme.

#UICOLOURMODE_CUSTOM

Automatically selects "best match" custom colour scheme based on user's Windows theme colour.

#UICOLOURMODE_CUSTOM_BLUE

Renders the User Interface using the custom "blue" colour scheme.

#UICOLOURMODE_CUSTOM_OLIVE

Renders the User Interface using the custom "olive" colour scheme.

#UICOLOURMODE_CUSTOM_SILVER

Renders the User Interface using the custom "silver" colour scheme.

#UICOLOURMODE_CUSTOM_GREY

Renders the User Interface using the custom classic "grey" colour scheme.

 

Returns true if successful.

 

Colours & Images Index