Path: news.cs.au.dk!Morten.Grouleff.Mjolner.Informatics From: Morten Grouleff Newsgroups: comp.lang.beta Subject: Re: Værsgo' le jer ihjel ... Date: 07 Nov 2000 14:46:40 +0100 Organization: Mjolner Informatics. Lines: 56 Sender: mg@noatun Message-ID: References: <8u8pn0$65mgq$1@gjallar.cs.au.dk> <3A081750.D0EBC0E5@skynet.be> NNTP-Posting-Host: bifrost.mjolner.dk Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: gjallar.cs.au.dk 973604800 6420393 130.225.8.27 (7 Nov 2000 13:46:40 GMT) X-Complaints-To: usenet@cs.au.dk NNTP-Posting-Date: Tue, 7 Nov 2000 13:46:40 +0000 (UTC) User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.5 Xref: news.cs.au.dk comp.lang.beta:12632 Atle writes: > Morten Grouleff wrote: > > > winlib1.bet: > > > > ORIGIN '~beta/guienv/guienv'; > > INCLUDE '~beta/guienv/controls'; > > -- guienvLib: attributes -- > I don't remember seeing this construct. Could you please give a > reference or brief explanation? What I am wondering is this: Does the > name Lib or guienvLib mean something, is there a connection to the > name guienv? It is connected to Guienv by convention only. This particular slot is defined in guienv.bet inside the GUIenv pattern. Defining pattern inside this slot thus has almost the same effect as writing them directly into the guienv pattern. > > myprogram.bet: > > ORIGIN '~beta/guienv/guienv'; > > -- program:descriptor -- > > GUIEnv > > (# > > win1: @MyWindow1; > > win2: @MyWindow2; > > > > do win1.open; > > #) > > > > To switch between the two, try "win1.hide; win2.show" once they've both > > been opened. > > Thanks! I knew I had to do something, but I was just about to create a > SymptomWin - patten in an include-file, and instantiate that (like a > generic class) with some overrides. But now I want to try what you > showed me. > > Now, after > > win1.open > > I can do a > > win2.open > and they will both be active (follow focus), right? They will both be visible. I think the one opened last gets focus. You can switch focus using the target-pattern, I believe. -- Morten Grouleff, M.Sc., Software Engineer, Mjølner Informatics. Phone: +45 70274343. Fax: +45 70274344 Web: