Dock Method

Positions a ToolBar or Form object along a border of the main Visual FoxPro window or positions a Form object within Visual FoxPro IDE windows or with other forms. To use the Dock method for forms, the form's Dockable property must be set to 1. There are two versions of the syntax.

Toolbar.Dock(nLocation [, X, Y])
Form.Dock(nLocation, [, oForm])

Parameters

nLocation

Specifies the location to dock the toolbar or form.

The following table lists the values for nLocation.

nLocation Description FoxPro.h constant

–1

Undocks the toolbar or form.

TOOL_NOTDOCKED

0

Positions the toolbar or form at the top of the main Visual FoxPro window.

TOOL_TOP

1

Positions the toolbar or form at the left side of the main Visual FoxPro window.

TOOL_LEFT

2

Positions the toolbar or form at the right side of the main Visual FoxPro window.

TOOL_RIGHT

3

Positions the toolbar or form at the bottom of the main Visual FoxPro window.

TOOL_BOTTOM

4

Tab docks a form with another window. (Forms only)

TOOL_TAB

X, Y

Specifies the horizontal and vertical coordinates respectively for the toolbar docking position.

oForm

Specifies an object reference to another form for tab or link docking.

Expand imageReturn Value

Expand imageRemarks

Expand imageExample

Expand imageSee Also


© , 1996-2020 • Updated: 11/10/20
Comment or report problem with topic