Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Add horizontal scrollbars to wizards

edited December 2005 in General
Hi,



I like to add a horizontal scroll bar to the report wizard (available
fields, selected fields).

In which file and in which method do i have to place the code?


Eric

Comments

  • edited December 2005
    Hi

    I mean to the listbox for available and selected fields.

    Eric


  • edited December 2005

    The source code to the Report Wizard Dialog is located in ppRWzDlg.pas, the
    form class is TppReportWizardDialog. It consists of a series of pages. You
    can try setting the ListBox.ScrollWidth property - I believe that controls
    whether a horizontal scrollbar is displayed (see the Delphi help for
    TListBox).

    One solution is to modify the source code directly.

    Another option is to copy the source code or create a descendant. Then you
    can register your custom report wizard with RB. This approach requires that
    you create two classes. As an example, unit ppRptWiz.pas contains the class
    definition for TppReportWizard - this is the wizard class that creates the
    wizard dialog. The registration appears at the bottom of the unit.





    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited December 2005
    Hi

    Do you mean, copy the code of TppReportWizard into a new class register that
    class with
    "ppRegisterDefaultReportWizard" and let that class create my own
    "TppReportWizardDialog" ?


    Eric



  • edited December 2005
    Hi Nard,

    Can the vertical scollbar build in into the next version. I think more users
    will like it.

    Eric

  • edited December 2005

    If you want to create a custom wizard then you need two classes. A custom
    report wizard and a custom report wizard dialog. You register the custom
    report wizard. When its Execute method is called, then you create and
    display your customer wizard dialog. You can add RBuilder\Source to your
    Delphi library path and trace the code to the default report wizard to see
    how this works.




    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited December 2005
    Hi Nard,

    Followed your instructions and have it all working now. Thanks.

    Eric

This discussion has been closed.