TWidgetSet.GetLCLCapability function
Checks whether the widgetset supports the specified LCL capability.
Declaration
function GetLCLCapability(ACapability: TLCLCapability): PtrUInt
; virtualArguments
ACapability | TLCLCapability enumeration value checked in the method. |
Function result
Can be either LCL_CAPABILITY_NO or LCL_CAPABILITY_YES.
Description
GetLCLCapability is a
PtrUInt function used to
determine if a specific LCL capability is supported in the widgetset
implementation.
ACapability contains a
TLCLCapability enumeration value
examined in the method. The value identifies a feature or behavior in the LCL.
The return value is either LCL_CAPABILITY_NO or
LCL_CAPABILITY_YES. LCL_CAPABILITY_YES indicates that the
capability is implemented for the platform.
GetLCLCapability is overridden in descendent classes to return a value valid for the platform-specific implementation. The implementation in TWidgetSet handles the capabilities common to all widgetsets supported in the LCL. It is called when the descendent class does not handle the value in ACapability.
TWidgetSet returns LCL_CAPABILITY_YES for the following enumeration values:
- lcCanDrawOutsideOnPaint
- lcNeedMininimizeAppWithMainForm
- lcApplicationTitle
- lcFormIcon
- lcModalWindow
- lcReceivesLMClearCutCopyPasteReliably
- lcSendsUTF8KeyPress
- lcEmulatedMDI
- lcNativeTaskDialog
- lcAccelleratorKeys
All other enumeration values in TLCLCapability return LCL_CAPABILITY_NO.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
