Jump to content

Add icons to menu


andy_lee

Recommended Posts

Dear all.

I want add ICONS to the menu. How to modify this code ?

Thanks for any help!

BTW .My Icons in a DLL file.

 

(defun create_klscl (/ f i)
 (if (not (menugroup "KLSCL")) 
   (progn
     (setq f (open "KLSCL.mnu" "W"))  
     (write-line "***MENUGROUP=KLSCL" f) 
     (write-line "" f)       
     (write-line "***POP1" f)         
     (write-line "" f)                  
     (write-line "[Text tools]" f) 
     (write-line " [--]" f) 
     (write-line " [Text Align  TA]^C^CTA" f) 
     (write-line " [--]" f) 
     (write-line " [Text Merge  TM]^C^CTM" f)
     (write-line " [->Modify          ]" f) 。
     (write-line " [Add Prefix  ADDP]^C^CADDP" f) 
     (write-line " [<-Add Suffix  ADDS]^C^CADDS" f) 
     (close f)    
     (command "menuload" "KLSCL.mnu") 
     (if (menugroup "KLSCL")
    ........
    ........
    ........

 

Add_icon.png

Edited by andy_lee
add image
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...