Reports whether a screen object handle exists for the control.
function HandleAllocated: Boolean;
__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) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!