RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomActiveForm.CreateParams Method

Updates the active form's creation parameters according to the value of the AxBorderStyle property.

Pascal
procedure CreateParams(var Params: TCreateParams); override;
C++
virtual __fastcall CreateParams(TCreateParams Params);

CreateParams performs the following tasks: 

Calls the inherited CreateParams method. 

Removes the WS_CAPTION flag from the Style property of Params. 

Adds flags to the Style and ExStyle properties of Params according to the value of the AxBorderStyle property, as shown in the following table: 

AxBorderStyleStyleExStyle

Style 
ExStyle 
afbNone  
Nothing  
Nothing  
afbSingle  
WS_BORDER  
Nothing  
afbSunken  
Nothing  
WS_EX_CLIENTEDGE  
afbRaised  
WS_DLGFRAME  
WS_EX_WINDOWEDGE  

Note: The creation parameters are not updated when the form is in design mode.
 

CreateParams2

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