BeforeDock Event

Occurs before docking a ToolBar object or a Form object, for example, when dragging a toolbar or form to a docking area or calling the Dock method.

PROCEDURE Object.BeforeDock
LPARAMETERS nLocation

Parameters

nLocation

Returns the docking position for the toolbar or form.

The following table lists the values for nLocation.

nLocation Description FoxPro.h constant

-1

Form or toolbar will undock.

TOOL_NOTDOCKED

0

Form or toolbar will dock at the top of main Visual FoxPro window.

TOOL_TOP

1

Form or toolbar will dock to the left edge of the main Visual FoxPro window.

TOOL_LEFT

2

Form or toolbar will dock to the right edge of the main Visual FoxPro window.

TOOL_RIGHT

3

Form or toolbar will dock at the bottom edge of the Visual FoxPro window.

TOOL_BOTTOM

4

Form will tab dock to another form.

TOOL_TAB

5

Form will link dock to another form.

NoteNote

To determine additional information for the target and position, you need to call the GetDockState method after the docking operation completes. For more information, see GetDockState Method.

TOOL_LINK

Expand imageRemarks

Expand imageSee Also


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