SetUIColour

www.progui.co.uk  Top  Previous  Next

SetUIColour()

Syntax

Success = SetUIColour(Style.l, Component.l, Colour.l, ColourScheme.l, noUpdate.b)

Description

 

Sets the RGB colour for the specified component in the specified style and custom colour scheme.

Colour.l can be made using the RGB command.

 

Note: If the component is #menuDropShadow, then Colour.l is made using MakeColour (This is so the alpha channel can be set).

 

Note: The constant #MaxUIComponents stores the number of configurable colour components and can be used when iterating through.

 

If noUpdate.b is set to True then no updating of ProGUI controls occurs when the colour is changed, useful for changing a large list of colours and then updating the UI when the last colour is set (by specifying noUpdate.b as False/null) .

 

Returns true if successful.

 

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_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.

 

 

 

Colours & Images Index