ADOCKSTATE( ) Function
Retrieves the dock state of any dockable form, Integrated Development Environment (IDE) window, or toolbar. For forms only, you can use the GetDockState Method. ADOCKSTATE( ) is available in the run time.
ADOCKSTATE( ArrayName [, nType | nExtended]) |
Parameters
- ArrayName
-
Specifies an array with one or more rows containing the dock state of dockable items.
Note Both system and user-defined toolbars can appear in the array. A form appears in the array only if the form's Dockable property is set to a value greater than 0.
The following table illustrates the information that the array contains.
Element Description 1
Name of the form, IDE window, or toolbar.
For user-defined toolbars, the first element contains the Caption property value for that toolbar.
2
Dock state:
1 - Docked
0 - Undocked
3
Dock position.
For form and toolbar values, see DockPosition Property. For windows, see DOCK Command.
4
Target object that specified object is docked with.
This element does not apply to toolbars unless they are docked to the main Visual FoxPro window. For toolbars or windows docked to the main Visual FoxPro window, the fourth element contains the main Visual FoxPro window name, which you can retrieve using the _VFP Caption property. If a window or toolbar is not docked, the fourth element contains an empty string.
Note If a toolbar appears between the Visual FoxPro desktop and a window docked to the Visual FoxPro desktop, the fourth element contains the name of the toolbar.
5
Object reference to docking form or toolbar.
Applies only when docking user-defined forms or toolbars; otherwise, this element contains an empty string (IDE window).
6
Object reference to the target object if it is a user-defined form. If the target object is the main Visual FoxPro window, this element contains an object reference to the _SCREEN system variable. Otherwise, this element contains an empty string (IDE window).
- nType
-
Specifies one or more items for which you want ADOCKSTATE( ) to return dock state information.
The following table lists the values for nType.
nType Description 0
Return all or no windows. (Default)
1
Return only IDE windows.
2
Return only toolbars.
3
Return only user-defined forms.
- nExtended
-
Specifies the number of elements to return in the array.
The following table lists the values for nExtended.
nExtended Description 0
Return a four-element array for windows and toolbars.
1
Return a six-element array for forms.
Return Value
Remarks
Example
See Also
© , 1996-2020 • Updated: 11/10/20
Comment or report problem with topic
Microsoft Visual FoxPro 9 SP2 Help file, VFPX Edition v1.08