PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Retrieves the position of a Dockable Panel control.
Example
// 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 panel is on the left, put it on the right
IF PanelPosition(DOPA_Test) = dopaLeft THEN
PanelAttach(DOPA_Test.dopaRight)
END
 
// Create a configuration with 2 panels at the bottom in the same area
PanelAttach(DOPA_Details.dopaBottom)
PanelAttach(DOPA_Info, PanelPosition(DOPA_Detail))
Syntax
<Result> = PanelPosition(<Panel>)
<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:
    dopaBottomThe Dockable Panel control is anchored to the bottom
    dopaRightThe Dockable Panel control is anchored to the right.
    dopaFloatingThe control becomes a floating Dockable Panel.
    This constant is available from WINDEV 24 Update 1 only.
    dopaLeftThe Dockable Panel control is anchored to the left.
    dopaTopThe Dockable Panel control is anchored to the top.

The constants can be combined.
<Panel>: 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.
Component : wd250obj.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment