Recent

Author Topic: How do you change the TRadioGroup's Text's Length?  (Read 2099 times)

Awesome Programmer

  • Sr. Member
  • ****
  • Posts: 479
  • Programming is FUN only when it works :)
    • Cool Technology
How do you change the TRadioGroup's Text's Length?
« on: January 05, 2018, 04:18:24 pm »
I have a form with a TRadioGroup and 3 different options to click. For some reason, the selection text's length is shorter than the text itself and it seems you can't change the Text's length. Is that true? I tried to expand the TRadiogroup's length and that didn't help at all.

How do you change the Radiogroup option's text lengh or can you do that?
« Last Edit: January 05, 2018, 04:34:32 pm by Awesome Programmer »

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: How do you change the TRadioGroup's Text's Length?
« Reply #1 on: January 05, 2018, 04:37:21 pm »
I do not understand properly sorry maybe you can post a screenshot? In any case more info will be required OS, widgetset and if all else fails a small sample.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

Awesome Programmer

  • Sr. Member
  • ****
  • Posts: 479
  • Programming is FUN only when it works :)
    • Cool Technology
Re: How do you change the TRadioGroup's Text's Length?
« Reply #2 on: January 05, 2018, 05:09:16 pm »
Nevermind.

Once I made the change to the TRadioGroup, I closed the form saving it and then reopening it. The issue went away.

Well, what I was seeing was TRadiogroup options' text was chopped off at the end. Like I said, once I closed and reopened the form it fixed itself.

Thanks,

ASerge

  • Hero Member
  • *****
  • Posts: 2477
Re: How do you change the TRadioGroup's Text's Length?
« Reply #3 on: January 05, 2018, 05:16:06 pm »
I wonder on which platform TRadioGroup has properties "options", "text", or "option's text"?

Awesome Programmer

  • Sr. Member
  • ****
  • Posts: 479
  • Programming is FUN only when it works :)
    • Cool Technology
Re: How do you change the TRadioGroup's Text's Length?
« Reply #4 on: January 05, 2018, 05:49:41 pm »
 :D
lol

Well, the property for this would be ITEMS.

 :) :) :) :)

Blaazen

  • Hero Member
  • *****
  • Posts: 3241
  • POKE 54296,15
    • Eye-Candy Controls
Re: How do you change the TRadioGroup's Text's Length?
« Reply #5 on: January 05, 2018, 06:09:00 pm »
You can try set AutoSize property to True.
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

 

TinyPortal © 2005-2018