TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: XXL66 on November 10, 2015, 05:29:28 AM

Title: Ribbon display name text help
Post by: XXL66 on November 10, 2015, 05:29:28 AM
Not lisp but don't no where else to post.

I have custom CUI files with ribbons with large button + text.
When i add a longer text display name in BricsCAD this is automatically split into 2 lines, in acad it is not, so buttons get too large.
I ACAD the text isn't, but when checking the settings of a button with a double text line in ACAD using customize dialog, this text is even without spaces, but it is split ?
How is this achieved ?

I of course would like to avoid having to make 2 cui's, one for bcad and another for acad. Btw i tried a \n which works in acad but this \n is show in the text in bcad... so this is not a solution for my problem.

who can help me ?

ty !


Title: Re: Ribbon display name text help
Post by: owenwengerd on November 10, 2015, 10:33:58 AM
A trick that sometimes works in cases like this is to copy and paste a newline character. Start Notepad, press <Enter> one time, press <Ctrl>-A to select it, <Ctrl>-C to copy it to the clipboard, then paste it into your label text in the CUI editor.
Title: Re: Ribbon display name text help
Post by: XXL66 on November 10, 2015, 11:47:53 AM
thx Owen, tried it but it doesn't seem to work.

Title: Re: Ribbon display name text help
Post by: XXL66 on November 10, 2015, 11:52:12 AM
http://adndevblog.typepad.com/autocad/2012/05/multiline-text-in-ribbon-button.html

The \r works in acad but it is displayed in the text in BricsCAD...
Title: Re: Ribbon display name text help
Post by: CAB on November 10, 2015, 12:02:12 PM
Throwing darts here but have you tried \P & \X
Title: Re: Ribbon display name text help
Post by: XXL66 on November 10, 2015, 12:06:47 PM
Just tried \P

It seems that bcad doesn't interpret it as formatted text. The characters are just displayed in between the text.
I filed a SR at Bcad.

ty !
Title: Re: Ribbon display name text help
Post by: roy_043 on November 10, 2015, 04:53:15 PM
Maybe directly editing the .cui and using
Code: [Select]
&#xD;will work.
Untested.

See: http://stackoverflow.com/questions/10917555/adding-a-new-line-break-tag-in-xml
Title: Re: Ribbon display name text help
Post by: XXL66 on November 12, 2015, 01:55:13 AM
thx Roy,

i cannot work (tested it), because Bcad confirmed currently formatted text is not supported, they are going to fix this tho.

ty!