Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

put Ribbon Button in middle of panel

1 REPLY 1
Reply
Message 1 of 2
masoud_123
389 Views, 1 Reply

put Ribbon Button in middle of panel

Hi

I am new to creating ribbons.Is there any way to put two vertical ribbon button just in the middle of the panel? Is it possible to align Ribbon Buttons? Or changing properties of ribbon buttons like font size?


This is part of my code that creating two vertical buttons in a panel,but unfortunately they aren't  align.
 

 Dim ribbonbutton5 As New RibbonButton()
        ribbonbutton5.Text = "Detail"
        ribbonbutton5.ShowText = True
        ribbonbutton5.ShowImage = True
        ribbonbutton5.LargeImage = getBitmap(My.Resources.Rib_32)
        ribbonbutton5.Image = getBitmap(My.Resources.Rib_16)
        ribbonbutton5.Orientation = System.Windows.Controls.Orientation.Vertical
        ribbonbutton5.Size = RibbonItemSize.Large
     

        Dim ribbonbutton6 As New RibbonButton()
        ribbonbutton6.Text = "Sections"
        ribbonbutton6.ShowText = True
        ribbonbutton6.ShowImage = True
        ribbonbutton6.LargeImage = getBitmap(My.Resources.Rib_32)
        ribbonbutton6.Image = getBitmap(My.Resources.Rib_16)
        ribbonbutton6.Orientation = System.Windows.Controls.Orientation.Vertical
        ribbonbutton6.Size = RibbonItemSize.Standard

1 REPLY 1
Message 2 of 2
Charles_Shade
in reply to: masoud_123

Font size and Icon size are static I do believe.

Placement can be achieved just by using Rows that are native inside the CUI editor

Vertical, clustered, and horizontal:

 

Ribbon.jpg

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost