Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2020-03

Question about TCheckBox

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

frans

Hi,

I use Lazarus 2.04 on win10.
I use a TCheckbox and want more space between Caption and square, Alignement is taLeftJustify and BidiMode is bdRightToLeft. The only way that works is adding an extra space left of the Caption. But is there not another way? I searched the internet  but I can't find it.

mvg Frans van Leeuwen M 06-51695390 -- Deze e-mail is gecontroleerd op virussen door AVG. http://www.avg.com

Reply by email

Jean SUZINEAU
to frans

May be you can create a new component class, based on TPanel, in which you place a TCheckbox with empty text and a TLabel at the position you want ?
TCheckbox implementation is dependant on the widget set you use ("win32" I guess in your case), I don't think you can tune it easily.

Reply by email

Juha Manninen
to Jean SUZINEAU

On Mon, Mar 16, 2020 at 4:34 PM Jean SUZINEAU via lazarus <

Show quoted text 6 lines
wrote: May be you can create a new component class, based on TPanel, in which you place a TCheckbox with empty text and a TLabel at the position you want ?

For temporary use you could just anchor a Label and a Checkbox together on a form and set a border space between them.
Yes, the Caption of Checkbox would be empty then.
I am not sure how well that works in practice.

Juha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20200316/d9fff7d6/attachment.html>

Reply by email