Article View: comp.windows.interviews
Article #455Forcing a Draw immediately after Patch->redraw
From: Chittathoor M. Sriram
Date: Wed, 12 Aug 1992 16:00
Date: Wed, 12 Aug 1992 16:00
49 lines
1657 bytes
1657 bytes
Is it Possible to force the canvas to redraw itself immediately after I call
patch->redraw(). The reason is In my previous 2.6 based application I
was calling a series of drawing functions of the form output->Text, output->Rect
and so on in a routine called Refresh. Now I am coverting that into a Glyph
based application. So I am using Patch->redraw in its place. But the effect takes place only withe the next read operation, and I do some stuff immediately
after Refresh which depends on some variables being set in Refresh. So Unless I force the effect to take place immediately in my new Version I may have to do a major restructuring of the code which I want to avoid.
Ex:
Previous:
MyFunc() {
Refresh();
... Some Stuff WHich HEavily Depends on state variables
being set in Refresh() ...
}
Refresh() {
output->FillRect (....).
output->Text().
..... Setting SOme State Variables.
}
Currently What I want to do.
MyFunc() {
// Refresh();
patch->redraw();
HERE IS WHERE I WANT TO FORCE THE EFFECT TO TAKE PLACE
IMMEDIATELY
... some stuff .....
}
Any Help is appreciated. Thanks for your time.
Sriram
Technical Details
Message-ID:
<9208121600.AA22820@sparc0.brc.uconn.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!brc.uconn.edu!sriramShow Full Headers
Complete Article Headers
Newsgroups: comp.windows.interviews Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!brc.uconn.edu!sriram From: sriram@brc.uconn.edu (Chittathoor M. Sriram) Subject: Forcing a Draw immediately after Patch->redraw Message-ID: <9208121600.AA22820@sparc0.brc.uconn.edu> Sender: news@shelby.stanford.edu (USENET News System) Organization: Internet-USENET Gateway at Stanford University Date: Wed, 12 Aug 1992 16:00:49 GMT Lines: 50