WINDEV – Tidy Development with Internal Windows

WinDev No Comments »

I have to admit that when I started out developing WINDEV applications I used multiple Window Planes a lot.

The problem with using a Plane is that your code can get very complicated to manage and the Window will use up a lot of memory.

Striving to make my code clean and manageable I use the Internal Window to separate functionality out.

image 

Above is a very simple example of how this works. I have created a project with one main window and 2 internal windows:

image

In the main window I have added an Internal Window Control and 2 buttons. The buttons just have one line of code in each to easily switch between the internal windows.

So to show my first internal window I just use the WLanguage command:

ChangeSourceWindow(IW_Main,IW_InternalWindow1)

Sometimes you might need to initialise the internal window with parameters. You can add paramers to the ChangeSourceWindow to perform this.

ChangeSourceWindow(<Name of Control to Modify>, <Name of Internal Window> [, <Parameter 1> ... [, <Parameter N>]])

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in