Windows Previewer toolbars changes¶
What is new - 25.0¶
In this version, the toolbar in the Windows previewer, modal dialog, and related classes has been updated. The following changes apply to:
- cDRPreview
- cDRDesktopPreview
- cDRToolPanelPreview
- DRModalDialog.dg
- cDRReport
Deprecation of cDRCurrentPageMenuItem¶
The cDRCurrentPageMenuItem class has been deprecated and replaced by two new classes:
cDRGotoPageMenuItem– Handles page navigation.cDRPageNofMMenuItem– Displays the current page and total number of pages.
Previously, cDRCurrentPageMenuItem served two purposes:
- Displaying the current page number.
- Allowing navigation using a spinbox or dropdown control.
Now, these functionalities are separated into dedicated menu items for better clarity and usability.
New Menu Items¶
cDRPageNofMMenuItem (Displays Current Page & Total Pages)
- Always displays "Page N of M" (e.g., Page 2 of 827).
- Improves on the old functionality by making the total page count visible at all times.
- Visibility can be controlled using the pbPreviewerShowPageNofMButton property in
cDRReport.
cDRGotoPageMenuItem (Page Navigation)
- Dedicated to navigating to a specific page.
- Visibility can be controlled using the pbPreviewerShowGotoPage property in
cDRReport.
Toolbar Button Reordering¶
The button order in the toolbar has been adjusted for better usability:
- Page N of M menu item
- Previous Page button
- Next Page button
- Goto Page menu item
- First Page button
- Last Page button
- The rest of the toolbar buttons remain unchanged.