PEMs
ctlAutoCenter
ctlClearState
ctlHideMinimized
ctlRegKeyName
ctlRestoreMaxState
ctlRestoreMinPos
ctlRestoreMinState
ctlRestoreState
ctlRestoreStateInIDE
ctlRestoreStyle
ctlRestoreToPrimary
ctlWindowState
ctlAutoCenter
Property
Specifies whether the form object is automatically centered in
the main Visual FoxPro window or on the desktop the first time it is
displayed.
Value Type: Logical.
Default Value: FALSE
Read/Write: Yes.
Remarks:
If you use the native VFP AutoCenter property in a form, the form
will be centered only the first time it is displayed, when there is
no saved state data in the registry.
The next time the form is displayed, VFP will center it but after
that the ctl32_formstate class will move it to its last saved
position.
If you want a form to be always centered, set this property to
TRUE.
See Also:
ctlAutoCenter | ctlWindowState
ctlClearState
Method.
This method will delete any saved registry data of the form.
ctlRegKeyName
Property
Specifies the name of the registry key where the form state data
will be saved.
Value Type: Character.
Default Value: FormState.
Read/Write: Yes.
Remarks:
By default the class will save form state data in
"HKEY_CURRENT_USER\Exename\FormState", where Exename is determined
by the following: JustStem(Application.ServerName)
ctlRegKeyName allows you to change the name of the "FormState"
key only.
Example:
See Also:
ctlRestoreMaxState
Property
Specifies if the Maximized state of a form will be restored.
Value Type: Logical.
Default Value: TRUE
Read/Write: Yes.
Remarks:
If you set ctlRestoreMaxState to FALSE, when the user closes a
form that is maximized, the form will not be restored to the
maximized state when it is opened again next time.
Example:
See Also:
ctlRestoreMinPos
Property
Specifies if the position of the minimized form will be restored.
Value Type: Logical.
Default Value: FALSE
Read/Write: Yes.
Remarks:
When you minimize a child form, it is shown in iconic mode
somewhere near the bottom left of the parent window, (the VFP
_Screen or a top level form). A user can move around this iconic
form with the mouse. If you set ctlRestoreMinPos to TRUE, the
position of the iconic form will be remembered and restored next
time the form is minimized
Example:
See Also:
ctlRestoreMinState
Property
Specifies if the Minimized state of a form will be restored.
Value Type: Character Logical Numeric.
Default Value: FALSE
Read/Write: Yes.
Remarks:
If you set ctlRestoreMinState to TRUE, when the user closes a
form that is minimized, the form will be restored to the minimized
state when it is opened again next time.
Example:
See Also:
ctlRestoreState
Method.
ctlRestoreStateInIDE
Property
Specifies if a form state will be restored while working in the
VFP IDE.
Value Type: Logical.
Default Value: .
Read/Write: Yes.
Remarks:
Setting ctlRestoreStateInIDE to FALSE will allow the developer to
test forms without the interference of the class.
Example:
See Also:
ctlRestoreStyle
Property
Brief description.
Value Type: Numeric.
Default Value: .
Read/Write: Yes
Remarks:
Example:
See Also:
ctlRestoreToPrimary
Property
Brief description.
Value Type: Character Logical Numeric.
Default Value: .
Read/Write: Read only.
Remarks:
Example:
See Also:
ctlWindowState
Property
Brief description.
Value Type: Character Logical Numeric.
Default Value: .
Read/Write: Read only.
Remarks:
Example:
See Also:
Notes
All properties and methods with a name that start with "_"
are only for internal use by the class itself.