home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / os2 / programm / 7544 < prev    next >
Encoding:
Internet Message Format  |  1993-01-13  |  991 b 

  1. Path: sparky!uunet!news.claremont.edu!nntp-server.caltech.edu!hacker
  2. From: hacker@cco.caltech.edu (Jonathan Bruce Hacker)
  3. Newsgroups: comp.os.os2.programmer
  4. Subject: EPM SetMenuAttribute() query
  5. Date: 12 Jan 1993 05:49:17 GMT
  6. Organization: California Institute of Technology, Pasadena
  7. Lines: 25
  8. Message-ID: <1itm4tINNhv0@gap.caltech.edu>
  9. NNTP-Posting-Host: punisher.caltech.edu
  10.  
  11. I have been experimenting with adding a new submenu to the EPM 5.51
  12. menu bar from a mystuff.e file.
  13.  
  14. I am wondering how I change the menu attributes without editing the
  15. PROCESSMENUINIT command definition in the stdctrl.e file.
  16.  
  17. Right now, in order to add checkmarks beside some menu entries, I
  18. added the following to stdctrl.e:
  19.  
  20. defc PROCESSMENUINIT 
  21. ...
  22.  
  23. if menuid='mymenuid' then
  24.    SetMenuAttribute('mymenuitem',8192,myflag)
  25. endif
  26.  
  27. ...
  28.  
  29.  
  30. For portability reasons, I would like to move this out of stdctrl.e to
  31. mystuff.e, but how do I do it?
  32. -- 
  33. Jon Hacker
  34. Caltech, Pasadena CA
  35. hacker@tumbler-ridge.caltech.edu
  36.