Recent

Author Topic: Possible Enhancement to the TColorButton on the Misc tab  (Read 843 times)

jamie

  • Hero Member
  • *****
  • Posts: 7660
Possible Enhancement to the TColorButton on the Misc tab
« on: March 15, 2026, 03:40:20 pm »
I have been using the TColorBUtton because it's nice and simple and works, however, what I don't like is the fact that if you show the caption and have auto size true, it centers justifies making it ugly looking because it does not align with other adjacent color buttons.

 Also, if I don't use the AutoSize button, then setting the size also sets the height, not just the width which makes it impossible to have a rectangle color button. Using the AutoSize feature only widens it does not increase the height which is what I want but I can't get the left justify feature.

 I have for the moment used Labels left or right side but that does not give me the nice background of the button.

 is it possible to have some added features so that we can have a leftJustifyGlyph or Right in the Layout property and also have a fixed height so that only the width can be sized manually when using left or right layout with Caption text?


Jamie
The only true wisdom is knowing you know nothing

jamie

  • Hero Member
  • *****
  • Posts: 7660
Re: Possible Enhancement to the TColorButton on the Misc tab
« Reply #1 on: March 15, 2026, 04:10:38 pm »
It appears the TSpeedButton for which The TColorButton is built on has a "Alignment" property which isn't published in the Tcolorbutton however,
it really does not matter because it appears that property does not work at all in the TSpeedButton?

 So that means you can't left or right justify the text in the speedbutton either.

This is with 4.6 laz

Jamie
The only true wisdom is knowing you know nothing

jamie

  • Hero Member
  • *****
  • Posts: 7660
Re: Possible Enhancement to the TColorButton on the Misc tab
« Reply #2 on: March 18, 2026, 10:52:49 am »
i need to fix this myself? :o
The only true wisdom is knowing you know nothing

wp

  • Hero Member
  • *****
  • Posts: 13485
Re: Possible Enhancement to the TColorButton on the Misc tab
« Reply #3 on: March 18, 2026, 03:11:47 pm »
i need to fix this myself? :o
Why not? This is open source.

 

TinyPortal © 2005-2018