RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomActionManager.Style Property

Identifies the style object that gives the application its default look and feel.

Pascal
property Style: TActionBarStyle;
C++
__property TActionBarStyle Style;

Use Style to access the application's Style object. This object manages which type of controls are used on the action bands to present a particular thematic look. To change the overall appearance of action bands in your application, change the style property accordingly. The styles are: Platform Default, XP Style and Standard. Platform Default is the default. You can further augment these styles by using colormap components to control the colors that render the different style of controls. 

Running on Vista with Style set to Platform Default and themes enabled, you get a style that uses theming engines to draw all user interface elements. Buttons are painted like Vista toolbars, and menus are painted in the themed style. With Style set to XP Style, the style reverts to XP style. When Style is set to Standard, the style reverts to the standard style. 

Running on XP, with Style set to Platform Default or XP Style, style reverts to XP style. With Style set to Standard, the style reverts to the standard style. 

Running on Windows 2000, style reverts to the Standard style. 

To register new styles create a descendant of TActionBarStyleEx and register it using RegisterActnBarStyle. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!