Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread TButton FontSize Issue
Sat, Jan 7 2017 3:34 AMPermanent Link

Uli Becker

Using TButton with the default interface:

when the Font.Size is set to a value < than the default Font.Size the
button's caption is not centered any more at runtime - at designtime it
works fine.

After a "refresh" of the caption (setting the caption again at runtime)
the alignment is corrected.

I attached a sample project to demonstrate that.

Uli



Attachments: sample.zip
Mon, Jan 9 2017 4:16 AMPermanent Link

Matthew Jones

Uli Becker wrote:

> After a "refresh" of the caption (setting the caption again at runtime) the alignment is corrected.

Reminds me of an issue I reported I think, which is fixed in the coming update IIRC.

--

Matthew Jones
Mon, Jan 9 2017 4:11 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Uli,

<< when the Font.Size is set to a value < than the default Font.Size the button's caption is not centered any more at runtime - at designtime it works fine. >>

Yes, this is already fixed for 2.06.  In addition, the TButton control has been re-organized so that the centering/pushed state work a lot cleaner, and there's now an AutoWidth property.

Tim Young
Elevate Software
www.elevatesoft.com
Image