GetUIColour

www.progui.co.uk  Top  Previous  Next

GetUIColour()

Syntax

Colour.l = GetUIColour(Style.l, Component.l, ColourScheme.l)

Description

 

Returns an RGB colour from the specified style, component and colour scheme.

 

The following table shows the available styles and components contained within that style:-

 

#UISTYLE_WHIDBEY

 

#menuTitleTextColor

#menuTitleHotTextColor

#menuTitleHeldTextColor

#menuTitleInactiveTextColor

#menuTextColor

#disabledColor

#menuHotColor

#menuHotBorder

#menuBarColor

#menuHeldBorder

#separatorBar

#background

#menuCheckboxBackground

#menuCheckboxSelectedBackground

#menuCheckboxDisabledBackground

#menuCheckboxDisabledBorder

#menuCheckboxBorder

#menuCheckboxSelectedBorder

#menuDropShadow

#menuHeldColor

#selectedColor

#selectedBorder

#selectedTextColor

 

#UISTYLE_OFFICE2003 / #UISTYLE_OFFICE2007

 

#menuTitleTextColor

#menuTitleHotTextColor

#menuTitleHeldTextColor

#menuTitleInactiveTextColor

#menuTextColor

#disabledColor

#menuHotGradientColor1

#menuHotGradientColor2

#menuHotBorder

#menuHeldGradientColor1

#menuHeldGradientColor2

#menuHeldBorder

#menuCheckboxBackground

#menuCheckboxSelectedBackground

#menuCheckboxDisabledBorder

#menuCheckboxBorder

#menuCheckboxSelectedBorder

#menuDropShadow

#barGradientColor1

#barGradientColor2

#barGradientColor3

#barGradientColor4

#separatorBar

#selectedColor

#selectedBorder

#selectedTextColor

#background

#rebarBackground1

#rebarBackground2

#toolstripBackground1

#toolstripBackground2

#toolstripBackground3

#toolstripBackground4

#toolstripDropdownGradient1

#toolstripDropdownGradient2

#toolstripDropdownGradient3

#toolstripDropdownGradient4

#toolstripShadow

#gripperSolid

#gripperShadow

#SelectGradientColor1

#SelectGradientColor2

#StickySelectGradientColor1

#StickySelectGradientColor2

#StickySelectBorderColor

#toolbarButtonTextColor

#toolbarButtonHotTextColor

#toolbarButtonDisabledTextColor

#toolbarHotGradientColor1

#toolbarHotGradientColor2

#toolbarSeparator

#toolbarSeparatorShadow

 

ColourScheme.l 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

Selects the User Interface using the default blue colour scheme.

#UICOLOURMODE_DEFAULT_OLIVE

Selects the User Interface using the default olive colour scheme.

#UICOLOURMODE_DEFAULT_SILVER

Selects the User Interface using the default silver colour scheme.

#UICOLOURMODE_DEFAULT_GREY

Selects 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

Selects the User Interface using the custom blue colour scheme.

#UICOLOURMODE_CUSTOM_OLIVE

Selects the User Interface using the custom olive colour scheme.

#UICOLOURMODE_CUSTOM_SILVER

Selects the User Interface using the custom silver colour scheme.

#UICOLOURMODE_CUSTOM_GREY

Selects the User Interface using the custom classic grey colour scheme.

 

Returns true if successful.

 

Colours & Images Index