|
|
|
|
|
PanelPosition (Function) In french: PanneauPosition Retrieves the position of a Dockable Panel control. // Retrieve the position of the Dockable Panel control "DOPA_TEST" SWITCH PanelPosition(DOPA_TEST) CASE dopaLeft // The Dockable Panel control is anchored to the left. CASE dopaRight // The Dockable Panel control is anchored to the right. CASE dopaTop // The Dockable Panel control is anchored to the top. CASE dopaBottom // The Dockable Panel control is anchored to the bottom. CASE dopaFloating // The control becomes a floating Dockable Panel. END
// If the Dockable Panel control is on the left, move it to the right IF PanelPosition(DOPA_Test) = dopaLeft THEN PanelAttach(DOPA_Test, dopaRight) END Â // Create a configuration with 2 Dockable Panels at the bottom in the same area PanelAttach(DOPA_Details, dopaBottom) PanelAttach(DOPA_Info, PanelPosition(DOPA_Detail))
Syntax
<Result> = PanelPosition(<Dockable Panel control>)
<Result>: Character string or constant - Empty string ("") if the Dockable Panel control is a floating panel.
- Position of the Dockable Panel control. Can correspond to one of the following constants or combination of constants:
| | dopaBottom | The Dockable Panel control is anchored to the bottom | dopaFloating | The control becomes a floating Dockable Panel. | dopaLeft | The Dockable Panel control is anchored to the left. | dopaRight | The Dockable Panel control is anchored to the right. | dopaTop | The Dockable Panel control is anchored to the top. |
The constants can be combined.
<Dockable Panel control>: Control name Name of the Dockable Panel control to use. Remarks - The position can be modified using PanelAttach.
- If the control is a floating Dockable Panel, its position can be known via the X and Y properties.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|