Home General

Controlling the outline preview

edited May 2010 in General
Hello,

I have created a custom print preview with the outline preview panel.
The outline preview always defaults to "fully expanded" and I need to
make it default to "fully collapsed." Really, I would like to be able
to add buttons and hotkeys to control this rather than the popup menu
in the outline preview. At any rate, does anyone know how to override
the default behavior so that the outline defaults to "fully collapsed?"
My customers have to first collapse the outline with the popup menu
every time they use our inventory reports.

I also have registered hotkeys in the custom preview dialog and they
don't work if the outline preview has focus. They all work fine if you
Use the mouse move the focus away from the outline preview before
pressing them. Can I make the hotkeys work in the print preview even
if the outline viewer has focus?

Thanks for any help. I have worked on it for days and I can make my
preview dialog do everything I need except these two things.

Kind regards,
Brian

Comments

  • edited May 2010
    I forgot to add that I am using Delphi 2007 and RB Enterprise 11.08. I
    have purchased RB Enterprise 12 but I haven't had a chance to install
    it yet.

    Thanks.



  • edited May 2010
    Hi Brian,

    RB 12 includes a new report event named OnOutlineNodeCreate. This event is
    very useful in expanding/collapsing, renaming, or hiding individual nodes in
    the Report Outline. Something like the following...

    procedure TForm1.ppReport1OutlineNodeCreate(Sender: TObject; aNode:
    TppOutlineNode; var aAccept: Boolean);
    begin
    //Collapse all
    aNode.Expanded := False;

    end;

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.