Previewing a window

As you develop a window, you can preview its appearance from the Window painter. By previewing the window, you get a quick desktop view of how it might look during execution, only without the personal digital assistant (PDA) skin. If the window that you preview has an associated menu, the menu bar will be visible at the top of the window, not at the bottom as on a PDA device or emulator. Size restrictions for windows on the PDA device or emulator are also not applicable to windows that you preview on the desktop.

The control bar is present for main windows that you preview or run on the desktop. You can close a main window that you preview by clicking the close button in its control bar.

You can add a control bar to response windows by selecting the TitleBar check box or adding a Close (OK) button. If you preview a response window that does not have a control bar, you can close the response window by right-clicking the PocketBuilder icon in the Windows task bar and selecting Restore from the pop-up menu. A message box informs you that an application is running. You can then click Terminate in the message box to close the response window and return to PocketBuilder.

NotePreview button on the PainterBar and the PowerBar You can preview a window from the Window painter by using the Preview button on the PainterBar or clicking the Preview button on the PowerBar. When you use the Preview button on the PainterBar, you do not have to save the window first, but you cannot trigger events, as described later. For information about previewing using the PowerBar button, see “Running a window”.

StepsTo preview a window:

  1. Click the Preview button in the PainterBar, or select Design>Preview from the menu bar

    PocketBuilder is minimized, and the window displays with the properties you have defined for it.

    For information about previewing using the PowerBar button, see “Running a window”.

What you can do

While previewing the window, you can get a sense of its look and feel. You can:

What you cannot do

You cannot:

StepsTo return to the Window painter:

  1. Do one of the following: