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

Disabling tool windows

edited March 2005 in General
I am trying to disable the tool windows (Data Tree and Report Tree) in the
report designer, as I do not want my end users to have this option. For as
far as I can see in the help files and source code, there is no way to
disable them.

Am I overlooking something, or is it not possible at all? In the latter
case, how can I workaround?

Regards,
Mariella

Comments

  • edited March 2005
    Hi Mariella,

    You can take control of the designer menu using the TppDesigner.Menu
    property. This gives you access to the TMainMenu object of the designer
    window. Using this you should be able to disable the View | ToolBars |
    Report Tree, and Data Tree options perhaps in the OnShow event of the
    designer.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited March 2005
    I get further using this information, thank you.

    Regards,
    Mariella

  • edited March 2005
    Hi Nico,

    Please have a look at the attached images. The main differences are
    highlighted in yellow. These are the parts we would like to hide, so
    that it looks like the trees in version 7

    regards
    Paul

    On Wed, 9 Mar 2005 07:52:55 -0700, "Nico Cizik \(Digital Metaphors\)"
  • edited March 2005
    Hi Paul,

    For future reference, please do not post attachements to these newsgroups.
    Send all attachments to support@digital-metaphors.com.

    The toolbar archetecture is completely different for ReportBuilder 9.01.
    You will need to access the TppToolBarManager in order to control the look
    of each side ToolWindow. The following instructions should help get you
    started. You may want to take a look at the TppToolBarManager,
    TppToolWindow, and TppCustomToolWindow classes before you start located in
    the ppDesignerTools.pas and ppToolBars.pas files to become more familiar
    with this source.

    1. Access the TppToolBarManager class.

    uses
    ppDsgner;

    TppDesignerWindow(MyDesigner.Form).ToolBarManager

    2. Use the ToolWindows property to access the proper tool window.

    ToolbarManager.ToolWindow[i]

    3. Adjust the toolwindow properties as you need.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited March 2005
    Hi Nico,

    Sorry about the attachements, will post them to the right group next
    time.
    Thanks for the fast answer

    regards
    Paul

    On Mon, 14 Mar 2005 13:19:23 -0700, "Nico Cizik \(Digital Metaphors\)"
This discussion has been closed.