Disabling tool windows
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
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
This discussion has been closed.
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Regards,
Mariella
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\)"
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
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\)"