displaying 2 forms simultaneously (was Re: appropriate list)

John Hinsley johnhinsley at blueyonder.co.uk
Mon Feb 11 02:43:20 UTC 2002


On Mon, 11 Feb 2002, **Leigh** wrote:
> O.K...well here is a question.
> 
> How can I get two forms to post simultaneously?  I've got one that
> is a jpeg that I'm trying to use as wallpaper; I'm bringing it in
> using 'fromFileNamed' and using the 'setAsBackground' method.  It shows
> up great.  Then I create a separate form using a generic Form command
> (method?) and although it gets posted as well, and displays the
> results of the sim I've created, as soon as the sim finishes execution
> the jpeg form retakes precedence and covers up the sim form.   This is
> a simple MVC project so far; do I have to get into morphic to get
> multiple displays?

I can't come up with a simple way of doing this. (Which certainly doesn't mean
it's not possible! -- I'm a newbie myself. ) Logic suggests that there are
going to be two factors governing the order of events: which form appears
first in the code, and which takes the longest to load/execute. While it might
be possible to do something with BlockContext (look at scheduling and
controlling) nothing really jumps out and bites if you want the events
together. You might need to look at combining the two into a composite morph
and loading that. 

Any ideas, anyone?

Cheers

John




More information about the Squeak-dev mailing list