Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!mcvax!hp4nl!esatst!arne From: arne@yc.estec.nl (Arne Lundberg) Newsgroups: comp.windows.x Subject: Message boxes and other questions Message-ID: <1014@esatst.yc.estec.nl> Date: 29 Mar 89 14:50:50 GMT Reply-To: arne@yc.estec.nl (Arne Lundberg) Organization: ESTEC/YCV, Noordwijk, The Netherlands Lines: 36 I have some questions about the X toolkit and the HP X widgets. 1) I would like to have a function that displays a message box on the screen containing several pushbuttons. And returns back to the calling function an indication of which button the user pressed. I would like to use this for asking questions of the type ------------------------------- | 'Are yoy sure? (YES) (NO) | ------------------------------- and get the answer back in a single function call. I can get the box and the buttons etc on the screen. The problem is that I have to exit the function in order to come back to XtMainLoop and at that moment I don't which button the user will press. Is this possible to do? How? I have previosly done some programming with HP's XrLib for X10 and in that library was built for this way of usage. 2) I want to have a bitmap created by bitmap(1) #included in my program and converted to a XImage suitable for use with the static raster widget. How is this done? 3) I am using the pulldown menu manager of the HP X widgets. Using this menu manager I can create 'pullright' submenus for all menupanes except the first one. Is this a known limitation in the X widgets? Thanks in advance for all help. -- Arne Lundberg; ESTEC/YCV, The Netherlands arne@yc.estec.nl || arne@esatst.UUCP || ALUNDBER@ESTEC.BITNET