Displaying 3 results from an estimated 3 matches for "xrc_file".
Did you mean:
src_file
2006 Dec 23
0
[796] trunk/wxruby2/samples/xrc/xrc_sample.rb: Simplify some method calls, rubyify and add a little more explanation
...mp;nbsp     # Load a resource file
</span><del>-                #
</del><span class="cx"> xrc_file = File.join( File.dirname(__FILE__), ''samples.xrc'' )
</span><span class="cx">                 $xml.load(xrc_file)
</span><...
2006 Dec 02
7
Gauge Problem with XRC?
Hi
I''ve just started using wxruby2-preview-0.0.36-i386-mswin32
outsourcing layout part to the external XRC file. Almost everything
seems to be fine. Only that I can never retrieve Gauge objects in the
main script. What I''ve been trying is something like this:
class MainFrame < Wx::Frame
include Wx
def initialize(parent)
super(nil,-1, "")
2007 Apr 28
6
XRC Problem
...uper(nil,-1,"RubyIM")
$xml.load_frame_subclass(self,nil,"ContactList")
# Grab all the controls for what I''m creating
end
end
class RubyIMApp < Wx::App
def on_init
$xml = Wx::XmlResource.get();
$xml.init_all_handlers();
xrc_file = File.join( File.dirname(__FILE__), "xrc",
"ContactList.xrc")
$xml.load(xrc_file)
main = ContactList.new()
main.show(true)
end
end
RubyIMApp.new.main_loop()
The wxGlade xrc file source is:
<?xml version="1.0" encoding="UT...