[wxruby-users] xrcise question

Heinrich Piard lists at ruby-forum.com
Fri Nov 14 14:40:02 EST 2008


Heinrich Piard wrote:
> Mario Steele wrote:
>> Hello Heinrich,
>> 
>> What you will need to do, is goto your main Window form, and scroll down 
>> on
>> the properties page, you will see a field that says Subclass, and have a
>> semi-colon in it, with a + next to the field name.  You need to click 
>> that
>> plus, and put what name you want your ruby class to be named as.
>> 
>> EG:
>> MyFrame
>> 
>> This will tell XRCise when it generates the wrapper, that the class to 
>> use,
>> will be MyFrame.
>> 
>> hth,
>> 
>> Mario
> 
> 
> Great!  Thanks Mario!
> 
> 
> bye
> Henry

Hi all,

one more question popped up:

14:37:40: Error: Cannot load resources from file 
'file:/C%3A/ruby/ruby_scripts/wxFormBuilder/nonam.xrc'.
c:/ruby/lib/ruby/gems/1.8/gems/wxruby-1.9.9-x86-mswin32-60/lib/wx/classes/xmlresource.rb:31:in 
`load': Failed to load XRC from 'nonam.xrc'; check the file exists and 
is valid XML (RuntimeError)
  from test.rb:20:in `initialize'
  from test.rb:47:in `new'
  from test.rb:47:in `initialize'
  from test.rb:50:in `new'
  from test.rb:50

The file is in that directory.


bye
Henry
-- 
Posted via http://www.ruby-forum.com/.


More information about the wxruby-users mailing list