RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWinControl.HandleAllocated Method

Reports whether a screen object handle exists for the control.

Pascal
function HandleAllocated: Boolean;
C++
__fastcall Boolean HandleAllocated();

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!