Question of RB10.02
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
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
This discussion has been closed.
Comments
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