PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Events run when changing the internal window
  • Limitations
  • SourceWindow property
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
Dynamically changes the window displayed in an Internal Window control. During this modification, parameters can be passed to the new internal window.
Example
// Charge la fenêtre interne FI_FenêtreInterne1
// dans le champ Fenêtre interne CFI_ChampFenêtreInterne
CFI_ChampFenêtreInterne.ChangeFenêtreSource(FI_FenêtreInterne1)
// Charge la fenêtre interne FI_FenêtreInterne1,
// à la ligne IndiceLigne d'un champ Fenêtre interne nommé CFI_ChampFenêtreInterne
// contenu dans une colonne de type Conteneur d'un champ Table
// Attention: le champ CFI_ChampFenêtreInterne doit avoir
// l'option "Contenu identique pour toutes les lignes" non cochée
// (onglet "UI" de la fenêtre de description)
TABLE_ChampTable[IndiceLigne].CFI_ChampFenêtreInterne.ChangeFenêtreSource(...
FI_FenêtreInterne1)
Syntax
<Internal Window control>.ChangeSourceWindow(<Internal window> [, <Parameter 1> [... [, <Parameter N>]]])
<Internal Window control>: Control name
Name of the Internal Window control that will be modified.
<Internal window>: Character string
Name of the internal window that will be associated with the Internal Window control.
<Parameter 1>: Type corresponding to the parameter (optional)
First parameter that will be passed to the internal window.
<Parameter N>: Type corresponding to the parameter (optional)
Nth parameter that will be passed to the internal window.
Remarks

Events run when changing the internal window

When using the <Internal window>.ChangeSourceWindowfunction, the following events are executed:
  • Versions 17 and later
    Event "Before unloading the internal window". This event is associated with the Internal Window control.
    New in version 17
    Event "Before unloading the internal window". This event is associated with the Internal Window control.
    Event "Before unloading the internal window". This event is associated with the Internal Window control.
  • Event "Closing" of the old internal window.
  • "Global declarations" event of the new internal window.
  • "Initializing" event of the controls in the new internal window.
  • "Initializing" event of the internal window.
  • Versions 17 and later
    Event "After loading the internal window". This event is associated with the Internal Window control.
    New in version 17
    Event "After loading the internal window". This event is associated with the Internal Window control.
    Event "After loading the internal window". This event is associated with the Internal Window control.

Limitations

  • The names and parameters of the called functions must be identical in both windows.
  • If a control found in the internal window is directly used from outside, a control with the same name must be found in the new internal window.
  • The values of global variables for the former internal window are lost.
  • The persistent values of the former internal window are saved and restored in the new one.

SourceWindow property

The Property SourceWindow allows you to know the name of the internal window currently displayed in an control of type "Internal Window".
Component: wd270obj.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment