Skip to content
Prev 8959 / 398502 Next

Redrawing !

Yes to the first question if an ordinary call to plot(1:10) goes to the
default device on Windows.
I run NT 4.0 sp 6a and I have a very old graphics card, so this could be the
cause of this behavior I've observed. A question remains though, how come
the behavior is different when I move the device then when I resize it?

I know that moving the device causes a WM_MOVE event and resizing cause a
WM_SIZE event as you said below and that they are being handled differently.
(I looked at the code in GraphApp\event.c)

Just to make sure there is no misunderstanding, I'm not making a complaint
of any kind here, I'm just making an observation. With most Windows
applications I use I observe that resizing a window (in Windoze parlance)
with the mouse kind of blanks the interior of window until we're finish and
then it is redrawn. With R's default device it is as if every WM_MOUSEMOVE
event trigger's a complete redraw of the window which make the feeling quite
different. If changing this behavior in future release is to complicated
then lets just forget it as I and most certainly any other Windows user can
live with that even more so if using a more recent graphic card make the
behavior disappear.

Regards

Yves Gauvreau
I would like to be able to do that but I don't know how. But I know that if
the code handling the window events where to record globally the state of
the mouse it think it would be relatively easy in the WM_SIZE handling code
to check the mouse state and act accordingly.
http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
_._
--
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._