home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 156 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: INbe.net!usenet
  2. From: bert.wynants@innet.be (Bert Wynants)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Color of Menu bar
  5. Date: 3 Jan 1996 19:45:12 GMT
  6. Organization: INnet NV (post doesn't reflect views of INnet NV)
  7. Message-ID: <1314.6575T1364T2234@innet.be>
  8. References: <4car6m$6p4@ulke.hiMolde.no> <4cbkm8$fij@news.xs4all.nl>
  9. NNTP-Posting-Host: pool016-13.innet.be
  10. X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
  11.  
  12. In article <4cbkm8$fij@news.xs4all.nl>, yrozijn@xs4all.nl (Yvon Rozijn) writes:
  13.  
  14. >Espen Berntsen (espen@himolde.no) wrote:
  15. >: Is there some way of changing the 4 first colors when the user presses the
  16. >: right mousebutton?? I need to set those colors to a preset choice, so it is
  17. >: possible to read requesters etc. I have a normal HandleWindowEvents() but
  18. >: the problem is that it doesn't react (and thus change the colors) until
  19. >: after you have chosen a menu item. I need it to change WHEN the user
  20. >: presses the key
  21. >: 
  22. >: (get PuzzlerII.lha from aminet and you will see the problem better)
  23.  
  24. >Try IDCMP_MENUVERIFY, and change the palette if you got that message.
  25. >I haven't tried it myself, so I cannot guarantee that it solves your
  26. >problem.
  27.  
  28. This is exactly what I do in TIFFView. However there are som gotchas
  29. to it like deadlocks. Therefor I've put the message receiving in a second
  30. task so IDCMP_MENUVERIFY can always be replyed immediate.
  31.  
  32. Bert
  33. --
  34.   ___                 _   
  35.  (  _`\              ( )_                Fido
  36.  | (_) )   __   _ __ | ,_)                 2:292/603.76
  37.  |  _ <' /'__`\( '__)| |                 e-mail
  38.  | (_) )(  ___/| |   | |_                  bert.wynants@innet.be
  39.  (____/'`\____)(_)   `\__)  Wynants,  Belgium,  Europe.
  40.  
  41. The cost of feathers has risen...now even DOWN is up!
  42.  
  43.