Article View: comp.windows.x
Article #37955XView paints twice at start
From: Richard Ottolini
Date: Sun, 11 Mar 1990 18:03
Date: Sun, 11 Mar 1990 18:03
18 lines
1117 bytes
1117 bytes
The following code fragment issues two repaint requests at initialization. I'd prefer only one, but can figure out to obtain such behavior. The first repaint request is the up right 64 x 64 of the window and the second is the whole window. No window size change occurs. canvas = xv_create (frame, CANVAS, CANVAS_REPAINT_PROC, MyDraw, WIN_DYNAMIC_VISUAL, TRUE, WIN_CMS_NAME, "grayscale", WIN_CMS_DATA, &cmsdata, 0); xv_set (canvas,CANVAS_FIXED_IMAGE,FALSE,0); window_fit (frame); If CANVAS_FIXED_IMAGE is set in the first call, it doesn't take hold. I set CANVAS_FIXED_IMAGE to force a repaint when resizing a window.
Technical Details
Message-ID:
<652@med.Stanford.EDU>Path:
arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!jarvis.csri.toronto.edu!mailrus!wuarchive!cs.utexas.edu!sun-barr!decwrl!shelby!med!hanauma!rickShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!jarvis.csri.toronto.edu!mailrus!wuarchive!cs.utexas.edu!sun-barr!decwrl!shelby!med!hanauma!rick From: rick@hanauma (Richard Ottolini) Newsgroups: comp.windows.x Subject: XView paints twice at start Message-ID: <652@med.Stanford.EDU> Date: 11 Mar 90 18:03:04 GMT Sender: news@med.stanford.edu (USENET News System) Reply-To: rick@hanauma (Richard Ottolini) Organization: Stanford University, Dept. of Geophysics Lines: 18