Recent

Author Topic: Items allingnment in RadioGroup  (Read 3917 times)

asdf

  • Sr. Member
  • ****
  • Posts: 310
Items allingnment in RadioGroup
« on: December 03, 2010, 07:24:32 am »
How can we set the alignment of items to be top and left ?
Lazarus 1.2.4 / Win 32 / THAILAND

DirkS

  • Sr. Member
  • ****
  • Posts: 251
Re: Items allingnment in RadioGroup
« Reply #1 on: December 03, 2010, 10:08:06 am »
Have a look at the TRadioGroup.ChildSizing options.
When I set EnlargeVertical to crsAnchorAligning the radiobuttons move to the top left.

Gr
Dirk.

ivan17

  • Full Member
  • ***
  • Posts: 173
Re: Items allingnment in RadioGroup
« Reply #2 on: December 03, 2010, 10:13:26 am »
but then you get a lot of space at the bottom. it's not how radiogroup should look. don't use a control at any cost...

if the number of items may vary a lot, use listbox instead (or combobox). if not, use radiogroup and set autosize to true (and make the form itself grow if necessary).

 

TinyPortal © 2005-2018