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

Hiding Outline oc custom preview

edited November 2003 in General
Hi,

I have a custom preview form with a panel on it where I reparent the
OutlineViewer. Where must I implement the code to hide this panel if "Hide
Outline" is selected from the pop-up menu? (The tree dissapears, but the
panel is currently still visible)

Thanks
Jan

Comments

  • edited November 2003
    Hi Jan,

    You need to set the Report.OutlineSettings.Visible and
    Report.OutlineSettings.Enabled properties to False to fully disable the
    ReportOutline. These properties are published so you can access them from
    the Delphi Object Inspector.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited November 2003
    I want the report outline, but when the users right click on the report
    preview a pop-up menu appears where the first item is "hide outline". I
    want this option as well, but I want it to work correctly: Not only the
    outline tree must dissapear, but also the panel on which it was drawn. I
    cannot find an OutlineView event like "onHide" where I can implement the
    code to hide the panel as well. (There is a "onCollapse" and a "onExplode",
    which are the other 2 pop-up menu options)

    Thanks
    Jan

  • edited November 2003
    Hi Jan,

    Take a look at the ppOutlineViewer.pas file in the TppOutlineViewer class.
    In the CreateOutlinePopupMenu fuction, the Hide/Show Outline option's on
    click gets assigned to the ToggleOutlineVisibilityEvent event. If you are
    using the outline in your custom preview without altering any of this code,
    then this option should just work the way you expect. Since it is not, you
    will need to do something similar to the code I mentioned above. If you
    would like, you can send a copy of your custom preview to
    support@digital-metaphors.com and I'll take a look at it for you.

    --
    Best Regards,

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