RichText DataWindow presentation style changes

The RichText DataWindow presentation style uses the new rich text editor. Property and method changes to the RichTextEdit control also apply to the RichText DataWindow.

In PowerBuilder 10.5, the Preview view of the DataWindow painter for a RichText DataWindow is “WYSIWYG” (what you see is what you get) and read-only. When you set content in Detail view for the DataWindow header and footer, the Preview view displays the header and footer at the same time as the DataWindow row details. In previous versions of PowerBuilder, you were required to open the Print Preview view to preview the document body and page margins simultaneously.

With the focus in the Preview view of the DataWindow painter, you can still select the File>Print Preview menu item to preview the document before it is sent to the printer. Since the preview is WYSIWYG, the panel to control margins in the Print Preview view has been removed. In previous versions of PowerBuilder, the panel for the page margins also included buttons to scroll through the pages of the DataWindow document. In PowerBuilder 10.5, you must press the Page Up and Page Down keys to change pages in the Print Preview view.

When you place focus in the Preview view for a DataWindow with headers and footers, you also enable the Design>Header/Footer menu item. Selecting this menu item opens the Select Band To Activate dialog box. Radio buttons in this dialog box prompt you to select a band to activate. After you click OK, focus changes to the band in the Preview view that corresponds to the radio button that you select.

Input fields in the new rich text editor are always multiline-capable and never size-fixed, so the MultiLine and FixedSize properties for rich text input fields are obsolete. They are no longer assignable from the DataWindow painter.

At runtime, the RichText DataWindow also displays in WYSIWYG format—with the headers and footers displaying in the same window as the document body. The toolbar and its related dialog boxes, and the ruler and status bar are also available at runtime. Otherwise, the runtime functionality remains unchanged.