The toolbars are not created until the window is first shown. Try using the Designer.OnActivate event..
Example
var lDesignerWindow: TppDesignerWindow; lToolbar: TppToolbar; begin
if (FFirstTime) then // use a boolean to perform this only once begin lDesignerWindow := TppDesignerWindow(ppDesigner1.Form); lToolbar := lDesignerWindow.ToolbarManager.FindToolbar('Standard'); lToolbar.Enabled := False;
FFirstTime := False; end;
Best regards,
Nard Moseley Digital Metaphors www.digital-metaphors.com
Comments
The toolbars are not created until the window is first shown. Try using the
Designer.OnActivate event..
Example
var
lDesignerWindow: TppDesignerWindow;
lToolbar: TppToolbar;
begin
if (FFirstTime) then // use a boolean to perform this only once
begin
lDesignerWindow := TppDesignerWindow(ppDesigner1.Form);
lToolbar := lDesignerWindow.ToolbarManager.FindToolbar('Standard');
lToolbar.Enabled := False;
FFirstTime := False;
end;
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com