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

  1. Path: ifi.uio.no!usenet
  2. From: larshau@nipling.ifi.uio.no (Lars Haugseth)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: MagicMenu + ClearMenuStrip/ResetMenuStrip != TRUE
  5. Date: 20 Mar 1996 16:25:36 +0100
  6. Organization: Dept. of Informatics, University of Oslo, Norway
  7. Message-ID: <y9fag1b947j.fsf@nipling.ifi.uio.no>
  8. NNTP-Posting-Host: nipling.ifi.uio.no
  9. X-Newsreader: Gnus v5.1
  10.  
  11.  
  12. When my window receives a IDCMP_MENUVERIFY messages,
  13. it does a ClearMenuStrip(), updates the checkmarks of
  14. the menus, then it does a ResetMenuStrip() before
  15. replying the message. This works fine until you run
  16. MagicMenu.
  17.  
  18. Question:
  19. Is it illegal to change the CHECKED state of a MenuItem
  20. without doing ClearMenuStrip/ResetMenuStrip? (After
  21. getting the IDCMP_MENUVERIFY message and before replying
  22. it).
  23.  
  24. If I do this, it will work with MagicMenu, but I will get
  25. deadlocks when doing menu multiselections.
  26.  
  27. Is there a way to get this to work properly? And yes, I
  28. really need to update the menus before they are displayed,
  29. because the checkmarks represents different options that
  30. can be changed anywhere in the code, not only by the user
  31. in the menus.
  32.  
  33.  
  34. -- 
  35. Lars Haugseth <larshau@ifi.uio.no>
  36.  
  37.