Switching between views

You can switch between views by clicking the tabs at the bottom of the editing pane. Each view preserves its own insertion point. When you switch back to a view, especially if you have done no editing, the cursor will be where you left it.

If you make changes in a view, it can affect the cursor position in another view. For example, if changes you make in Source view cause Page view to recalculate the layout, the cursor moves to the start of the file. If you delete or insert text in Page view that is before a Source view insertion point, the insertion point moves accordingly.

Remembering views from a previous session

PowerBuilder provides an option to automatically reload any editor windows that were open when you ended your previous session. If you select this option, the next time you open your workspace, the HTML editor will redisplay the pages you had open in the previous session.

When reloading an HTML editor window, PowerBuilder displays the view that you were last in (Page, Source, or Preview).

StepsTo reload pages that were open when you ended a previous session:

  1. Select Tools>System Options from the PowerBuilder menu.

  2. Select the Workspaces tab, check Reload Painters When Opening Workspace, and click OK.