From: Tim Date: 2006-07-11T23:35:09+09:00 Subject: Re: wxRuby and getting the display size Thanks for the help, Alex. I'm trying to get wxRuby2 built on my system. It seems to be a non-trivial task on a PC system . . . Tim Alex Fenton wrote: > Hi Tim > > > Hi, I'm using wxRuby v0.6.0 and am trying to get the size of the > > display. > > I'm pretty sure this functionality isn't available in 0.6.0. > > The comprehensive class Wx::SystemSettings is ported in wxruby2 which will get you the screen width & height. There is an example in samples/etc/system_settings.rb of how to use the class, but basically you want something like: > > Wx::SystemSettings.get_metric(Wx::SYS_SCREEN_X) > > ugly, I know ;) > > hth > alex