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

Question of RB10.02

edited September 2006 in RAP
Hi:
When use RB9.03 on Tppdesigner.OnActivate I can use

(TppDesignerWindow(ppDesigner1.Form).ToolbarManager.FindToolbar('Standard')
as TppStandardToolbar).FileNewButton.Enabled:=False;
But in RB10.02 the ppdesigner1.Form.ToolbarManager does't exists,If I use
(ppDesigner1.Form.LayoutManager.FindComponent('Standart') as
TppStandardToolbar).FileNewButton.Enabled:=False that will raise an
Exception,how can I set the FileNewButton disable?

Thanks for any help!

Ding Li
djhs@sohu.com

Comments

  • edited September 2006

    For RB 10, the internals of the designer were refactored/rewritten. Here is
    an example that shows how customize the menus and toolbars.

    www.digital-metaphors.com/tips/Designer10_CustomizeMenusAndToolbars.zip


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

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.