PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Handling the current internal window
  • Using MyInternalWindow in a procedure
  • WLanguage functions and current internal window
  • Summary
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
MyInternalWindow is used to handle the current internal window. When running the internal window, MyInternalWindow is replaced by the internal window (and not by the name of the internal window). The MyInternalWindow keyword is used like an internal window.
Benefit: MyInternalWindow is used to make a local code (control, button, ...) or a global code (global procedure, class, ...) independent of the current internal window.
Example
// Retrieve the background color of the current internal window
BackgroundColor = MyInternalWindow.BackgroundColor
Syntax
MyInternalWindow
Remarks

Handling the current internal window

  • MyInternalWindow is always replaced by the current internal window. For example, using BackgroundColor:
    MyInternalWindow.BackgroundColor = LightRed
    MyColor = MyInternalWindow.BackgroundColor
     
    // Pass in parameter:
    CallProcedure(MyInternalWindow)
  • If MyInternalWindow must be converted into string, it is the result of Value that is returned. This property can be assigned by programming.
    Trace( MyInternal Window) // Displays the Property Value of the internal window

    Example not to do:
    ExecuteProcess(MyInternalWindow, trtChange)

    To do:
    ExecuteProcess(MyInternalWindow.Name, trtChange)
  • The keyword MyInternalWindow can only be used in processes or events manipulating a window (for example, in processes associated with an Control, a window, ...).. MyInternalWindow cannot be used in a report. To specify the current report in a report, use MyReport
  • If there is no internal window in progress, MyInternal Window returns the main window containing the processing or event in progress (MyInternal Window is then equivalent to MyWindow).
  • MyInternalWindow does not allow you to use the global variables declared in the internal window.
  • To handle a control found in an internal window by using MyInternalWindow, you have the ability to use the following syntax:
    Info({MyInternal Window.Name + ".Button2"}...Label)

Using MyInternalWindow in a procedure

MyInternalWindow can be used in a local of global procedure only if the procedure handles the current internal window. In this case, MyInternalWindow references the current internal window.
For a local procedure, MyInternalWindow corresponds to the internal window to which the procedure belongs.

WLanguage functions and current internal window

To specify the current internal window in the WLanguage functions that accept a name of internal window in parameter, use:
  • an empty string,
  • MyInternalWindow directly.

Summary

Code where MyInternalWindow is usedMyInternalWindow corresponds to
internal windowinternal window
control of internal windowinternal window
procedure of internal window with a direct call from a code of the internal windowinternal window
procedure of internal window with a call via <InternalWindow>.<Procedure>internal window
supercontrol of internal windowinternal window
control of supercontrol of internal windowinternal window
procedure of supercontrol of internal window with a direct call from a code of the supercontrolinternal window
procedure of supercontrol of internal window with a call via <Supercontrol>.<Procedure>internal window
internal window controlinternal window

MyInternalWindow can only be used from a window process or procedure.
Minimum version required
  • Version 21
This page is also available for…
Comments
Click [Add] to post a comment