Author Topic: multiline text formatting in custom large ribbon buttons  (Read 2174 times)

0 Members and 1 Guest are viewing this topic.

XXL66

  • Newt
  • Posts: 99
multiline text formatting in custom large ribbon buttons
« on: January 17, 2015, 04:17:49 AM »
hello,

how is this achieved, suppose i have 2 words fe "edit template", in BricsCAD this text is split into 2 lines below the button, however in ACAD this text stays as a single line resulting in a very wide button, that's not what i want.

ty !

Crank

  • Water Moccasin
  • Posts: 1503
Re: multiline text formatting in custom large ribbon buttons
« Reply #1 on: January 17, 2015, 11:31:41 AM »
I like this to know as well: I know it's possible, but in CUI there is no option to control this.

Perhaps it's possible to find this property if you edit RibbonRoot.cui in a .XML-editor (rename YourMenu.cuix to YourMenu.zip > Rename RibbonRoot.cui to RibbonRoot.XML).












Vault Professional 2023     +     AEC Collection

tombu

  • Bull Frog
  • Posts: 289
  • ByLayer=>Not0
Re: multiline text formatting in custom large ribbon buttons
« Reply #2 on: January 17, 2015, 02:23:57 PM »
A carriage return is the same as it is in lisp "\n"
Tom Beauford P.S.M.
Leon County FL Public Works - Windows 7 64 bit AutoCAD Civil 3D

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: multiline text formatting in custom large ribbon buttons
« Reply #3 on: January 17, 2015, 03:55:02 PM »
A carriage return is the same as it is in lisp "\n"
Not true. \n is a soft return, whereas \P is a hard return. When you have numbering activated in mtext, a soft return (shift+enter) will not activate the next number.
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

Crank

  • Water Moccasin
  • Posts: 1503
Re: multiline text formatting in custom large ribbon buttons
« Reply #4 on: January 18, 2015, 11:35:21 AM »
\n works!  :-)

Thanks tombu
Vault Professional 2023     +     AEC Collection

tombu

  • Bull Frog
  • Posts: 289
  • ByLayer=>Not0
Re: multiline text formatting in custom large ribbon buttons
« Reply #5 on: January 20, 2015, 01:54:08 PM »
A carriage return is the same as it is in lisp "\n"
Not true. \n is a soft return, whereas \P is a hard return. When you have numbering activated in mtext, a soft return (shift+enter) will not activate the next number.
Sorry meant it works same as in lisp (princ "\n").  That's just how I remember what it is.  Soft return does the trick for multiline text formatting in custom large ribbon buttons, but not in actual Multiline Text. 
Tom Beauford P.S.M.
Leon County FL Public Works - Windows 7 64 bit AutoCAD Civil 3D