🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: ba.windows.x
Article #92

Re: New X programmer doesn't understand...

#92
From: Ken Lee
Date: Mon, 10 Feb 1992 00:48
13 lines
1260 bytes
|> In the program below, note the commented out delay loop.  If I place
|> the loop in, my program behaves as expected.  If I remove the loop,
|> a black window pops up, but the two lines are not drawn. 

You should only draw into windows after receiving expose events.  If
your tutorial book does not cover events before it covers drawing,
throw it away and get another tutorial.

-- 
Ken Lee
DEC Western Software Laboratory, Palo Alto, Calif.
Internet: klee@wsl.dec.com
uucp: uunet!decwrl!klee
Technical Details
Message-ID: <1992Feb9.164805@wsl.dec.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!nntp1.radiomail.net!psinntp!psinntp!rpi!usc!elroy.jpl.nasa.gov!swrinde!mips!decwrl!pa.dec.com!wsl.dec.com!klee
References: <3284@unixhub.SLAC.Stanford.EDU>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10f48b,d56c1c47118411f
X-Google-Attributes: gid10f48b,public
X-Google-Thread: 10e286,d56c1c47118411f
X-Google-Attributes: gid10e286,public
X-Google-ArrivalTime: 1992-02-09 16:48:05 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!nntp1.radiomail.net!psinntp!psinntp!rpi!usc!elroy.jpl.nasa.gov!swrinde!mips!decwrl!pa.dec.com!wsl.dec.com!klee
From: klee@wsl.dec.com (Ken Lee)
Newsgroups: ba.windows.x,slac.users.windows.x
Subject: Re: New X programmer doesn't understand...
Message-ID: <1992Feb9.164805@wsl.dec.com>
Date: 10 Feb 92 00:48:05 GMT
References: <3284@unixhub.SLAC.Stanford.EDU>
Sender: news@PA.dec.com (News)
Reply-To: klee@wsl.dec.com
Organization: DEC Western Software Laboratory
Lines: 13