During development, you can test a window on the desktop without running the whole application or deploying it to an emulation environment.
You can run a window using the PowerBar Run/Preview Object button, even if the window is not in the current target or library. Because the window is functional, if the window is currently open in the Window painter, you are prompted to save any changes to the window. You can trigger events and open other windows while running the window in this manner.
Previewing the window You can preview a window from the Window painter by using the Preview button on the PainterBar or run the window by clicking the Preview button on the PowerBar. For information about previewing using the PainterBar button, see “Previewing a window”.
To run a window:
Click the Preview button in the PowerBar (not the PainterBar).
In the Run/Preview dialog box, select Windows as the Objects of Type.
Select the target that includes the window you want to run.
Select the library that includes the window.
Select the window you want to run and click OK.
You must save your work before running a window. If you have not saved your work, PocketBuilder prompts you to do so.
PocketBuilder runs the window.
When running a window, you can trigger events, open other windows, connect to a database, and so on. The window is fully functional. It has access to global variables you have defined for the application and to built-in global variables, such as SQLCA. The SystemError event is not triggered if there is an error, because SystemError is an Application object event.
To return to the Window painter:
Do one of the following:
Click the Close button in the upper-right corner of the window
If the window is not visible, click PocketBuilder on the task bar and then click the Terminate button