New Blog Post: PDF/A and Metadata

Hide Report Tree Window by default

edited April 2016 in General
Hi,

i am getting mad, maybe it is time to start a good weekend:

How can i hide the report tree window when designer starts, independent
which state it was when the designer was closed?

I crawled ppDesignLayoutMenu.pas multiple times but i found nothing,
neither where the menuitem is created......

--


Hint: We altered the sources!Hint: We altered the sources!

Comments

  • edited April 2016
    Hi Carsten,

    A good starting point is here

    http://www.digital-metaphors.com:8080/End-User/Designer/How_To...Customize_Designer_Menu_and_Toolbars


    Using that information and the Demos\EndUser\ReportExplorer example, I
    implemented the TppDesigner.OnShow event to hide the report tree as follows:

    uses
    ppTypes,
    ppDesignLayoutMenu,
    ppTB2Item;

    procedure TmyEndUserSolution.ppDesigner1Show(Sender: TObject);
    var
    lDesignMenu: TppDesignerMenu;
    lViewToolbarsMenu: TppDesignToolbarMenu;
    lReportTreeItem: TppTBCustomItem;
    begin
    // menubar
    lDesignMenu := TppDesignerMenu(ppDesigner1.Form.MainMenu);

    // view toolbars menu
    lViewToolbarsMenu := lDesignMenu.ViewMenu.Toolbars;

    // report tree, 4th item
    lReportTreeItem := lViewToolbarsMenu.Items[4];

    // hide, if needed
    if lReportTreeItem.Checked then
    lReportTreeItem.Click;

    end;



    -
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited April 2016
    Works great!
    Nard Moseley (Digital Metaphors) drückte sich sehr genau aus :

    --


    Hint: We altered the sources!Hint: We altered the sources!
This discussion has been closed.