🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.interviews
Article #9

Re: canvas nil right after editor opened (CORRECTION)

#9
From: Bill Poitras
Date: Tue, 27 Oct 1992 22:47
24 lines
1522 bytes
Bill Poitras (bill@snoopy) wrote:
: Mu-Yu Yang (yang@dukas.cs.unc.edu) wrote:
: : I am trying to get access to an editor's WindowRep right after the editor is
: : opened by Unidraw but have no luck. It fails because the canvas of the
: : newly-opened editor is still nil. Take Punidraw for example for the sake of
: : simplicity:
[some code and explanation deleted]
: You could wait until the window is mapped:
: 
: unidraw->Open(punidraw);
: Event e;
: while (punidraw->GetCanvas() != nil) {
                               ^^ should be ==
:   Session::instance()->read(e);
:   e.handle();
: }
: punidraw->GetCanvas()->window()->rep();

--
+-----------------+-------------------------------+-------------------------+
| Bill Poitras    | Molecular Simulations Inc.    | Tel (408)522-9229       |
| (bill)          | Sunnyvale, CA USA             |                         | 
|                 | FAX (408)732-0831             | bill@msi.com            |
+-----------------+-------------------------------+-------------------------+
Technical Details
Message-ID: <1992Oct27.224739.3225@msi.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!ukma!darwin.sura.net!sgiblab!msi!snoopy!bill
References: <1992Oct27.220531.2639@msi.com>

Show Full Headers
Complete Article Headers
Newsgroups: comp.windows.interviews
Path: arc1-ca.pugleaf.net!sparky!uunet!ukma!darwin.sura.net!sgiblab!msi!snoopy!bill
From: bill@snoopy (Bill Poitras)
Subject: Re: canvas nil right after editor opened (CORRECTION)
Message-ID: <1992Oct27.224739.3225@msi.com>
Sender: usenet@msi.com (USENET)
Reply-To: bill@msi.com
Organization: Molecular Simulations, Inc.
X-Newsreader: Tin 1.1 PL5
References: <1992Oct27.220531.2639@msi.com>
Date: Tue, 27 Oct 1992 22:47:39 GMT
Lines: 25