Forum: Ruby Ruby TK window size question

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Harry T. (Guest)
on 2006-02-16 16:06
(Received via mailing list)
Hi,

I was wondering if there is a way to have a Ruby TK window drawn to the
maximum available screen size? I have been using
root.geometry('+135+10') for example, but would like the window to
automatically size up to the largest available area.

Thanks,

Harry
unknown (Guest)
on 2006-02-16 16:34
(Received via mailing list)
>
>

You could try this to get the maximum screen size.

max_x = TkWinfo.screenwidth root
max_y = TkWinfo.screenheight root
This topic is locked and can not be replied to.