🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.interviews
Article #209

Re: Dialog Box Question

#209
From: Mark Linton
Date: Mon, 10 Aug 1992 20:39
18 lines
1478 bytes
In article <1992Aug3.144103.26129@MITL.COM>, haber@MITL.COM (Eben Haber) writes:
|> I would like to have a dialog box that simply displays a status message,
|> letting the user know that a computation is in progress, without accepting
|> any input.
|> 
|> When I try to insert such a dialog, using theEditor->InsertDialog(theDialog),
|> the dialog box never appears on the screen.  Is there something in Accept 
|> which causes a dialog box to become visible?
|> 
|> If so, how can I get my non-interactive dialog box to appear?

Accept reads events, which include the map notify and initial exposure.
For interactors, you probably need an event-reading loop that waits
until the interactor's canvas is mapped.  A somewhat simpler approach
for glyphs is to have a monoglyph that detects when it is first drawn.
Note that without some form of concurrency, a non-interactive dialog box
won't respond correctly to exposures after being first drawn because
the computation won't be interrupted to handle the redraw.
Technical Details
Message-ID: <odj9ucc@fido.asd.sgi.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!sgigate!odin!fido!marktwain.rad.sgi.com!linton
References: <1992Aug3.144103.26129@MITL.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!sgigate!odin!fido!marktwain.rad.sgi.com!linton
From: linton@marktwain.rad.sgi.com (Mark Linton)
Newsgroups: comp.windows.interviews
Subject: Re: Dialog Box Question
Message-ID: <odj9ucc@fido.asd.sgi.com>
Date: 10 Aug 92 20:39:23 GMT
References: <1992Aug3.144103.26129@MITL.COM>
Sender: news@fido.asd.sgi.com (Usenet News Admin)
Reply-To: linton@marktwain.rad.sgi.com (Mark Linton)
Organization: sgi
Lines: 18