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.
19c9bb95f1bbcde38b7555800286f051?d=identicon&s=25 Harry Truax (Guest)
on 2006-02-16 15: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
Fafbe7fc27ab8e96a7cb732de5039a87?d=identicon&s=25 unknown (Guest)
on 2006-02-16 15: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.