Forms.TCustomForm.FormStyle

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

From Forms.pas

	property FormStyle: TFormStyle read FFormStyle write SetFormStyle;


Unit: Forms

Type: property

Visibility: protected

Member Of: TCustomForm

C++ Information

From Forms.hpp

	__property Forms::TFormStyle FormStyle = {read=FFormStyle,write=SetFormStyle};


Unit: Forms

Type: property

Visibility: protected

Member Of: TCustomForm

Description

Determines the form's style.


Use FormStyle to get or set the form's style. FormStyle is one of the following values:



Value Meaning

fsNormal

The form is neither an MDI parent window nor an MDI child window.

fsMDIChild

The form is an MDI child window.

fsMDIForm

The form is an MDI parent window.

fsStayOnTop

This form remains on top of the desktop and of other forms in the project, except any others that also have FormStyle set to fsStayOnTop. If one fsStayOnTop form launches another, neither form will consistently remain on top.



If the form is the main form of an MDI application, its FormStyle property must be set to fsMDIForm.

Note:  It is not advisable to change FormStyle at runtime.

Warning:  TGraphicControl descendants placed in the client area of a form with FormStyle set to fsMDIForm will not paint.

See Also

Code Samples


Personal tools
Translations
Newest Version