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
Creates a new Dockable Panel control in the current window.
Example
// Crée une configuration avec 2 panneaux à gauche dans un volet
PanelCreate("", dopaLeft, FI_LISTEPRODUIT)
PanelCreate("", dopaLeft, FI_DETAILS)
// Crée un champ Panneau dockable
monchampPanneau is Control
monchampPanneau <- PanelCreate("", dopaLeft, FI_LISTEPRODUIT)
// Crée un champ Panneau dockable vide
p is Control <- PanelCreate("p", dopaLeft)
p.Largeur = 200
// Ajoute un champ dans le champ Panneau dockable
b is Control <- ControlCreate(p.NomComplet + ".b", typButton, 10, 20, 100, 24)
Syntax
<Result> = PanelCreate(<Title> , <Position> [, <Internal window> [, <Parameter 1> [... [, <Parameter N>]]]])
<Result>: Character string
Dockable Panel created.
<Title>: Character string
Title of the Dockable Panel created. If this parameter corresponds to an empty string (""), a title is automatically associated with the control created.
<Position>: Optional String constant (or combination of constants)
Describes the position of the Dockable Panel control.:
dopaBottomAttaches the Dockable Panel control to the bottom.
dopaFloatingCreates a floating Dockable Panel control.
dopaLeftAttaches the Dockable Panel control to the left.
dopaRightAttaches the Dockable Panel control to the right.
dopaTopAttaches the Dockable Panel control to the top.

The constants can be combined.
If the position is already occupied, the Dockable Panel control is added to the area and a pane is automatically created and displayed.
<Internal window>: Window name
Name of the internal window to use in the dockable panel. The size of the Dockable Panel control corresponds to the size of the window in the editor.
If this parameter is not specified, an empty dockable panel is created.
<Parameter 1>: Type corresponding to the parameter (optional)
First parameter to be passed to the internal window. This parameter is passed to the "Global declarations" event of the internal window.
<Parameter N>: Type corresponding to the parameter (optional)
Nth parameter to be passed to the internal window. This parameter is passed to the "Global declarations" event of the internal window.
Remarks
  • PanelCreate causes a non-fatal error if the position is invalid.
  • Parameters passed to internal window: Parameters are retrieved in the "Global declarations" event of the internal window. Simply write the following line of code at the start of the event:
    PROCEDURE <Window name>(<Parameter1> [, <Parameter2> [, ...]])

    For more details, see Window with parameters.
Business / UI classification: UI Code
Component: wd300obj.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Video PanelCreate
https://youtu.be/QikBo22k-AM
https://windevdesenvolvimento.blogspot.com/2019/08/dicas-2259-windev-webdev-mobile-24.html
//
PanelCreate("Representante",dopaLeft,IW_REPRESENTANTE)
PanelCreate("Cliente",dopaRight,IW_CLIENTES)
PanelCreate("Informacoes",dopaTop,IW_INFORMACAO)
amarildo
23 Aug. 2019

Last update: 03/27/2025

Send a report | Local help