I'm working under windows XP, using Xming as a X11 server.
I'm trying to maximize a toplevel window through wm attributes .t -
fullscreen 1 but nothing happens ...
I tried a simple example :
toplevel .t
pack [label .t.l -text "Hello !" -bg cyan]
focus .t
wm attributes .t -fullscreen 1
does not change the window aspect ...
What am I missing here ? Or is it something related with Xming ? (
Many thanks in advance !
Luc
Okay, I'm using XP SP3. I use Cygwin's Xwin. When I try to maximize a
window, it works as expected.
I am using tcl/tk 8.5.8.
What Tcl version are you using ?
Also, if there is an Unix machine on your LAN, try setting DISPLAY (or
whatever is used on windows for X clients) to it, after an 'xhost +'
on the other side. Does the fullscreen code work ?
-Alex
Under X11, the wm -fullscreen, -zoomed, -topmost, and other
attributes require cooperation from the window manager to work.
Most likely cause is that your window manager is not EWMH-aware,
or possibly that you don't have a window manager at all.
I'm not familiar with Xming, but from a quick scan of the manual [1]
it probably also depends on the Xming mode (one window / nodecoration /
multiwindow / etc.)
--Joe English
set win .toto
toplevel $win
pack [label $win.l -text "he ho,\nLe soleil brille \nbrille brille" -
bg cyan] -expand 1 -fill both
set Oldw [winfo width $win]
set Oldh [winfo height $win]
set sh [winfo screenheight $win]
set sw [winfo screenwidth $win]
wm minsize $win $sw $sh
wm maxsize $win $sw $sh
wm overrideredirect $win 1
wm attributes $win -fullscreen 1
If you remove the "wm maxsize" statement, it doesn't work anymore.
Is this "normal" ? We should supply the maximum screen size available
for expansion ?
Thanks for enlighting me !!
Luc
> after an 'xhost +' on the other side.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Please to be not recommending saying 'xhost +'
Saying 'xhost +' is a Bad Thing To Do which you should
not be telling other people to be trying.
Other than that, your advice is good.
kthxbye.
--Arnie