home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14588 < prev    next >
Encoding:
Internet Message Format  |  1992-08-26  |  1.8 KB

  1. Xref: sparky comp.sys.mac.programmer:14588 comp.sys.mac.system:11326
  2. Newsgroups: comp.sys.mac.programmer,comp.sys.mac.system
  3. Path: sparky!uunet!usc!sdd.hp.com!ncr-sd!sagpd1!bberqu
  4. From: bberqu@sagpd1 ()
  5. Subject: Color Icons
  6. Message-ID: <1992Aug26.233800.21347@sagpd1>
  7. Keywords: coloricon
  8. Date: Wed, 26 Aug 1992 23:38:00 GMT
  9. Lines: 32
  10.  
  11. Hi,
  12.  
  13. I'm trying to create some color icons using ResEdit in 256 color mode, so
  14. I create the Icons with certain colors (like yellows/oranges ...) just 
  15. fine, I copy them to the scrap and then paste them into the getinfo 
  16. window, however, most of the (if not all) orange/yellow colors don't
  17. show up when the icon is pasted, all shades of the blues show up just
  18. fine.  I also tried the apple colors pallete in ResEdit also with oranges 
  19. and reds, still no success.  I hope this isn't a FAQ, Any explanations 
  20. would be appreciated.
  21.  
  22. Programmers question:
  23.  
  24. I'm trying to use ModalDialog with a filterProc function which will
  25. handle popupmenus,  when I call ModalDialog and just let it sit there
  26. no mouse movement or anything, after a while, I get, I believe a system
  27. error #26 according to MacsBug, all my filter proc function does is 
  28. return (TRUE), I've also tried FALSE.  My impression from IM is that
  29. ModalDialog sits there and waits for a mousedown event within the dialog
  30. and when it gets either a itemhit or incontent or whatever, it then calls 
  31. the filterProc function (if defined), is this true? I assume that it 
  32. passes the dialog poointer/event record pointer/itemhit pointer, is this 
  33. true?  It looks like its calling my filterProc constantly, if this is true 
  34. do I need handle events within the filterProc?  Assuming all my parameters
  35. are correct for filterProc are correct, what am I doing wrong?
  36.  
  37. An explanation of how ModalDialog and the filterProc functions work with
  38. each other would be nice.
  39.  
  40. Thanks in advance
  41.  
  42. Brian
  43.