|
|
|
|
PanelCreate (Function) In french: PanneauCrée Creates a new Dockable Panel control in the current window.
// Create a configuration with 2 panels on the left in a pane PanelCreate("", dopaLeft, IW_PRODUCTLIST) PanelCreate("", dopaLeft, IW_DETAILS)
// Create a Dockable Panel control myPanelcontrol is Control myPanelcontrol <- PanelCreate("", dopaLeft, IW_PRODUCTLIST)
// Create an empty Dockable Panel control p is Control <- PanelCreate("p", dopaLeft) p.Width = 200 // Adds a control in the Dockable panel control b is Control <- ControlCreate(p.FullName+ ".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.: | | dopaBottom | Attaches the Dockable Panel control to the bottom. | dopaFloating | Creates a floating Dockable Panel control. | dopaLeft | Attaches the Dockable Panel control to the left. | dopaRight | Attaches the Dockable Panel control to the right. | dopaTop | Attaches 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 that will 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 that will 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 the 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
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|