Skip to content

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:

  1. cDRGotoPageMenuItem – Handles page navigation.
  2. 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:

  1. Page N of M menu item
  2. Previous Page button
  3. Next Page button
  4. Goto Page menu item
  5. First Page button
  6. Last Page button
  7. The rest of the toolbar buttons remain unchanged.