
DoomerDGR8
Top achievements
Rank 2
Iron
Iron
Iron
DoomerDGR8
asked on 13 Jan 2011, 05:03 PM
Hello, this is a quick one: I need to increase space between two RadButtonElement inside a Ribbon group. The screen shot explains more. Is there a possibility?
Secondly, What controls the overall Ribbon's height? can I make it slightly less taller?
Secondly, What controls the overall Ribbon's height? can I make it slightly less taller?
4 Answers, 1 is accepted
0

DoomerDGR8
Top achievements
Rank 2
Iron
Iron
Iron
answered on 13 Jan 2011, 06:34 PM
I've currently managed by typing three space characters in the text property of the Button element :)
See, it works but was wondering if we could induce space between elements.
See, it works but was wondering if we could induce space between elements.
0
Accepted

Richard Slade
Top achievements
Rank 2
answered on 13 Jan 2011, 09:41 PM
Hello again Hassan,
To set the space, you should use padding on the button. For exmaple
To set the overall height, you may need to first manually set the size of the buttons and turn off Auto Size
then you can set the MaxSize of the RootElement of the RibbonBar itself
I've attached a screenshot of the smaller version
Regards
Richard
To set the space, you should use padding on the button. For exmaple
Me
.RadButtonElement1.Padding =
New
Padding(3)
To set the overall height, you may need to first manually set the size of the buttons and turn off Auto Size
Me
.RadButtonElement1.AutoSize =
False
Me
.RadButtonElement1.Size =
New
Size(
Me
.RadButtonElement1.Size.Width, 40)
then you can set the MaxSize of the RootElement of the RibbonBar itself
Me
.RadRibbonBar1.RootElement.MaxSize =
New
Size(0, 120)
I've attached a screenshot of the smaller version
Regards
Richard
0

DoomerDGR8
Top achievements
Rank 2
Iron
Iron
Iron
answered on 14 Jan 2011, 11:21 AM
You are on a roll, Richard!
0

Richard Slade
Top achievements
Rank 2
answered on 14 Jan 2011, 11:23 AM
haha, Thanks Hassan. Glad that helped you.
Best wishes
Richard
Best wishes
Richard