Re: [R] Problems in plot

About this list Date view Thread view Subject view Author view Attachment view

From: Duncan Murdoch (dmurdoch@pair.com)
Date: Wed 05 May 2004 - 23:18:11 EST


Message-id: <niph90t33a6chg8mspo3nvr5akhgiuu765@4ax.com>

On 05 May 2004 09:12:59 +0200, Peter Dalgaard
<p.dalgaard@biostat.ku.dk> wrote :

>Duncan Murdoch <dmurdoch@pair.com> writes:
>
>> I've removed the test for the size of the frame in the case where the
>> frame is minimized. Now for a minimized R it just uses the physical
>> size of the monitor, as before: likely giving a window that's too
>> big, but at least not causing errors.
>
>It would be better if you could get a hold of the unminimized size (as
>opposed to the maximized one). Isn't there a way to do that on
>Windows?

I don't know if there is. I think the GetWindowPlacement function
Brian mentioned returns what GetWindowRect would give if the window
hadn't been minimized, but what we want is GetClientRect.

GetWindowRect gives the outer dimensions of the window, GetClientRect
gives the "client area", i.e. the area where the MDI child windows are
allowed to show. GetWindowRect is also too big, just not necessarily
as much too big as what we're currently using (which is what pre-1.9.0
versions were using).

It's possible that we could compute something like GetClientRect, but
it's hard, because I think it depends on all sorts of things like font
settings, etc. It doesn't really seem worth it to me. How often do
people create new graphics windows while the MDI frame is minimized,
anyway?

Duncan Murdoch

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:07 EST