home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!apple!applelink.apple.com
- From: NOR0154@AppleLink.Apple.COM (DATEC A/S,STORAS,NO,IVC)
- Newsgroups: comp.sys.mac.oop.macapp3
- Subject: TPopup problem..
- Message-ID: <724663579.3737255@AppleLink.Apple.COM>
- Date: 18 Dec 92 07:04:00 GMT
- Sender: daemon@Apple.COM
- Organization: AppleLink Gateway
- Lines: 38
-
- Attn: MacApp3 Technical Support
- SentBy: Bjorn Olav Erland
-
- Date 17-12-92
- Subject TPopup problem..
- From Bjorn Olav Erland
- To MacApp3 Technical Support
-
- TPopup problem..
- Hi,
-
- I have a problem with getting MA3.0 to make popupmenus.
-
- At first I had only one Popupmenu in a dialog. The popup got its first three
- items from a CMNU resource, and the rest of the items was updated at runtime.
- The Popup is by the way a list of layers in a CAD program, and the first items
- were ( All layers, No Layers, separator line).
- All items in the CMNU had command number 0.
- This worked fine.
-
- Later I tried to make an equivalent Popup menu to keep a list of systems in
- the CAD program, and installed this into the same dialog.
- I then got a Failure in TPopup.CreateCMgrControl, during viewcreation. The
- defproc does NOT make its datastructure..
-
- // Need to signal failure if the CDEF's private storage couldn't be created
- -- this is
- // most likely due to a missing MENU or CMNU resource with fMenuID.
- FailNIL((*aCMgrControl)->contrlData);
-
- I have checked the resource map and the CMNU exists with the correct ID= 130.
- Could someone give me a clue to what is wrong here?? It seems like the error
- occurs when I have got more than one popup in the dialog.
-
- Regards
-
- Bjorn Olav Erland
-
-