Navigation: Ultimate Suite for PowerBuilder Help > PowerDock > Functions >

of_setdock

Send comments on this topic.

 

Description:

Pins or unpins a dock panel. A pinned dock panel is always open and visible. An unpinned dock panel will open when the mouse hovers over the associated button and will collapse again when the mouse leaves the panel.

Syntax:

of_setdock (long al_panel, boolean ab_dock)

Argument

Description

al_panel

A numeric value representing the dock panel pin or unpin: TOP, BOTTOM, LEFT or RIGHT.

ab_dock

Pass TRUE to pin the dock panel or FALSE to unpin and collapse it.

TOP, BOTTOM, LEFT and RIGHT are constants declared in the PowerDock control.

Return Value:

Returns 1. Returns 0 if an invalid panel is passed in.

Usage:


Copyright © 2021 Werysoft Inc.