Vcl.Forms.TCustomForm.FormStyle

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property FormStyle: TFormStyle read FFormStyle write SetFormStyle

C++

__property TFormStyle FormStyle = {read=FFormStyle, write=SetFormStyle, stored=IsForm, default=0};

Properties

Type Visibility Source Unit Parent
property protected
Vcl.Forms.pas
Vcl.Forms.hpp
Vcl.Forms 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 Examples