Recent

Author Topic: Changing Size of ToolButtons  (Read 1540 times)

simone

  • Sr. Member
  • ****
  • Posts: 361
Changing Size of ToolButtons
« on: September 22, 2018, 11:36:21 am »
A trivial question (I apologize for this): I'm not able to resize toolbuttons in a toolbar,
neither by code nor by designer. Is there any issue about this control? Thanks in advance.
Microsoft Windows 10 64 bit - Lazarus 2.0.10

wp

  • Hero Member
  • *****
  • Posts: 7749
Re: Changing Size of ToolButtons
« Reply #1 on: September 22, 2018, 12:16:02 pm »
Yes, I know this is a bit strange. I do it like this (maybe there are better ways):
- Set the ButtonHeight and ButtonWidth of the Toolbar
- Set Toolbar.Autosize to true.
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...

WooBean

  • Jr. Member
  • **
  • Posts: 92
Re: Changing Size of ToolButtons
« Reply #2 on: September 22, 2018, 12:21:46 pm »
Hello simone,

At least for Lazarus 1.8.2 + FPC 3.0.4 on Windows 7/64 there is no problem - I can change (at disigner)  size of toolbuttons on toolbar component with no problems. (Manipulation needs to be done at toolbar component (!) - not with a particular toolbutton).

WooBean
Win7/64, Lazarus 1.8 win64-win64, FPC 3.0.4

simone

  • Sr. Member
  • ****
  • Posts: 361
Re: Changing Size of ToolButtons
« Reply #3 on: September 22, 2018, 06:38:44 pm »
Thanks for suggestions. With Autosize=True I can change dimensions in object inspector or by code.
However in the designer I can't resize toolbuttons with mouse. I'm using Lazarus 1.8.4 win32/64
Microsoft Windows 10 64 bit - Lazarus 2.0.10

 

TinyPortal © 2005-2018