From: Osuka Adartse Date: 2003-09-01T12:37:50+09:00 Subject: Re: Beginning to use FxRuby - help, please Gawnsoft wrote: >On Sat, 30 Aug 2003 14:34:38 -0500, Lyle Johnson wrote (more or less): > > >>re-install using the Pragmatic Programmers' installer. >> >> > >Okay - cleared off the old version of FxRuby, and the 1.6.4-2 install. > >Installed Ruby 1.6.8-8 (which includes FxRuby) > >the installation acknowledges fox when I require it now, but... > >When I run the tutorial 'Hello.rb' from FreeRide: > > require 'fox' > include Fox > theApp = FXApp.new > theMainWindow = FXMainWindow.new(theApp, "Hello") > theApp.create > theMainWindow.show > theApp.run > > I get a task bar entry labelled 'Hello', but no window. > >p.s. $: now returns: > >["D:/PROGRAMS/CODING/RUBY/lib/ruby/site_ruby/1.6", >"D:/PROGRAMS/CODING/RUBY/lib/ruby/site_ruby/1.6/i586-mswin32", >"D:/PROGRAMS/CODING/RUBY/lib/ruby/site_ruby", >"D:/PROGRAMS/CODING/RUBY/lib/ruby/1.6", >"D:/PROGRAMS/CODING/RUBY/lib/ruby/1.6/i586-mswin32", "."] > >Cheers, > Euan >Gawnsoft: http://www.gawnsoft.co.sr >Symbian/Epoc wiki: http://html.dnsalias.net:1122 >Smalltalk links (harvested from comp.lang.smalltalk) http://html.dnsalias.net/gawnsoft/smalltalk > > > And that's what you should get ;-) actually look to the upper left of your screen there should be the window but it'll be *small* resize it or... add a button or something IN the window , i.e. try the next examples in the tutorial like: require 'fox' include Fox theApp = FXApp.new theMainWindow = FXMainWindow.new(theApp, "Hello") FXButton.new(theMainWindow, "Hello, World! lots more text to make sure it shows") theApp.create theMainWindow.show theApp.run and that's it, now you should see the window with a long button with text.