Hello, I use "select.list" to obtain a window of select items, but how can I set the position and size of this window? Thank you! shengzhe
how to set the position and size of the select.list window
8 messages · Uwe Ligges, Duncan Murdoch, wu sz +1 more
2 days later
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. Uwe Ligges
Thank you! shengzhe
______________________________________________ R-help at stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
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
Thanks for the answer from Uwe Ligges and Duncan Murdoch ! if any function could do the opposite action of bringToTop()? Are there any introductory and detailed "tcltk" documents or help files or books for using this package in R ? shengzhe 2005/7/5, Duncan Murdoch <murdoch at stats.uwo.ca>:
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
On 7/5/2005 12:12 PM, wu sz wrote:
Thanks for the answer from Uwe Ligges and Duncan Murdoch ! if any function could do the opposite action of bringToTop()?
What is the opposite? There isn't such a thing defined in the Windows API. If you want to do anything in the API, then just grab the handle, and try it.
Are there any introductory and detailed "tcltk" documents or help files or books for using this package in R ?
The tcltk documentation is (in Windows) available in R_HOME/Tcl/doc. If you want something like a tutorial, you'll need to look on the web or in a library or bookstore. Duncan Murdoch
shengzhe 2005/7/5, Duncan Murdoch <murdoch at stats.uwo.ca>:
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
Thanks for your quick reply! the "opposite" I mean is to take a window to the bottom of the window stack and stay at the bottom. This should be the reverse action of bringToTop(). shengzhe 2005/7/5, Duncan Murdoch <murdoch at stats.uwo.ca>:
On 7/5/2005 12:12 PM, wu sz wrote:
Thanks for the answer from Uwe Ligges and Duncan Murdoch ! if any function could do the opposite action of bringToTop()?
What is the opposite? There isn't such a thing defined in the Windows API. If you want to do anything in the API, then just grab the handle, and try it.
Are there any introductory and detailed "tcltk" documents or help files or books for using this package in R ?
The tcltk documentation is (in Windows) available in R_HOME/Tcl/doc. If you want something like a tutorial, you'll need to look on the web or in a library or bookstore. Duncan Murdoch
shengzhe 2005/7/5, Duncan Murdoch <murdoch at stats.uwo.ca>:
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
On 7/5/05, wu sz <r.shengzhe at gmail.com> wrote:
Are there any introductory and detailed "tcltk" documents or help files or books for using this package in R ?
Do a google search for tcltk examples and look at the first hit. That page in turn links to many tcltk examples and the last link is not an example but a link to 'Other sources...' of information.