Vcl.Controls.TWinControl.HandleAllocated
Delphi
function HandleAllocated: Boolean;
C++
bool __fastcall HandleAllocated(void);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.Controls.pas Vcl.Controls.hpp |
Vcl.Controls | TWinControl |
Description
Reports whether a screen object handle exists for the control.
Query HandleAllocated to find out if the control's underlying screen object has been generated.
If the screen object exists, HandleAllocated returns true. If the screen object does not exist, HandleAllocated returns false. Testing the Handle property of a control directly causes the window to be created if it does not already exist. Call the HandleAllocated method to determine whether a window exists without creating one as a side effect.