EtheaDev / StyledComponents

Components similar to Delphi VCL Buttons, Toolbar, DbNavigator, BindNavigator, ButtonGroup and CategoryButtons with Custom Graphic Styles, and an advanced, full-customizable TaskDialog, also with animations!
Apache License 2.0
152 stars 34 forks source link

Height of a TStyledToolButton on a tpanel #27

Closed MAUROFAILO closed 2 months ago

MAUROFAILO commented 2 months ago

I create a Tpanel with a TStyledToolButton without image and only a caption, with height=60. At Design time ok, but a run time the hieght of TStyledToolButton i resized at 10. Is correct ? There is a modo to force the Height as at design time ?

carloBarazzetta commented 2 months ago

The size of the StyledToolButton is controlled by StyledToolBar.ButtonHeight and StyledToolBar.ButtonWidth. At design time you can resize a single ToolButton that cause the resize of all of the ToolButtons present in the Toolbar, because StyledToolBar.ButtonHeight or StyledToolBar.ButtonWidth changes.

MAUROFAILO commented 2 months ago

YES, BAT NOT ON A TPANEL.