I need to have two TToolBar
s on the right side of my main form, so I put three TPanel
s for alignment, and then put the TToolBar
s inside them. I've been trying to tell the toolbutton
s to have the same width for the past day, to no avail. Here's a screen shot of what I've got:
I found out that if ShowCaption
is set to True
, the toolbars calculate the button width automatically. My question is why, and how to disable this?
Take a look at this approach:
SendMessage(ToolBar3.Handle,TB_SETBUTTONWIDTH, 0, MAKELPARAM(0, <DEFAULT_WIDTH_THAT_YOU_WANT_TO_SET>));
For more details: http://zarko-gajic.iz.hr/ttoolbars-ttoolbutton-autosize-width-issues-empty-caption/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With