Recent

Author Topic: Tbuttons Sizing Issues  (Read 2411 times)

c_knowles4834

  • New Member
  • *
  • Posts: 25
Tbuttons Sizing Issues
« on: August 21, 2021, 03:44:40 pm »
Hey fellas,

I have been trying to increase the height of the gray area for a button that I am using; however, I cannot seem to figure out how to increases its height.  I can increase its width with ease, but its height is another story.  I have included a screenshot to illustrate my problem. 

Thanks,

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: Tbuttons Sizing Issues
« Reply #1 on: August 21, 2021, 04:23:49 pm »
By "gray area" do you mean the normal bounds of the TButton?
Button properties Width and Height behave as expected here.
Are you writing about a TToolButton or a TSpeedButton?
« Last Edit: August 21, 2021, 04:26:13 pm by howardpc »

c_knowles4834

  • New Member
  • *
  • Posts: 25
Re: Tbuttons Sizing Issues
« Reply #2 on: August 21, 2021, 04:51:25 pm »
Yes, I believe so in regards to the bounds of the Tbutton. However, the bounds of the Tbutton won't adjust with my adjustments to the height.  The Black boxes represent the actual set boundaries for the Tbutton. It will adjust with changes to the width though.

The button I am using is the one found under the standard toolbar, labeled "Tbutton", next to the additional toolbar near the top of the UI.

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: Tbuttons Sizing Issues
« Reply #3 on: August 21, 2021, 04:53:59 pm »
What is your platform and widgetset?
Are you writing about using the designer in the IDE, or code to change the button.Height at runtime?

c_knowles4834

  • New Member
  • *
  • Posts: 25
Re: Tbuttons Sizing Issues
« Reply #4 on: August 21, 2021, 06:26:12 pm »
Not sure about the widget set. 

I am running the following:

Lazaurs 2.0.12-x86_64-macosx
fpc-3.2.0.intel-macosx
fpc-3.2.0-2-laz

Everything is pretty standard.

c_knowles4834

  • New Member
  • *
  • Posts: 25
Re: Tbuttons Sizing Issues
« Reply #5 on: August 21, 2021, 08:10:38 pm »
I found a workaround. Tbuttons won't adjust their backgrounds properly, but speedbuttons will!

Thanks guys,

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 10.2 user
Re: Tbuttons Sizing Issues
« Reply #6 on: August 22, 2021, 01:38:43 am »
See Cocoa Internals - Buttons -- Summary: macOS Push Buttons are of a fixed height, while LCL buttons can be any height.

 

TinyPortal © 2005-2018