Test Form (Tools menu)


 

Allows the user to generate and execute a simple test program that will display the form. The program may optionally execute the test program with debugging active.

 

To test a form, the Designer creates a parent program containing the following line:

 

MAIN      PLFORM      FORMNAME.PLF

.

     WINSHOW

     SETPROP      form,VISIBLE=1

     FORMLOAD      MAIN

.

     LOOP

     EVENTWAIT

     REPEAT

 

This program will load the form and display it on the screen. The visible property is enabled for forms that begin with a value of false. A WINSHOW instruction ensures the main window is visible for testing with modal windows.

 

The PL/B compiler (PLBCMP) and the windows runtime (PLBWIN) must be available to perform the test. Should the test program not compile, an error listing will be displayed in a new window.

 



about_designer Start ZOrder Numbering (Tools menu) Send Replication Package (Tools menu)