RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TRibbonRecentDocuments.Create Constructor

Creates an instance of TGraphicControl.

Pascal
constructor Create(AOwner: TComponent); override;
C++
virtual __fastcall TRibbonRecentDocuments(TComponent * AOwner);

Calling Create constructs and initializes an instance of TGraphicControl. However, you should never attempt to instantiate a TGraphicControl. This class is intended solely as a base class from which other control classes descend and you should only call Create to instantiate one of these descendants. 

AOwner is the component, typically a form, that is responsible for freeing the graphic control. It becomes the value of the Owner property. If you do not explicitly provide an Owner to the constructor (that is, if AOwner is nil (Delphi) or NULL (C++)), your application is responsible for explicitly freeing the graphic control.

Note: If a component's constructor allocates resources or memory, also override the destructor to free those resources.
 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!