TThemeServices class
Implements theme services for supported platforms.
Declaration
TThemeServices = class(TObject)Inheritance
- TThemeServices
- TObject
Description
TThemeServices is a small foot print class to provide the user
with pure Windows XP theme related abilities like painting elements and text,
or retrieving theme element details.
Properties
DottedBrush | public | Bitmap Handle for the Dotted Pattern Brush used to draw theme elements. |
ThemesAvailable | public | Indicates if theme data is available. |
ThemesEnabled | public | Indicates if themes are enabled for the platform. |
Methods
InitThemes | protected | Always returns False. |
UnloadThemeData | protected | An empty implementation in TThemeServices. |
UseThemes | protected | Always returns False. |
ThemedControlsEnabled | protected | Always returns False. |
InternalColorToRGB | protected | Converts the numeric color value to color reference. |
InternalDrawParentBackground | protected | An empty implementation in TThemeServices. |
Create | public | Constructor for the class instance. |
Destroy | public | Destructor for the class instance. |
IntfDoOnThemeChange | public | Signals the OnThemeChange event handler (when assigned). |
IsDarkTheme | public | |
IsDisabled | public | Indicates if the theme element value in Details is in a disabled state. |
IsPushed | public | Indicates if the theme element value in Details is in a pushed state. |
IsHot | public | Indicates if the theme element value in Details is in a hot or hovered state. |
IsChecked | public | Indicates if the theme element value in Details is in a checked state. |
IsMixed | public | Indicates if the theme element value in Details has more than one theming state. |
GetElementDetails | public | Fills members in the theme element details. |
GetDetailSize | public | Deprecated. Use GetDetailSizeForPPI instead. |
GetDetailSizeForWindow | public | Gets the dimensions for a theme element on the control with the specified window handle. |
GetDetailSizeForPPI | public | Gets the dimensions for a theme element scaled to the specified Pixels per Inch (PPI). |
GetDetailRegion | public | Gets the handle to the region for a theme element. |
GetStockImage | public | Always returns False. |
GetOption | public | Returns 1 if the theme option is used for the platform, or 0 when not used. |
GetTextExtent | public | Calculates the bounding rectangle for the text or caption in a theme element. |
ColorToRGB | public | Converts a TColor value to the Cardinal color constant needed for a theme element detail. |
ContentRect | public | Adjusts the bounding rectangle for a theme element to contain the content area only. |
DrawEdge | public | Default drawing for the edges on a themed element. |
DrawElement | public | Draws a theme element using the specified theme element details. |
DrawIcon | public | Draws the icon for a theme element. |
DrawParentBackground | public | Draws a parent background using the specified window handle and device context. |
DrawText | public | Draws the text for a themed control. |
HasTransparentParts | public | Always returns True. |
PaintBorder | public | Default painting method for the borders for a control. |
UpdateThemes | public | Reloads theme elements and details when UseThemes is True. |
Events
OnThemeChange | public | Event handler signalled when the current window theme has been changed. |
Inherited
From TObject (40)
AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
