Sign in Join
FPDoc Onlineexperiment

TThemeServices class

In unit Themes

Implements theme services for supported platforms.

Declaration

pascal
TThemeServices = class(TObject)

Inheritance

  1. TThemeServices
  2. 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

DottedBrushpublicBitmap Handle for the Dotted Pattern Brush used to draw theme elements.
ThemesAvailablepublicIndicates if theme data is available.
ThemesEnabledpublicIndicates if themes are enabled for the platform.

Methods

InitThemesprotectedAlways returns False.
UnloadThemeDataprotectedAn empty implementation in TThemeServices.
UseThemesprotectedAlways returns False.
ThemedControlsEnabledprotectedAlways returns False.
InternalColorToRGBprotectedConverts the numeric color value to color reference.
InternalDrawParentBackgroundprotectedAn empty implementation in TThemeServices.
CreatepublicConstructor for the class instance.
DestroypublicDestructor for the class instance.
IntfDoOnThemeChangepublicSignals the OnThemeChange event handler (when assigned).
IsDarkThemepublic
IsDisabledpublicIndicates if the theme element value in Details is in a disabled state.
IsPushedpublicIndicates if the theme element value in Details is in a pushed state.
IsHotpublicIndicates if the theme element value in Details is in a hot or hovered state.
IsCheckedpublicIndicates if the theme element value in Details is in a checked state.
IsMixedpublicIndicates if the theme element value in Details has more than one theming state.
GetElementDetailspublicFills members in the theme element details.
GetDetailSizepublicDeprecated. Use GetDetailSizeForPPI instead.
GetDetailSizeForWindowpublicGets the dimensions for a theme element on the control with the specified window handle.
GetDetailSizeForPPIpublicGets the dimensions for a theme element scaled to the specified Pixels per Inch (PPI).
GetDetailRegionpublicGets the handle to the region for a theme element.
GetStockImagepublicAlways returns False.
GetOptionpublicReturns 1 if the theme option is used for the platform, or 0 when not used.
GetTextExtentpublicCalculates the bounding rectangle for the text or caption in a theme element.
ColorToRGBpublicConverts a TColor value to the Cardinal color constant needed for a theme element detail.
ContentRectpublicAdjusts the bounding rectangle for a theme element to contain the content area only.
DrawEdgepublicDefault drawing for the edges on a themed element.
DrawElementpublicDraws a theme element using the specified theme element details.
DrawIconpublicDraws the icon for a theme element.
DrawParentBackgroundpublicDraws a parent background using the specified window handle and device context.
DrawTextpublicDraws the text for a themed control.
HasTransparentPartspublicAlways returns True.
PaintBorderpublicDefault painting method for the borders for a control.
UpdateThemespublicReloads theme elements and details when UseThemes is True.

Events

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