home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / mac / oop / macapp3 / 236 < prev    next >
Encoding:
Internet Message Format  |  1992-12-20  |  1.6 KB

  1. Path: sparky!uunet!stanford.edu!apple!applelink.apple.com
  2. From: NOR0154@AppleLink.Apple.COM (DATEC A/S,STORAS,NO,IVC)
  3. Newsgroups: comp.sys.mac.oop.macapp3
  4. Subject: TPopup problem..
  5. Message-ID: <724663579.3737255@AppleLink.Apple.COM>
  6. Date: 18 Dec 92 07:04:00 GMT
  7. Sender: daemon@Apple.COM
  8. Organization: AppleLink Gateway
  9. Lines: 38
  10.  
  11. Attn: MacApp3 Technical Support
  12. SentBy: Bjorn Olav Erland
  13.  
  14. Date   17-12-92
  15. Subject    TPopup problem..
  16. From   Bjorn Olav Erland
  17. To MacApp3 Technical Support
  18.  
  19.                       TPopup problem..
  20. Hi,
  21.  
  22. I have a problem with getting MA3.0 to make popupmenus.
  23.  
  24. At first I had only one Popupmenu in a dialog. The popup got its first three
  25. items from a CMNU resource, and the rest of the items was updated at runtime.
  26. The Popup is by the way a list of layers in a CAD program, and the first items
  27. were ( All layers, No Layers, separator line).
  28. All items in the CMNU had command number 0.
  29. This worked fine.
  30.  
  31. Later I tried to make an equivalent Popup menu to keep a list of systems in
  32. the CAD program, and installed this into the same dialog.
  33. I then got a Failure in TPopup.CreateCMgrControl, during viewcreation. The
  34. defproc does NOT make its datastructure..
  35.  
  36.    // Need to signal failure if the CDEF's private storage couldn't be created
  37. -- this is
  38.    // most likely due to a missing MENU or CMNU resource with fMenuID.
  39.    FailNIL((*aCMgrControl)->contrlData);
  40.  
  41. I have checked the resource map and the CMNU exists with the correct ID= 130.
  42. Could someone give me a clue to what is wrong here?? It seems like the error
  43. occurs when I have got more than one popup in the dialog.
  44.  
  45. Regards
  46.  
  47. Bjorn Olav Erland
  48.  
  49.