Path: news.cs.au.dk!Morten.Grouleff.Mjolner.Informatics From: Morten Grouleff Newsgroups: comp.lang.beta Subject: Re: @Window in SLOTS ? Date: 23 Feb 1999 10:08:59 +0100 Organization: Mjolner Informatics Lines: 37 Message-ID: References: <7aort6$p1k$1@sun579.rz.ruhr-uni-bochum.de> NNTP-Posting-Host: freki.mjolner.dk Mime-Version: 1.0 (generated by tm-edit 7.106) Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: xinwen.cs.au.dk 919760939 16173 255.255.255.255 (23 Feb 1999 09:08:59 GMT) X-Complaints-To: news@cs.au.dk NNTP-Posting-Date: 23 Feb 1999 09:08:59 GMT X-Newsreader: Gnus v5.5/Emacs 19.34 Xref: news.cs.au.dk comp.lang.beta:11838 "Sascha Kimmel" writes: > I have some windows which I want to use in further programs, too. > For example: > > win:@window > (# > open:(# do '100,200)->size; 'TESTwindow'->title; #); > > Cancel:@pushButton:(# ... #); > ... > #); > > How I can use the fragment language to implement this functionality? > If I use Lib: Attributes, I tried using SLOT Descriptor, Attributes, DoPart > but none did work the right way. You cannot have instances in Lib slots. I'm not quite sure I understand your problem. Is your problem that you have multiple windows that communicate, e.g. opening each other, setting contents of fields, and such? You could declare them as patterns in the guienvLib slot. loginWindow: window(# status: ^statusWindow; ... #); statusWindow: window(# other: ^otherWindow; ... #); otherWindow: window(# ... #); In your program:descriptor, instantiate the windows you need and assign references to the others to local references in them. Does that help solve your problem? -- ** Morten Grouleff: ** ** Earthworm Jim PC: ** ** Mjølner Informatics: **