Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!sdd.hp.com!news.cs.indiana.edu!att!bellcore!bae!aw From: aw@bae.bae.bellcore.com (Andrew Wason) Newsgroups: comp.windows.x.motif Subject: Re: Prompt Dialog question Message-ID: <1990Dec11.200410.5298@bellcore.bellcore.com> Date: 11 Dec 90 20:04:10 GMT References: <1990Dec3.151858.11160@batcomputer.tn.cornell.edu> Sender: usenet@bellcore.bellcore.com (Poster of News) Reply-To: aw@cellar.bae.bellcore.com Organization: Bell Communications Research Lines: 23 In article <1990Dec3.151858.11160@batcomputer.tn.cornell.edu>, hecht@excalibur.tn.cornell.EDU (Caroline Hecht) writes: > How can I create a widget that is like the PromptDialog (created with > XmCreatePromptDialog), except that I don't want to have to pop it up > with a pushbutton? In other words, I want the entire program to be > this prompt; when the user clicks on "ok" or hits return, I'll exit. Create an XmSelectionBox widget as the only child of your toplevel shell. Set the XmNdialogType resource of the SelectionBox to XmDIALOG_PROMPT. Then just manage the SelectionBox and realize your toplevel. Here's what you would do in Mri: Mri.wcChildren: prompt *prompt.wcClass: xmSelectionBoxWidgetClass *prompt.dialogType: DIALOG_PROMPT Andrew -------------------------------------------------------------------------------- Andrew Wason Bell Communications Research aw@cellar.bae.bellcore.com Piscataway, NJ bellcore!cellar!aw