Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!elroy.jpl.nasa.gov!usc!snorkelwacker.mit.edu!bloom-beacon!dont-send-mail-to-path-lines From: rick@pbi.COM (Richard M. Goldstein) Newsgroups: comp.windows.x Subject: Re: Menus in Xview Message-ID: <9102051448.AA01426@marvin.pbi.com> Date: 5 Feb 91 14:48:05 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 38 From: uunet!convex.com!mdonahue (Mike Donahue) Organization: Convex Computer Corporation, Richardson, Tx. Subject: Menus in Xview I have been attempting to port some sunview programs to Xview and have had some mild success, however, I have a program which uses several of the menu widgets from Xview and I cannot get it to work when I attempt to pop up the menu with a menu_show I get this error message : XView warning: menu_show: menu not owned by this server (Command Menu package) at a glance, it seems to me that menus in XView need to be parented to a server object (the default server is used if you specify XV_NULL as the parent to xv_create() ). I suspect your error was to parent a menu to a canvas object. hope this helps, rick %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % Richard M. Goldstein % % % % Perfect Byte, Inc. Phone: (402)554-1122 % % 7121 Cass St. Fax: (402)554-1938 % % Omaha, NE 68132 email: rick@pbi.com % % % % "If I knew what I was doing, % % d'ya think I'd be in Omaha?" % % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%