ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Dockable Panel functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Retrieves the position of a Dockable Panel control.
Example
// Récupère la position du Champ Panneau dockable "PADO_TEST"
SWITCH PanelPosition(PADO_TEST)
	CASE dopaLeft
	// Le champ Panneau dockable est attaché à gauche.
	CASE dopaRight
	// Le champ Panneau dockable est attaché à droite.
	CASE dopaTop
	// Le champ Panneau dockable est attaché en haut.
	CASE dopaBottom
	// Le champ Panneau dockable est attaché en bas.
	CASE dopaFloating
	// Le champ Panneau dockable est flottant. 
END
// Si le champ Panneau dockable est à gauche, le mettre à droite
IF PanelPosition(PADO_Test) = dopaLeft THEN
	PanelAttach(PADO_Test, dopaRight)
END

// Crée un configuration avec 2 champs Panneau dockable en bas dans la même zone
PanelAttach(PADO_Détail, dopaBottom)
PanelAttach(PADO_Infos, PanelPosition(PADO_Détail))
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:
    dopaBottomThe Dockable Panel control is anchored to the bottom
    dopaFloatingThe control becomes a floating Dockable Panel.
    dopaLeftThe Dockable Panel control is anchored to the left.
    dopaRightThe Dockable Panel control is anchored to the right.
    dopaTopThe 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.
Component: wd300obj.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/21/2024

Send a report | Local help