Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!sdd.hp.com!decwrl!shelby!csli!weyand From: weyand@csli.Stanford.EDU (Chris Weyand) Newsgroups: comp.sys.mac.programmer Subject: TearOff menus in Think C Message-ID: <14994@csli.Stanford.EDU> Date: 21 Aug 90 20:49:11 GMT Sender: weyand@csli.Stanford.EDU (Chris Weyand) Organization: Center for the Study of Language and Information, Stanford U. Lines: 20 I'm trying to use a tear off menu (which happens to be a hier menu as well) in Think C with the Class Library. I was hoping it would be as simple as declaring a few objects and sending the proper menu and window IDs. That doesn't seem to be the case. I simply want to take a standard text menu that I have and give it tear off capability. I followed the example from the Art Class project: that is I defined a director in the App class of type MyTearOff and make the calls mostly just like Art Class does; define a pane link it to the MDEF etc. But what I get is a menu that is empty and crashes when torn off. In the Art Class project the tear off menus hold icons and not text. When I changed those menus to be just text I got similar behavior (blank menu...crash). It appears that the programmer has to do some of the menuitem management (selection, drawing...)? Does anyone out there have any code that implements a text menu as a tear off? Any help/pointers are appreciated. Thanks Chris Weyand weyand@csli.Stanford.edu