Home General

Hide/Modify Menu Item

edited August 2011 in General
I would like to replace the Help menu item of the Report Explorer. I
have already replaced the Help menu item in the Designer using the code
from the rbWiki but don't have comparable code for the Explorer.

Using the MergeMenu property I can add the new help item and even
overwrite the existing help for the Report Explorer but end up with a
small memory leak.

I would appreciate any suggestions on writing the required code to hide
the Report Explorer help menu item.


JonD

Comments

  • edited August 2011
    Hi Jon,

    You can access the explorer menu directly by typecasting the Form
    property. For instance, if you would like to hide the Help menu, you
    would add the following line of code before the explorer loads.

    uses
    ppExpFrm;

    TppReportExplorerForm(ppReportExplorer1.Form).MenuBar.HelpMenu.Visible
    := False;

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited August 2011
    Thanks Nico,

    so simple and easy (when you know how).

    I had tried several other more complex solutions that did not work!

    JonD

This discussion has been closed.