Lines: 34
Newsgroups: comp.lang.smalltalk
Message-ID: <4e66pa$jbr@news00.btx.dtag.de>
From: Thilo.KHK@t-online.de (Thilo Schmid)
Path: cantaloupe.srv.cs.cmu.edu!bb3.andrew.cmu.edu!newsfeed.pitt.edu!gatech!swrinde!howland.reston.ans.net!blackbush.xlink.net!rz.uni-karlsruhe.de!news.uni-stuttgart.de!news.rhrz.uni-bonn.de!news.rwth-aachen.de!genesis.westend.com!news2.gtn.com!gtnduss1.du.gtn.com!ius.gun.de!roka.net!news.space.net!news.ecrc.de!news00.btx.dtag.de!not-for-mail!Thilo.KHK
Subject: Re: suspend current process
Date: Wed, 24 Jan 1996 20:02:34 +0000
References: <4e5a5r$4de@bmtlh10.bnr.ca>
X-Gateway: ZCONNECT XX ius.gun.de [UNIX/Connect v0.73]
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

Doug Peters wrote:
> 
> I am using VisualWorks 2.5 (ObjectWorks\Smalltalk 4.1),
> and I'd like to have a "continue" Dialog, i.e.,
> 
> :
> : "some code"
> Dialog continue:'proceed?'.
> : "some more code"
> :
> 
> such that "some code" executes, but "some more code" is delayed while the
> Dialog waits to be fired.  The difficulty, of course, is to have the
> Dialog suspend the current process so that other stuff can occur.  Opening
> a scheduled Dialog has the opposite problem: "some more code" is executed
> as soon as the window opens.
> 
> Any help would be appreciated.
> 
> thanks, Doug-----------------------------------------------
I am not quite shure what you intend to do. Dialogs are either modal or 
non-modal. While a modal dialog waits, the current st-process is 
suspended. Other st-processes might continue.
If you do want to have the dialog modal to a specific window, make a 
subclass of SimpleDialog and overwrite the postBuildWith:. You have to 
send masterWindow: aWindowOrNil to the window of the builder. 
aWindowOrNil is the ScheduledWindow to which the dialog sould be modal. 
This is usually the window contained in the builder of your current 
ApplicationModel. The exact behavior of these dialog windows depend on 
the plattform you are using. You may also want to use 
UIBuilder>openWithExtent:andType: to specify different window types 
(decorations). This behavior is plattform-dependent, too
Hope this answeres your question. If not, please give a more precise 
problem description.
