Home > Archive > Tcl > September 2006 > TK Screens
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Mark Munday 2006-09-05, 7:02 pm |
| Hi,
I am using TCL/TK in a C application under windows XP.
My system has multiple displays. Is it possible to specify which monitor to
open the toplevel window on? Currently it allways opens on display 1.
If it is possible, is there a way of enumerating the screens that are
available.
I would like to be able to add a command line argument like -diaplay 2 to
tell the application to open the toplevel window on the second display.
Regards
Mark Munday
| |
| Bryan Oakley 2006-09-05, 7:02 pm |
| Mark Munday wrote:
> Hi,
>
> I am using TCL/TK in a C application under windows XP.
>
> My system has multiple displays. Is it possible to specify which monitor to
> open the toplevel window on? Currently it allways opens on display 1.
>
Does the -screen option documented on the Toplevel man page [1] and/or
the -display option described on the wish man page [2] do what you want?
1: http://www.tcl.tk/man/tcl8.4/TkCmd/toplevel.htm#M12
2: http://www.tcl.tk/man/tcl8.4/UserCmd/wish.htm#M6
| |
| Uwe Klein 2006-09-05, 7:02 pm |
| Mark Munday wrote:
> Hi,
>
> I am using TCL/TK in a C application under windows XP.
>
> My system has multiple displays. Is it possible to specify which monitor to
> open the toplevel window on? Currently it allways opens on display 1.
>
> If it is possible, is there a way of enumerating the screens that are
> available.
>
> I would like to be able to add a command line argument like -diaplay 2 to
> tell the application to open the toplevel window on the second display.
Wish already handles -display "myserver:...." for you.
for new toplevels you can use the -screen option
>
> Regards
>
> Mark Munday
uwe
|
|
|
|
|