PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Opens a new pane in a dynamic Tab control.
Example
NouvVolet est un Champ
NouvVolet <- ONG_OngletDyn.Ouvre("Nouveau document", FI_Document)
NouvVolet.Image = "new.png"
Syntax
<Result> = <Tab control>.Open(<Caption> , <Internal window> [, <Parameter 1> [... [, <Parameter N>]]])
<Result>: Character string
Alias of created tab pane. This alias is used to handle the dynamic tab pane.
<Tab control>: Control name
Name of the Tab control to be used. If the Tab control is not dynamic, the function fails and returns a WLanguage error.
<Caption>: Character string
Caption of button in the created tab pane.
<Internal window>: Character string
Name of internal window that will be used in the tab pane. If this parameter is not specified, the default internal window is used (defined in the "Detail" tab of the description window or by the Property WindowIfNew).
If the internal window is empty, an empty pane is generated.
<Parameter 1>: Type corresponding to the parameter (optional)
First parameter that will be passed to the internal window. This parameter is passed to the process for declaring the global variables of 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 process for declaring the global variables of internal window.
Remarks
  • The image associated with the tab pane must can be modified by Image. For example:
    ONG_Onglet[NomAlias].Image = "xxxx.png"
  • The caption associated with the tab pane can be modified by Libellé. For example:
    ONG_Onglet[NomAlias].Libellé = "Client xxxx *"
    Versions 21 and later
    MaxButtonWidth is used to define the maximum width of displayed caption. If the caption exceeds this width, an ellipsis is displayed at the end ("...").
    New in version 21
    MaxButtonWidth is used to define the maximum width of displayed caption. If the caption exceeds this width, an ellipsis is displayed at the end ("...").
    MaxButtonWidth is used to define the maximum width of displayed caption. If the caption exceeds this width, an ellipsis is displayed at the end ("...").
  • The internal window used in the pane can be modified by ChangeSourceWindow. For example:
    ChangeSourceWindow(ONG_OngletDyn[NomAlias], "MaFI")
  • The alias of the current pane can be retrieved or modified with the Property Value.
  • To find out the aliases of the open dynamic panes, simply call EnumControl on the Tab control:
    // Remplir une combo avec la liste des champs de la fenêtre
    i is int = 1
    ResChamp is string
    ResChamp = EnumControl(ONG_MonOnglet, i)
    WHILE ResChamp <> ""
    i++
    Trace(ResChamp)
    ResChamp = EnumControl(ONG_MonOnglet, i)
    END
  • You have the ability to handle a control found in an internal window of a pane as soon as the pane is opened.
    Example:
    // Manipulation d'un champ présent dans une fenêtre interne d'un volet
    gsAlias est une chaîne = ONG_SansNom1.Ouvre("Libelle initial", FI_Interne)
    x est un Champ <- ONG_SansNom1[gsAlias]
    x.FI_Interne.SAI_SansNom1.Largeur = 500
  • To run a procedure of an internal window of a pane, use ExecuteProcess.
    Example:
    // Exécution d'une procédure d'une fenêtre interne d'un volet
    gsAlias est une chaîne = ONG_SansNom1.Ouvre("Libelle initial", FI_Interne)
    ExécuteTraitement(gsAlias + ".MaProcedureInterne", trtProcedure)
Related Examples:
WD Multi-Windowing Training (WINDEV): WD Multi-Windowing
[ + ] This example presents the basic concepts for managing the multi-windowing and the dynamic tabs with WINDEV.

This example includes a simple interface for managing the customer forms:
- multi-windowing with MDI interface,
- multi tabs with a dynamic tab control.
Component: wd270obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment