Topic: How To Change Property ToolBar,ToolButton

How to set size toolbutton in toolbar increase Height ,Width  ???
Help me please !!!


https://s1.postimg.org/65unijztxr/2017-10-31_14_01_01.png


i try input code but not effect

var
toolbar :ttoolbar;
toolbutton0 : ttoolbutton;
begin
toolbar := ttoolbar.create(form1);
toolbar.parent := form1.Panel2;
toolbar.Customizable  := True ;
toolbar.showcaptions := true;
toolbar.AutoSize := True ;
toolbar.Height := 80 ;
toolbar.ButtonHeight := 50 ;
toolbar.ButtonWidth := 100 ;

toolbutton0 := ttoolbutton.Create(Form1) ;
toolbutton0.Parent := toolbar ;
toolbutton0.Caption:= 'toolbutton0';
toolbutton0.Height := 50 ;
toolbutton0.Width := 100;
end;
My Visual Database : I Love You
Easy For Beginner Student For Me

Re: How To Change Property ToolBar,ToolButton

This is standard behaviour for Toolbar.  You can increase size if you use toolbar.showcaptions := true;


from Delphi documentation

If ShowCaptions is set to true, tool buttons appear in the toolbar with their captions displayed. Setting ShowCaptions to true may increase the size of the tool buttons.

Dmitry.