🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x.pex
Article #166

Re: Drawing into DrawingArea widget

#166
From: Rich Thomson
Date: Fri, 06 Nov 1992 06:05
20 lines
1424 bytes
In article <1992Nov6.011714.21164@colorado.edu>
	devin@frodo.Colorado.EDU (Sonja Orlavski) writes:
>You need to be doing these
>commands in response to an Expose event (i.e. do an XtAddEventHandler to
>your drawing area and put these commands into the event handler).
>Otherwise, you're drawing into the window before it's shown up on the
>screen.

Oh, good point.  But there is no need to drop down to the level of
XtAddEventHandler; the Motif DrawingArea widget has a redraw callback
called XmNexposeCallback.  You still need to use the Xt GC management
functions, though, or you will end up conflicting with the GCs used
by the widget implementation.

						-- Rich
-- 
		      Don't blame me; I voted Libertarian
Disclaimer: I speak for myself, except as noted; Copyright 1992 Rich Thomson
UUCP: ...!uunet!dsd.es.com!rthomson			Rich Thomson
Internet: rthomson@dsd.es.com	IRC: _Rich_		PEXt Programmer
Technical Details
Message-ID: <1992Nov6.060530.13774@dsd.es.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!orca!mesa!rthomson
References: <100607@bu.edu> <1992Nov6.011714.21164@colorado.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.windows.x.pex
Path: arc1-ca.pugleaf.net!sparky!uunet!orca!mesa!rthomson
From: rthomson@mesa.dsd.es.com (Rich Thomson)
Subject: Re: Drawing into DrawingArea widget
Message-ID: <1992Nov6.060530.13774@dsd.es.com>
Sender: usenet@dsd.es.com
Nntp-Posting-Host: 130.187.85.21
Reply-To: rthomson@dsd.es.com (Rich Thomson)
Organization: Design Systems Division, Evans & Sutherland, SLC, UT
References: <100607@bu.edu> <1992Nov6.011714.21164@colorado.edu>
Date: Fri, 6 Nov 92 06:05:30 GMT
Lines: 20