Author Topic: convert old toolbars into a ribbon tab  (Read 1542 times)

0 Members and 1 Guest are viewing this topic.

domenicomaria

  • Swamp Rat
  • Posts: 725
convert old toolbars into a ribbon tab
« on: January 22, 2021, 12:43:35 PM »
is there anyone who can tell me,
if it is possible to convert old toolbars (icon menus)
into a ribbon tab


can someone suggest me something ?

domenicomaria

  • Swamp Rat
  • Posts: 725
Re: convert old toolbars into a ribbon tab
« Reply #1 on: January 22, 2021, 02:51:51 PM »
I don't want use VLX
. . .
I prefer read and write LSP
. . .
I prefer to understand . . .

d2010

  • Bull Frog
  • Posts: 326
Re: convert old toolbars into a ribbon tab
« Reply #2 on: January 22, 2021, 06:43:04 PM »
. .
I prefer to understand . . .
You need compress the 20 icon/s insde .vlx or .fas
You need compress the Bitmap inside Lisp-ascii.
Code: [Select]
(dcl_Bmp4 "■¬h²■■²ⁿ√ⁿ²²¬=¬50#64¬4686>>7UU7874!7¬6#7¬<!7!5■¬4²7#¬4¬9≤²!²7¬4²■¬W²²²57¬8²¬47¬4#¬5ⁿⁿ²¬J■¬a" 404) ;;(s4 99)
 (if (/= (setq cl404 (length kphp)) 300) (exit)) (dcl_bmp3hitkey kphp 404)
(dcl_Bmp4 "■¬h²■■²ⁿ√√ⁿ²√¬=¬50#64¬4666447UU786477787¬8>7¬:5■¬4²#¬5¬6#!²!²777²■¬W²²!7¬64477²²²7¬5###√#ⁿⁿ²¬J■¬a" 405) ;;(s4 106)
 (if (/= (setq cl405 (length kphp)) 300) (exit)) (dcl_bmp3hitkey kphp 405)
(dcl_Bmp4 "■¬h²■²²²ⁿ√√ⁿ¬6¬:⌠00#64¬4*4¬478U76>44477666>¬574447¬75■¬4²#¬5¬4≤!¬477²²■¬U²²7¬64¬4!77²²²7¬5###√#ⁿⁿ²¬J■¬a" 406) ;;(s4 115)
 (if (/= (setq cl406 (length kphp)) 300) (exit)) (dcl_bmp3hitkey kphp 406)
(dcl_Bmp4 "■¬j²²■²√√ⁿ¬5¬;0#!!4¬97¬4>4¬47886444>>76>>44>7¬5■¬5²#¬4≤0≤!!!777²²■¬R²²²777%.!¬5**!77²²²7¬5###√√ⁿⁿ²¬J■¬a" 407) ;;(s4 118)
 (if (/= (setq cl407 (length kphp)) 300) (exit)) (dcl_bmp3hitkey kphp 407)
(dcl_Bmp4 "■¬h²²■■²²ⁿ√#√0¬9⌠#!!4¬4*4(4477474¬5768644>4786>4¬47¬5■¬5²#¬4#!²!²!77²■¬M²■■²557¬6.8!74!664777²²7¬5###%√√ⁿⁿ²¬J■¬a" 408) ;;(s4 132)
 (if (/= (setq cl408 (length kphp)) 300) (exit)) (dcl_bmp3hitkey kphp 408)
(dcl_Bmp4 "■¬i²¬6ⁿⁿ√¬6¬8⌠#!4¬4*6*(44!7!74¬57664¬56864¬57¬4²■¬5²###¬5#!²²!777²■¬M²!7¬5874!788!!!766!777²²7¬6##%√√ⁿⁿ²¬J■¬a" 409) ;;(s4 123)
 (if (/= (setq cl409 (length kphp)) 300) (exit)) (dcl_bmp3hitkey kphp 409)
(dcl_Bmp4 "■¬i²¬7ⁿ√¬5¬7⌠≤!4¬468*444!7!74¬4!6864¬58864¬5777²²■¬5²≤≤≤¬5##!²²²77²■¬J²²7¬7888!447874!7887!777²²7¬6##%%√#ⁿ²¬J■¬a" 410) ;;(s4 127)
 (if (/= (setq cl410 (length kphp)) 300) (exit)) (dcl_bmp3hitkey kphp 410)
(dcl_Bmp4 "■¬j²¬4■■²√¬50¬7⌠#!4¬468*4¬47!!4¬4!88*4¬5884¬677²²■¬6²≤≤#¬40#!²²²!77²²■¬E²²²77#%77!!47686!47687!47887¬5²²²7¬5#%%%√ⁿⁿ²¬J■¬a" 411) ;;(s4 135)
 (if (/= (setq cl411 (length kphp)) 300) (exit)) (dcl_bmp3hitkey kphp 411)
:glare:
https://forums.autodesk.com/autodesk/attachments/autodesk/130/398532/1/codefgame.zip
You see here my demo for BrisCAd. as examples .des
« Last Edit: January 22, 2021, 07:01:05 PM by d2010 »

BIGAL

  • Swamp Rat
  • Posts: 1410
  • 40 + years of using Autocad
Re: convert old toolbars into a ribbon tab
« Reply #3 on: January 22, 2021, 09:04:14 PM »
Unfortunately there is no like mnu for ribbons. But it can be done a cuix is actually a zip file so copy a cuix and rename to .zip you can open it up and it has lots of menu's inside.

The file Ribbonroot.cui is the one your looking for. The xml is very complex and not simple like a mnu.

I looked at this at one stage and what you need to do is write a xml file which is a text file. As far as I know there is no lisp -> xml for this.

Make a custom toolbar via CUI and have a look at what you get in the cuix just make a couple of items so see pattern.

My custom menu's dont have ribbons so its empty but acad etc are full.
A man who never made a mistake never made anything