Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

How to center RadioButton and caption

Avatar

Avatar
Validate 1
Level 1
tobiasm11312922
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
tobiasm11312922
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
tobiasm11312922
Level 1

18-06-2015

Hello,

how can I center the caption below the Radio button (see Image), is this possible.

2015-06-18_131411.jpg

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
MVP
radzmar
MVP

Likes

397 likes

Total Posts

2,687 posts

Correct Reply

492 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile

Avatar
Coach
MVP
radzmar
MVP

Likes

397 likes

Total Posts

2,687 posts

Correct Reply

492 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile
radzmar
MVP

18-06-2015

You can center the button and the caption when you add additional <para> elements to the XML source.

This is source code for such radio button.


<field y="0mm" x="0mm" w="22mm" h="12mm" name="RadioButton">


              <ui>


                  <checkButton shape="round">


                    <border>


                        <edge stroke="lowered"/>


                        <fill/>


                    </border>


                  </checkButton>


              </ui>


              <para vAlign="middle" hAlign="center"/>


              <font typeface="Arial"/>


              <margin leftInset="0mm" rightInset="0mm"/>


              <caption placement="bottom" reserve="0.236222in">


                  <para vAlign="middle" hAlign="center"/>


                  <value>


                    <text>Option XY</text>


                  </value>


              </caption>


              <items>


                  <integer>1</integer>


              </items>


            </field>


Answers (3)

Answers (3)

Avatar

Avatar
Validate 1
Level 3
lateniteNC
Level 3

Likes

12 likes

Total Posts

98 posts

Correct Reply

13 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 3
lateniteNC
Level 3

Likes

12 likes

Total Posts

98 posts

Correct Reply

13 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
lateniteNC
Level 3

18-06-2015

You could try adding a radio button to your form, then from the Layout palette, set the caption to none. Add a text object below your radio button and position manually to achieve the desired spacing you seek.

Avatar

Avatar
Validate 1
Level 1
tobiasm11312922
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
tobiasm11312922
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
tobiasm11312922
Level 1

18-06-2015

Then vice versa center the button above the caption 🙂

Avatar

Avatar
Boost 1
Level 2
alcdtrainer1
Level 2

Likes

2 likes

Total Posts

31 posts

Correct Reply

6 solutions
Top badges earned
Boost 1
Applaud 5
Applaud 25
Affirm 5
Affirm 3
View profile

Avatar
Boost 1
Level 2
alcdtrainer1
Level 2

Likes

2 likes

Total Posts

31 posts

Correct Reply

6 solutions
Top badges earned
Boost 1
Applaud 5
Applaud 25
Affirm 5
Affirm 3
View profile
alcdtrainer1
Level 2

18-06-2015

What do u mean by centered here? The caption below the radio button is already centered.