How to modify ribbon button text to be multiple lines and how to adjust justification of buttons.

How to modify ribbon button text to be multiple lines and how to adjust justification of buttons.

KMeyer8AYA2
Explorer Explorer
1,703 Views
7 Replies
Message 1 of 8

How to modify ribbon button text to be multiple lines and how to adjust justification of buttons.

KMeyer8AYA2
Explorer
Explorer

Hello, 

I have been trying to figure out how to have multiple lines of text on a button within a Custom ribbon panel (panel.png attachment. There are many AutoCAD native buttons that show this scenario (see customize panel.png attachment). Any knowledge on this would be appreciated.

 

I have also noticed that all buttons justify left, is there any way to change this behavior?

 

Thank you for your help.

 

 

0 Likes
Accepted solutions (1)
1,704 Views
7 Replies
Replies (7)
Message 2 of 8

jduframe
Enthusiast
Enthusiast

 

 

does it have something to do with the dropdown in CUI editor as shown in this pic

 

 

Capture.JPG

0 Likes
Message 3 of 8

jduframe
Enthusiast
Enthusiast

button style I have shown highlighted in blue on the right side

0 Likes
Message 4 of 8

KMeyer8AYA2
Explorer
Explorer

That dropdown just changes if/where it shows the text.

0 Likes
Message 5 of 8

jduframe
Enthusiast
Enthusiast

Oh OK, then I do not know, I am not familiar enough with this, hope someone has an answer for you 

0 Likes
Message 6 of 8

pendean
Community Legend
Community Legend

Is there a reason you are not able to go to the example you wish to emulate in CUI command to see how it is done? Or is it just that you don't quite understand the three stacked commands are in a sub-panel in three separate rows with icons set to text on the side and that is what you need to do to replicate for your items?

 

pendean_0-1646692785182.png

 

pendean_1-1646692841792.png

 

pendean_0-1646693024542.png

 

 

Here is one of many online tutorials to get you started if you wish to dive in 

https://www.youtube.com/watch?v=6TZu0YuBUNw

https://www.google.com/search?q=autocad+cui+command+tutorials

0 Likes
Message 7 of 8

Sea-Haven
Mentor
Mentor

Google editing the ribbon via CUI there are some good youtubes out there it is not hard but 1st go a bit daunting. Unfortunately when they made the ribbon threw away the old fashioned text menu's method for menu's and toolbars.

 

For me can do as a toolbar or a menu just a simple text file. Easy to edit v's CUI.

0 Likes
Message 8 of 8

ВeekeeCZ
Consultant
Consultant
Accepted solution

@KMeyer8AYA2 wrote:

Hello, 

I have been trying to figure out how to have multiple lines of text on a button within a Custom ribbon panel 

It's \r or \n

Current\rTranformer

 

I have also noticed that all buttons justify left, is there any way to change this behavior?

Not sure what you mean. Large icons with labels placed bellow are horizontally centred to label.

 

BeekeeCZ_0-1646822929380.png

 

Also can have this style. Large icons in two rows, with hor labels

 

BeekeeCZ_1-1646823256266.png