Documents

NextGrid & NextDBGrid

NextGrid

NextDBGrid

NextInspector

NextSheet

NextCollection

Misc

Labs

NextGrid .NET

Using NxColorScheme

Related Articles:

Info
  • Skill:
  • Version: 1.0.0
  • Author: Bojan Nikolic
  • Created: 2008-08-06
  • Updated: 2008-08-06

Introducing



Many components from Next Suite supports color schemes. Components with same color scheme share consistent look.

There are 3 color schemes:

Table 1: Color schemes
Name Value Preview
Blue csBlue
Black csBlack
Silver csSilver


Only one color scheme may be active at the time. When ColorScheme property of NxColorScheme is changed, all components with color schemes support will addopt newly specified color scheme.



Paint other components in scheme color



By calling SchemeColor function we may retreive desired color and paint other components in this color.

Example:

uses NxThemesSupport;
...
Panel1.Color := SchemeColor(seBorder);


Name
seBackgroundGradientStart
seBackgroundGradientEnd
seBorder
seBtnFace
seBtnFaceDark
seDown
seGroupHeader
seHeaderFont
seHeaderGradientEnd
seHeaderGradientStart
seHeaderShadow
seHighlight
seHover
seHighlightHoverFore
seHighlightDownFore
seInactiveDockCaption
seMenuHighlight
seMenuSelectionBorder
seMenuSelectionBorderDown
seSplitterGradientStart
seSplitterGradientEnd

Was This Article Useful?

Only constructive comments, code contributions... will be publishes. Questions, non-official discussion will not be published.