Space between two RadButtonElement in a RibbonGroup

5 posts, 1 answers
  1. DoomerDGR8
    DoomerDGR8 avatar
    133 posts
    Member since:
    Aug 2010

    Posted 13 Jan 2011 Link to this post

    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?
  2. DoomerDGR8
    DoomerDGR8 avatar
    133 posts
    Member since:
    Aug 2010

    Posted 13 Jan 2011 Link to this post

    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.
  3. Answer
    Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 13 Jan 2011 Link to this post

    Hello again Hassan,

    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
  4. DoomerDGR8
    DoomerDGR8 avatar
    133 posts
    Member since:
    Aug 2010

    Posted 14 Jan 2011 Link to this post

    You are on a roll, Richard!
  5. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 14 Jan 2011 Link to this post

    haha, Thanks Hassan. Glad that helped you.
    Best wishes
    Richard
Back to Top