RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomForm.FormState Property

Indicates transitional state information about the form.

Pascal
property FormState: TFormState;
C++
__property TFormState FormState;

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.  

 

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