Description
Returns/sets the style and appearance (button and popup window) of the control.
Usage
[form.][control.]Style[ = Integer ]
Data Type
Integer (enumerated)
Enumeration
CPStyle
0 - cc3D
1 - ccFlat
2 - ccXPDropdownButton
3 - ccXPButtonExtend
4 - ccXPToolbar
5 - ccOffice2000
6 - ccOffice2003
7 - ccOffice2007
8 - ccWindowsVista
Default
cc3D
Remarks
The property contains 8 styles. 3D, Flat, XP Dropdown Button, XP Button Extend, XP Toolbar, Office 2000, Office 2003, Office 2007 and Windows Vista, 3D and Flat styles are general.
In 3D style, the control is a 3D button appearance.
In Flat style, the control is flat like Windows flat button.
XP Dropdown Button, XP Button Extend and XP Toolbar style are available above Windows XP which supports visual themes. If the property is set to 2, 3 or 4, but there has no visual theme can use, then the Style property will be translate to a specified value by AutoTranslateStyle property.
Office 2000, 2003 and 2007 style can simulate Office color picker appearance, and will change some related control properties to fit those effects automatically, these properties are following:
Programmers can modify these properties back.
Another, while the style changed to Office or Vista, all custom glass effects will be reset, refers to SetGlassIndicator and SetGlassCustomButton properties.
Windows Vista style is the same with XP style above, dependences on system visual style.
Sample
ColorPicker1.Style = CPStyle.[ccOffice2007] 'Office 2007 style