Vcl.Forms.TCustomForm.FormState

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property FormState: TFormState read FFormState;

C++

__property TFormState FormState = {read=FFormState, nodefault};

Properties

Type Visibility Source Unit Parent
property public
Vcl.Forms.pas
Vcl.Forms.hpp
Vcl.Forms TCustomForm

Description

Indicates transitional state information about the form.

Read FormState to determine the state of the form. FormState indicates when the form is in various transitional states or when certain Windows operations have occurred. The following table lists the values that can be included in a form's state:



Value Meaning

fsCreating

The form's constructor is currently executing.

fsVisible

The form's window is visible. This state is used to update the Visible property.

fsShowing

The form's WindowState property is changing. This state is used to prevent WindowState changes from interfering with a transition that is in progress.

fsModal

The form was created as a modal window.

fsCreatedMDIChild

The form is an MDI parent window. This state is only set once the MDI client window has been created.

fsActivated

The form has received a CM_ACTIVATE message (because it received focus or the application became active) but has not yet called the Activate method to generate an OnActivate event.



See Also