From noreply at rubyforge.org Mon Feb 1 11:53:47 2010 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Mon, 1 Feb 2010 11:53:47 -0500 (EST) Subject: [wxruby-development] [ wxruby-Bugs-27762 ] Generated ruby file from xrc source uses incorrect xml.load statement Message-ID: <20100201165347.BF43A18582CA@rubyforge.org> Bugs item #27762, was opened at 2010-02-01 11:53 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=27762&group_id=35 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Joel Dezenzio (jdezenzio) Assigned to: Nobody (None) Summary: Generated ruby file from xrc source uses incorrect xml.load statement Initial Comment: When packaging any WxRuby project into an executable for windows porting, the xml.load statement that's generated in the ruby file from xrc source resolves to the current working directory. If your app.exe is sitting in the desktop, the xml.load resolves to: C:/users/joel/desktop/ui/ui.xrc .. which is incorrect as an executable (for instance ocra) is unpackaged in the appdata/temp directory on windows (the correct path) and run from there. Because you are using xml.load with a relative path instead of an absolute path, it will not work. You need to change xml.load from xml.load('blah.xrc') to: xml.load(File.join(File.dirname(__FILE__),"blah.xrc")) I have tested this code on multiple gui apps and it works in all locations where the executable is placed and run. Per the ruby api, load resolves to an absolute path. Thanks. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=27762&group_id=35 From noreply at rubyforge.org Tue Feb 16 14:01:32 2010 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Tue, 16 Feb 2010 14:01:32 -0500 (EST) Subject: [wxruby-development] [ wxruby-Bugs-27843 ] ArrayInt does not work with TextAttr.tabs Message-ID: <20100216190132.ADF4E18582D0@rubyforge.org> Bugs item #27843, was opened at 2010-02-16 20:01 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=27843&group_id=35 Category: Missing API call Group: None Status: Open Resolution: None Priority: 3 Submitted By: Bas van Doren (basvd) Assigned to: Nobody (None) Summary: ArrayInt does not work with TextAttr.tabs Initial Comment: Trying to get or set tab stops on a TextAttr object (using the `tabs` accessor or `get/set_tabs()` methods) does not work. WxRuby does not seem to translate an array with integers to the ArrayInt type used by WxWidgets (and vice-versa). The object returned by `get_tabs()`, when printed, is `#`. I am using wxruby 2.0.1 on Windows 7 with Ruby 1.8.6-p383 (the RubyInstaller MinGW version). ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=27843&group_id=35