Page 1 of 1

Wrapping radiobutton labels

Posted: Thu Dec 01, 2011 4:20 pm
by slow_runner
Hi there,

I'm working on a set of radiobuttons whose labels are set dynamically and vary in length. Most labels are too long to fit their space within just one line. Is there a way to get the labels to wrap?

Thanks a lot in advance,
slow

Re: Wrapping radiobutton labels

Posted: Thu Dec 01, 2011 5:47 pm
by jmburnod
Hi slow,

Sorry i think it is no possible to wrap the labels but you can use some groups and simulate the behavior of radio buttons

Best regards

Jean-Marc

Re: Wrapping radiobutton labels

Posted: Thu Dec 01, 2011 5:52 pm
by dunbarx
I don't think so.

But why not "attach" a radio button to a transparent wrappable field, where the field is sized to the maximum you might ever need? The field will do its thing, and the radio button can just sit there.

Or you can set the field rect to accommodate the dynamic text. Takes a bit of coding, but sounds like a fun task.

If you need to move them all around, you might set a custom property that will allow you to manage them as a "group".

Craig Newman

Re: Wrapping radiobutton labels

Posted: Thu Dec 01, 2011 6:57 pm
by townsend
It is also possible to put a carriage return in the label which will manually force a wrap.

Code: Select all

     set the label of btn "my.radio" to "first line" & CR & "second line"

Re: Wrapping radiobutton labels

Posted: Thu Dec 01, 2011 8:17 pm
by slow_runner
Using the label object seems to be the most practical work-around for my purposes.

Thanks a lot everyone.