Recent

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

simone

  • Hero Member
  • *****
  • Posts: 573
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 3.0 FPC 3.2.2 x86_64-win64-win32/win64

wp

  • Hero Member
  • *****
  • Posts: 11855
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.

WooBean

  • Full Member
  • ***
  • Posts: 229
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
Platforms: Win7/64, Linux Mint Ulyssa/64

simone

  • Hero Member
  • *****
  • Posts: 573
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 3.0 FPC 3.2.2 x86_64-win64-win32/win64

 

TinyPortal © 2005-2018