R
Rick Ashton
Hey
I've been wondering how to make a window fullscreen in Ruby Tk. I came
across this which is what I'm using now:
require 'tk'
r = Tk.root
r.withdraw
r.overrideredirect = true
r.deiconify
r.geometry = "#{r.winfo_screenwidth}x#{r.winfo_screenheight}+0+0"
Tk.root.state = 'zoomed'
Tk.mainloop
However, in OS X, this "fullscreen" window still sits behind the dock
and menu bar. Is there some way to tell the window manager to put this
"on top" of everything, even the dock and menu bar? I had a look through
the Tk wm reference but couldn't find anything very useful.
Thanks!
I've been wondering how to make a window fullscreen in Ruby Tk. I came
across this which is what I'm using now:
require 'tk'
r = Tk.root
r.withdraw
r.overrideredirect = true
r.deiconify
r.geometry = "#{r.winfo_screenwidth}x#{r.winfo_screenheight}+0+0"
Tk.root.state = 'zoomed'
Tk.mainloop
However, in OS X, this "fullscreen" window still sits behind the dock
and menu bar. Is there some way to tell the window manager to put this
"on top" of everything, even the dock and menu bar? I had a look through
the Tk wm reference but couldn't find anything very useful.
Thanks!