This Question is Answered

13 "helpful" answers available (3 pts)
6 Replies Last post: Jun 26, 2008 10:28 PM by markecho

How to align the RadioButton label at left of the RadioButton?

Jun 26, 2008 8:47 PM

Click to view markecho's profile Level 2 markecho 27 posts since
Oct 17, 2007

Hi

I wanna align the RadioButton Label at Left of RadioButton.

Maybe it's an easy question, but I can't find the proper property of the RadioButton.
How should I do?

many thanks

Click to view tiju's profile Level 3 tiju 52 posts since
Oct 17, 2007
1. Re: How to align the RadioButton label at left of the RadioButton? Jun 26, 2008 9:14 PM
Sorry. I mistakenly replied for a CommandButton.
Click to view URPradhan's profile Level 6 URPradhan 108 posts since
Mar 6, 2008
2. Re: How to align the RadioButton label at left of the RadioButton? Jun 26, 2008 9:41 PM
mistakenly took for alignment of radio buttons
Click to view Duke's profile Curl Duke 116 posts since
Oct 17, 2007
3. Re: How to align the RadioButton label at left of the RadioButton? Jun 26, 2008 9:38 PM
I think that if you want to put the label to the left side of the circle button, then you should read the documentation found at the index entry "controls > customizing".

Also the section "Building Custom Control UIs". Here is some of the advice from that section:

=====

If you need a different visual appearance for the control for the same situations, but want to implement it beyond the label or you want to set properties that affect appearance in those situations, then

Define a UI class and a control class that uses it.

• In your UI class, implement the draw-as-* methods you need. Also ensure that the constructor takes a control= keyword argument and passes it to the superclass's constructor.

• In the simple control class, implement create-default-ui-object to return a new instance of the UI object with control=self.

=====

But maybe you would only have to subclass and override the StandardRadioButtonUI.draw-label method.

You might also look at the open source for the controls which comes with the IDE in the ide/gui/controls directory. Look at the documentation chapter that you can find by looking at the index entry for "controls > open".
Click to view markecho's profile Level 2 markecho 27 posts since
Oct 17, 2007
4. Re: How to align the RadioButton label at left of the RadioButton? Jun 26, 2008 10:25 PM
in response to: tiju
thank you all the same.
Click to view markecho's profile Level 2 markecho 27 posts since
Oct 17, 2007
5. Re: How to align the RadioButton label at left of the RadioButton? Jun 26, 2008 10:26 PM
in response to: URPradhan
thanks for your attention
Click to view markecho's profile Level 2 markecho 27 posts since
Oct 17, 2007
6. Re: How to align the RadioButton label at left of the RadioButton? Jun 26, 2008 10:28 PM
in response to: Duke

Your answer is a great help for me. Thanks a lot :-)