Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!think.com!paperboy!dumpling!libby From: libby@dumpling.osf.org (Libby Hanna) Newsgroups: comp.windows.x.motif Subject: Re: Prompt Dialog question Message-ID: <17098@paperboy.OSF.ORG> Date: 10 Dec 90 23:30:39 GMT References: <1990Dec3.151858.11160@batcomputer.tn.cornell.edu> Sender: news@OSF.ORG Reply-To: libby@dumpling.osf.org (Libby Hanna) Organization: Open Software Foundation Lines: 18 In article <1990Dec3.151858.11160@batcomputer.tn.cornell.edu> cgh@cornellf.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. >I tried taking the pushbutton out, and managing the promptdialog widget >after creating it, but that failed due to "zero width/height for the >toplevel widget." I've also tried a few other variations, but seem to >be getting nowhere -- I keep getting core dumps or working programs that >don't look right. I think the 'zero height/width' errors are because there are no children in the top level shell, thus it has no size, and complains. Try explicitly setting the height and width of the toplevel shell to something. That should solve it. Libby Hanna OSF Motif QA