[R] how to set the position and size of the select.list window

Duncan Murdoch murdoch at stats.uwo.ca
Tue Jul 5 12:46:42 CEST 2005


Uwe Ligges wrote:
> wu sz wrote:
> 
> 
>>Hello,
>>
>>I use "select.list" to obtain a window of select items, but how can I
>>set the position and size of this window?
>>
>>Are there any functions which are used to maximize and minimize the
>>window of R Console?
> 
> 
> You cannot fo windows from select.list and R console, AFAIK, but you can 
> do for windows() devices using windows() and brintToTop(), for example.

That's a typo:  it's bringToTop().  Another function which could be used 
to do this is getWindowsHandle, along with C level programming to the 
Windows API.  I haven't looked into this, so it's possible the UI 
library we use will get confused, but it should be possible to send 
Windows messages to those handles.

We do have longstanding bugs with the maximized/minimized status being 
overridden by various reset commands.  I tracked down some of these 
once, but didn't get all of them (and did introduce some new bugs).  I 
don't have the energy to fix the rest.

Duncan Murdoch




More information about the R-help mailing list