当前位置:网站首页>T32 add toolbar button

T32 add toolbar button

2022-06-21 14:24:00 Aaron_ dw

In daily life debug in , Developed some gadgets , Usually cmm Script or exe file , Want to open it in the menu bar at any time .

T32 Provides a menu bar reprogramming method MENU.ReProgram, Under this method, you can not only add your own tools, but also add small buttons .

Here's an introduction Toolbar How to add a button :

1, First draw a small icon , open Edit bitmap template:

2, Start painting , Click after drawing Save:

3, Find the saved file , Copy the painted content :

~~\T32\demo\menu\addmybutton.cmm

 TOOLITEM "newbutton" "cmd"
        [
RRR   RRR  RRRRR
R  R R       R
R  R R       R
RRRR  R      R
RRR    RR    R
R RR    R    R
R  R RRRR    R


 RRR  RRRR   RRR
R    R    R R
R    R    RRR
 RRR R    RR
   R R    RRR
   R R    R RR
RRR   RRRR   RRR
        ]

4, establish toolbar

Backup ~~\T32\t32.men by t32_bak.men

modify t32.men:

Insert the above code into TOOLBAR() in

start-up debug You can see that a custom button has been added :

原网站

版权声明
本文为[Aaron_ dw]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202221425411613.html