From chauk.mean at gmail.com Mon Mar 1 17:19:41 2010 From: chauk.mean at gmail.com (Chauk-Mean Proum) Date: Mon, 1 Mar 2010 23:19:41 +0100 Subject: [wxruby-users] Running... libwx_gtk2u_gl-2.8.so.0 In-Reply-To: <4B87FD2C.3060005@gmail.com> References: <4B87FD2C.3060005@gmail.com> Message-ID: Hi, 2010/2/26 Gug?o : > > $ ruby oi.rb > /usr/lib/ruby/gems/1.8/gems/wxruby-1.9.9-x86-linux/lib/wxruby2.so: > libwx_gtk2u_gl-2.8.so.0: cannot open shared object file: No such file or > directory - > /usr/lib/ruby/gems/1.8/gems/wxruby-1.9.9-x86-linux/lib/wxruby2.so > (LoadError) > ? ? ? from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `require' > ? ? ? from /usr/lib/ruby/gems/1.8/gems/wxruby-1.9.9-x86-linux/lib/wx.rb:12 > ? ? ? from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in > `gem_original_require' > ? ? ? from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in > `require' > ? ? ? from oi.rb:2 > > How to fix it ? The wxWidgets library is probably not installed on your system. On Ubuntu, try : sudo apt-get install libwxgtk2.8-0 It seems also that you're using an old wxRuby package (1.9.9). You should use the latest stable release (2.0.1). Cheers. Chauk-Mean From alex at pressure.to Mon Mar 1 18:04:08 2010 From: alex at pressure.to (Alex Fenton) Date: Mon, 01 Mar 2010 23:04:08 +0000 Subject: [wxruby-users] UpdateUIEvent.set_mode doesn't work In-Reply-To: <3ac93573d62443dcdc50f8b89722029d@ruby-forum.com> References: <3ac93573d62443dcdc50f8b89722029d@ruby-forum.com> Message-ID: <4B8C47E8.9070205@pressure.to> hi On 27/02/2010 17:35, Lui Kore wrote: > irb(main):003:0> UpdateUIEvent.set_mode 1 > TypeError: Expected argument 0 of type wxUpdateUIMode, but got Fixnum 1 > in SWIG method 'wxUpdateUIEvent::SetMode' > from (irb):3:in `set_mode' > from (irb):3 > from D:/Ruby/ruby1.9.1-mingw/bin/irb:12:in `
' > Thanks for the report. Looks like a missing mapping of a C++ enum -> Ruby Fixnum. I've filed as a bug, should be a straightforward fix for the next release http://rubyforge.org/tracker/index.php?func=detail&aid=27910&group_id=35&atid=218 cheers alex From alex at pressure.to Mon Mar 1 18:15:03 2010 From: alex at pressure.to (Alex Fenton) Date: Mon, 01 Mar 2010 23:15:03 +0000 Subject: [wxruby-users] Mouse wheel events in a grid cell editor? In-Reply-To: References: Message-ID: <4B8C4A77.5050302@pressure.to> On 24/02/2010 19:39, Tony Meier wrote: > I'm trying to do some advanced editing using Grids. I've created my own > editors and updating view and model both works fine so far. Thanks to > whoever made this possible. I like wxRuby more each day! > Thanks - Wx::Grid is a really nice class - complex, but powerful. > Now I'd like to catch mousewheel events in order to increment/decrement > a grid cell editor. > > I've tried installing a handler in begin_edit of my editor and removing > it again in end_edit. > > I've attempted to > > (a) install an event handler on the grid and forward it to an > editor-specific method > > (b) install an event handler on the editor control > I would have expected (a) to work - mouse events are fired on whichever is the topmost control where the mouse is. For an editor control, the mouse pointer may not be on top of the control itself. Does the evt_mousewheel fire correctly if you have it as a constant event handler for the Grid? You could try using the method Window#capture_mouse to force mouse input to be directed to a particular window - either the grid or the editor control - to see if this helps. Failing that, please post a complete, runnable but minimal example with the problem and I'll see if I can help alex From lists at ruby-forum.com Thu Mar 4 16:07:04 2010 From: lists at ruby-forum.com (Alex DeCaria) Date: Thu, 4 Mar 2010 22:07:04 +0100 Subject: [wxruby-users] troubleintalling wxruby with ruby gems 1.3.5 Message-ID: <3b2246c3ef0074aa1bff6ff192807102@ruby-forum.com> I've updated to Ruby Gems version 1.3.5. When I then run the command 'gem install wxruby' I get an error message that says ERROR: While executing gem ... (TypeError) incompatible marshal file format (can't be read) format version 4.8 required; 23.71 given I'm using Ruby 1.9.1 (p. 378). Other gems have installed fine. Any ideas? --Alex -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Thu Mar 4 22:16:23 2010 From: lists at ruby-forum.com (Alex DeCaria) Date: Fri, 5 Mar 2010 04:16:23 +0100 Subject: [wxruby-users] wxruby gem loaded, but require 'wxruby' not found Message-ID: <0b95a0efab6caec4f4488e56d083959f@ruby-forum.com> I have wxruby gem installed. This is confirmed by gem list command. But when I run the sample code below I get an error that states: trout.rb:1:in `require': no such file to load -- wxruby (Load Error) from trout.rb:1:in `
' What might be wrong? --Alex ----------------------------------------------- require 'wxruby' class TroutApp < App def on_init frame = Wx::Frame.new(nil, -1, 'Tiny wxRuby Application') panel = Wx::StaticText.new(frame, -1, 'You are a trout!', Point.new(-1, 1), DEFAULT_SIZE, ALIGN_CENTER) frame.show end end TroutApp.new.main_loop -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Fri Mar 5 01:23:33 2010 From: lists at ruby-forum.com (Tony Meier) Date: Fri, 5 Mar 2010 07:23:33 +0100 Subject: [wxruby-users] wxruby gem loaded, but require 'wxruby' not found In-Reply-To: <0b95a0efab6caec4f4488e56d083959f@ruby-forum.com> References: <0b95a0efab6caec4f4488e56d083959f@ruby-forum.com> Message-ID: <568ec7d6218b9cf906d2a72b98a63f4b@ruby-forum.com> try require 'wx'. -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Fri Mar 5 01:53:44 2010 From: lists at ruby-forum.com (Tony Meier) Date: Fri, 5 Mar 2010 07:53:44 +0100 Subject: [wxruby-users] Mouse wheel events in a grid cell editor? In-Reply-To: <4B8C4A77.5050302@pressure.to> References: <4B8C4A77.5050302@pressure.to> Message-ID: <5fb01b28c5062ecc306f1c71a7822a94@ruby-forum.com> thanks for the reply. The problem appears to be that, once the editor is instantiated, the grid will receive the wheel events everywhere *except* where the editor is visible. > I would have expected (a) to work - mouse events are fired on whichever > is the topmost control where the mouse is. For an editor control, the > mouse pointer may not be on top of the control itself. it would appear that is the case - which may be why the grid receives the wheel events but not the editor. > Does the evt_mousewheel fire correctly if you have it as a constant > event handler for the Grid? yes > You could try using the method Window#capture_mouse to force mouse input > to be directed to a particular window - either the grid or the editor > control - to see if this helps. I will have to try that - digging into it now. > Failing that, please post a complete, runnable but minimal example with > the problem and I'll see if I can help attached. I will let you know as soon as I found out anything regarding the capture_mouse method. tony --- (I'm getting an "application error" from the webserver when I try to attach a file so I'm adding it here and reporting the bug to the webmaster) #!/usr/bin/env arch -i386 ruby begin require 'rubygems' rescue LoadError end require 'wx' class MyGridTable < Wx::GridTableBase attr_reader :cols, :rows def initialize(rows, cols) super() @rows = rows @cols = cols end def get_number_rows @rows end def get_number_cols @cols end def get_value(row, col) (col + @cols * row).to_s end def get_attr(row, col, attr_kind) Wx::GridCellAttr.new end def is_empty_cell(row, col) false end def set_value(x, y, val) puts "Attempting to change cell (#{x}, #{y}) to '#{val}'" end def get_type_name(row, col) "FOOBAR" end end class MyEditor < Wx::GridCellChoiceEditor def initialize super(['7','13','23','42']) end def begin_edit row, col, grid puts "begin edit" grid.evt_mousewheel {|e| on_wheel e } super end def on_wheel event p event end def end_edit(row, col, grid) puts "end edit" # TODO: how to unsubscribe? super end end class GridFrame < Wx::Frame def initialize() super(nil, :title => 'Mousewheel example', :size => [600, 300]) main_sizer = Wx::VBoxSizer.new @grid = Wx::Grid.new(self) @grid.register_data_type( "FOOBAR", Wx::GridCellStringRenderer.new, MyEditor.new ) @grid.table = MyGridTable.new(10, 10) main_sizer.add(@grid, 1, Wx::EXPAND|Wx::ALL, 5) self.sizer = main_sizer end end Wx::App.run do GridFrame.new.show end -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Fri Mar 5 05:46:19 2010 From: lists at ruby-forum.com (Alex DeCaria) Date: Fri, 5 Mar 2010 11:46:19 +0100 Subject: [wxruby-users] wxruby gem loaded, but require 'wxruby' not found In-Reply-To: <568ec7d6218b9cf906d2a72b98a63f4b@ruby-forum.com> References: <0b95a0efab6caec4f4488e56d083959f@ruby-forum.com> <568ec7d6218b9cf906d2a72b98a63f4b@ruby-forum.com> Message-ID: <1a77bde3e207a7609980d48d7bf39578@ruby-forum.com> Tony Meier wrote: > try require 'wx'. That worked! But now I get a window that pops up saying "The program can't start because msvcrt-ruby18.dll is missing from your computer!" I'm using Ruby 1.9, so why is it looking for a Ruby 1.8 file? Does wxruby work with Ruby 1.9? Did I install the wrong gem? -- Alex -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Fri Mar 5 05:59:14 2010 From: lists at ruby-forum.com (Alex DeCaria) Date: Fri, 5 Mar 2010 11:59:14 +0100 Subject: [wxruby-users] Using Ruby 1.9, but wxruby looking for msvcrt-ruby18.dll Message-ID: <595f890680a7fd579a433b148ecaa0f8@ruby-forum.com> I installed wxruby on Windows. When running a wxruby app I get a window that pops up saying "The program can't start because msvcrt-ruby18.dll is missing from your computer!" I'm using Ruby 1.9, so why is it looking for a Ruby 1.8 dll? The file msvcrt-ruby18.dll exists in my old Ruby 1.8 directory, but not in my Ruby19 directory. Does wxruby work with Ruby 1.9? Did I install the wrong gem? -- Alex -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Sat Mar 6 11:02:50 2010 From: lists at ruby-forum.com (Lui Kore) Date: Sat, 6 Mar 2010 17:02:50 +0100 Subject: [wxruby-users] How to ge the handle of a menu? Message-ID: <5b3d2e9f2c0eaf3d2edf3a71a5b7de80@ruby-forum.com> The GetHMenuOf() macro seems not available ... -- Posted via http://www.ruby-forum.com/. From sean at clipperadams.com Sun Mar 7 06:38:29 2010 From: sean at clipperadams.com (DeNigris Sean) Date: Sun, 7 Mar 2010 06:38:29 -0500 Subject: [wxruby-users] Button height problem In-Reply-To: <6C6664D8-67C9-477B-8CA6-BF55595BA4AB@clipperadams.com> References: <6C6664D8-67C9-477B-8CA6-BF55595BA4AB@clipperadams.com> Message-ID: <1F270B44-E01C-4FB0-B424-202053C4666E@clipperadams.com> Hi list, I just started with wxruby and I ran into something - not sure if it's a bug. No matter what I set the buttons properties/options to, the height of the button doesn't change. Even when I set the text size to 24 pt. and it doesn't fit in the button any more, the button stayed the same height and the text runs off the top and bottom. Thanks! Sean DeNigris From lists at ruby-forum.com Sun Mar 7 11:20:03 2010 From: lists at ruby-forum.com (Tony Meier) Date: Sun, 7 Mar 2010 17:20:03 +0100 Subject: [wxruby-users] Mouse wheel events in a grid cell editor? In-Reply-To: <4B8C4A77.5050302@pressure.to> References: <4B8C4A77.5050302@pressure.to> Message-ID: <78bae69eb85855c0195cecabdb3a68fa@ruby-forum.com> > You could try using the method Window#capture_mouse to force mouse input > to be directed to a particular window - either the grid or the editor > control - to see if this helps. I'm a bit puzzled my how the capture_mouse method might work on the grid cells. Since the cell editors don't subclass Wx::Window, the only chance would be to capture the mouse on the control itself and subsequently connect the control to the mouse event: class MyEditor < Wx::GridCellNumberEditor def initialize super 0, 100 end def begin_edit row, col, grid control = get_control() control.capture_mouse() connect(control.wx_id, Wx::ID_ANY, Wx::EVT_MOUSEWHEEL) { |e| p e } super end def end_edit row, col, grid control = get_control control.release_mouse super end end ... however this doesn't do anything for me (no output). Please help. Thanks, Tony -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Mon Mar 8 08:30:02 2010 From: lists at ruby-forum.com (Tony Meier) Date: Mon, 8 Mar 2010 14:30:02 +0100 Subject: [wxruby-users] GridCellNumberEditor peculiarities In-Reply-To: <60725e8f245f906a106951710389d16e@ruby-forum.com> References: <84bfac65f005dcd32539881a0b53f244@ruby-forum.com> <60725e8f245f906a106951710389d16e@ruby-forum.com> Message-ID: me again - I'm still struggling with the Grid code. Maybe this is a problem with my runtime environment? I'm using wxruby 2.0.1 on Snow Leopard 10.6.2 using Ruby 1.8.7 and wxWidgets 2.8.10. Is this supposed to be a valid combination? It seems that, with this combination the GridCellNumberEditor cannot be properly derived from. When registered as an editor with a Grid, the constructor is called but, upon editing, neither the begin_edit nor the end_edit methods from the derived class are called. All of this, in spite a NumberCellEditor is properly displayed and the code also calls to TableBase's set_value() method when the editor closes. What's going on? Is this a bug or am I completely misled on the usage of this? Thanks for any pointers in the right direction. Tony. --- #!/usr/bin/env arch -i386 ruby begin require 'rubygems' rescue LoadError end require 'wx' class MyGridTable < Wx::GridTableBase attr_reader :cols, :rows def initialize(rows, cols) super() @rows = rows @cols = cols end def get_number_rows @rows end def get_number_cols @cols end def get_value(row, col) (col + @cols * row).to_s end def get_attr(row, col, attr_kind) Wx::GridCellAttr.new end def is_empty_cell(row, col) false end def set_value(x, y, val) puts "Attempting to change cell (#{x}, #{y}) to '#{val}'" end def get_type_name(row, col) "FOOBAR" end end class MyEditor < Wx::GridCellNumberEditor def initialize puts 'my editor init' # called upon app start super(0,100) end def begin_edit row, col, grid super puts "begin edit" # never gets called end def end_edit(row, col, grid) puts "end edit" # never gets called super end end class GridFrame < Wx::Frame def initialize() super(nil, :title => 'Grid editor example', :size => [600, 300]) main_sizer = Wx::VBoxSizer.new @grid = Wx::Grid.new(self) @grid.register_data_type( "FOOBAR", Wx::GridCellStringRenderer.new, MyEditor.new ) @grid.table = MyGridTable.new(10, 10) main_sizer.add(@grid, 1, Wx::EXPAND|Wx::ALL, 5) self.sizer = main_sizer end end Wx::App.run do GridFrame.new.show end -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Mon Mar 8 08:43:17 2010 From: lists at ruby-forum.com (Tony Meier) Date: Mon, 8 Mar 2010 14:43:17 +0100 Subject: [wxruby-users] Ending Application When Window Closes In-Reply-To: References: Message-ID: I've had similar behavior and it was due to the app still holding resources. For me, I created a dock_icon that wants to be destroyed prior to exiting. So, in short, check if your code still holds any resources that need manual destruction and call them in an on_close method ... for instance: class YourFrame < Wx::Frame def initialize (...) evt_close :on_close (...) @dock_icon = Wx::TaskBarIcon.new @dock_icon.set_icon((Wx::Icon.new("icon.png", Wx::BITMAP_TYPE_PNG)),"Your App") end (...) def on_close @dock_icon.destroy if @dock_icon destroy end end -- Posted via http://www.ruby-forum.com/. From alex at pressure.to Mon Mar 8 08:46:33 2010 From: alex at pressure.to (Alex Fenton) Date: Mon, 08 Mar 2010 13:46:33 +0000 Subject: [wxruby-users] Ending Application When Window Closes In-Reply-To: References: Message-ID: <4B94FFB9.6050508@pressure.to> Tony Meier wrote: > I've had similar behavior and it was due to the app still holding > resources. For me, I created a dock_icon that wants to be destroyed > prior to exiting. Thanks Tony. Yes, this normally. As far as know, the only things that need manual destruction are: TaskBarIcon Dialog, when created with no window as parent What these have in common is that they are GUI elements which should persist even if there is no main window (some kind of Wx::Frame) for the application. Everything else should be cleaned up automatically as an application runs and windows open and close. a From alex at pressure.to Mon Mar 8 08:54:28 2010 From: alex at pressure.to (Alex Fenton) Date: Mon, 08 Mar 2010 13:54:28 +0000 Subject: [wxruby-users] Button height problem In-Reply-To: <1F270B44-E01C-4FB0-B424-202053C4666E@clipperadams.com> References: <6C6664D8-67C9-477B-8CA6-BF55595BA4AB@clipperadams.com> <1F270B44-E01C-4FB0-B424-202053C4666E@clipperadams.com> Message-ID: <4B950194.5030803@pressure.to> Hi Sean DeNigris Sean wrote: > I just started with wxruby and I ran into something - not sure if it's a bug. > > No matter what I set the buttons properties/options to, the height of the button doesn't change. Even when I set the text size to 24 pt. and it doesn't fit in the button any more, the button stayed the same height and the text runs off the top and bottom. It's not a bug, it's a feature ;) Compared to other cross-platform toolkits, Wx puts the utmost importance on having the application look and act exactly as would an app coded with each platform's native frameworks. Following this, a text button has an appearance, font face& size and colours determined by the platform's UI standards and possibly the user's own theme settings. Wx enforces this, and you deal with the resulting variations in size by using flexible Sizer-based layouts. So I'd reconsider first why you want to use a different size of button since this will break UI guidelines from Windows, Apple and GNOME. Of course, there could well be a good reason, and if so, you could look at using Wx::BitmapButton (possibly drawing your own Bitmap with text go into it), or buttons within a Wx::ToolBar, or using Wx::NativeRenderer which will allow you to draw stock GUI items like button edges in native style at arbitrary sizes alex From alex at pressure.to Mon Mar 8 08:56:22 2010 From: alex at pressure.to (Alex Fenton) Date: Mon, 08 Mar 2010 13:56:22 +0000 Subject: [wxruby-users] How to ge the handle of a menu? In-Reply-To: <5b3d2e9f2c0eaf3d2edf3a71a5b7de80@ruby-forum.com> References: <5b3d2e9f2c0eaf3d2edf3a71a5b7de80@ruby-forum.com> Message-ID: <4B950206.3050100@pressure.to> Lui Kore wrote: > The GetHMenuOf() macro seems not available ... > Wx::Frame#get_menu_bar , I think alex From lists at ruby-forum.com Mon Mar 8 09:05:07 2010 From: lists at ruby-forum.com (Tony Meier) Date: Mon, 8 Mar 2010 15:05:07 +0100 Subject: [wxruby-users] GridCellNumberEditor peculiarities In-Reply-To: References: <84bfac65f005dcd32539881a0b53f244@ruby-forum.com> <60725e8f245f906a106951710389d16e@ruby-forum.com> Message-ID: <8bf00c3d9dbda93bf831629203ef6af5@ruby-forum.com> > I'm using wxruby 2.0.1 on Snow Leopard 10.6.2 using Ruby 1.8.7 and > wxWidgets 2.8.10. Is this supposed to be a valid combination? > > It seems that, with this combination the GridCellNumberEditor cannot be > properly derived from. Update: I cross-checked this with Windows XP, wxWidgets 2.8.10 and Ruby 1.8.6. The behavior is identical (begin_edit and end_edit are NOT called) except that, with XP, using the mousewheel and accepting an input with "Enter" works out of the box - which it doesn't on OS X. And that was exactly the reason why I tried to override begin_edit and end_edit. Ouch. -- Posted via http://www.ruby-forum.com/. From alex at pressure.to Mon Mar 8 09:10:16 2010 From: alex at pressure.to (Alex Fenton) Date: Mon, 08 Mar 2010 14:10:16 +0000 Subject: [wxruby-users] GridCellNumberEditor peculiarities In-Reply-To: References: <84bfac65f005dcd32539881a0b53f244@ruby-forum.com> <60725e8f245f906a106951710389d16e@ruby-forum.com> Message-ID: <4B950548.80105@pressure.to> Tony Meier wrote: > me again - I'm still struggling with the Grid code. Maybe this is a > problem with my runtime environment? > > I'm using wxruby 2.0.1 on Snow Leopard 10.6.2 using Ruby 1.8.7 and > wxWidgets 2.8.10. Is this supposed to be a valid combination? > 2.0.1 came out just before Snow Leopard was released, and I think we need to update and rebuild for 10.6 - just haven't got around to it though I've been using 10.6 for a few months. However, this sort of problem would almost certainly show up as big-fail crash on startup, rather than minor behavioural differences. > It seems that, with this combination the GridCellNumberEditor cannot be > properly derived from. I have a feeling that the concrete XXXEditor classes are not fully inheritable from - they are designed as concrete final classes in C++. But I'm not sure about this - will have a go with your sample later today (also looking at your wheel question) and let you know alex From lists at ruby-forum.com Mon Mar 8 09:35:34 2010 From: lists at ruby-forum.com (Lui Kore) Date: Mon, 8 Mar 2010 15:35:34 +0100 Subject: [wxruby-users] wxAuiTabCtrl is not supported Message-ID: <9f03bf687fba07bc0b97d17f604f6e6d@ruby-forum.com> When calling AuiNotebook#children, I got an error: Error wrapping object: class wxAuiTabCtrl is not supported in wxRuby It's exactly the object I want to set_tool_tip on. I don't know how to use swig, I tried the following: // AuiTabCtrl.i %include "../common.i" %module(directors="1") wxAuiTabCtrl GC_MANAGE_AS_WINDOW(wxAuiTabCtrl); SWIG_WXWINDOW_NO_USELESS_VIRTUALS(wxAuiTabCtrl); %import "include/wxControl.h" %import "include/wxEvtHandler.h" %import "include/wxWindow.h" %import "include/wxObject.h" %import "include/wxAuiNotebook.h" %include "include/wxAuiTabCtrl.h" // include/wxAuiTabCtrl.h #ifndef _wxAuiTabCtrl_h_ #define _wxAuiTabCtrl_h_ class wxAuiTabCtrl : public wxControl {}; #endif // and added this line in parents.rb 'wxAuiTabCtrl' => 'wxControl', But the generated class just doesn't compile. Any hint? -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Mon Mar 8 10:00:46 2010 From: lists at ruby-forum.com (Lui Kore) Date: Mon, 8 Mar 2010 16:00:46 +0100 Subject: [wxruby-users] How to ge the handle of a menu? In-Reply-To: <4B950206.3050100@pressure.to> References: <5b3d2e9f2c0eaf3d2edf3a71a5b7de80@ruby-forum.com> <4B950206.3050100@pressure.to> Message-ID: Sorry, I mean the handle of a popup menu. On Windows it's an HMENU value, which is an Fixnum in ruby. I need this handle to do some platform specific operations (for example, add shell context menu) but still don't know how to get it. In wxwidgets(C++), the prototype in wxMenu is: class WXDLLEXPORT wxMenu : public wxMenuBase { public: ... WXHMENU GetHMenu() const { return m_hMenu; } But there's no such get_hmenu in wxRuby. Alex Fenton wrote: > Lui Kore wrote: >> The GetHMenuOf() macro seems not available ... >> > > Wx::Frame#get_menu_bar , I think > > alex -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Mon Mar 8 10:11:54 2010 From: lists at ruby-forum.com (Lui Kore) Date: Mon, 8 Mar 2010 16:11:54 +0100 Subject: [wxruby-users] How to ge the handle of a menu? In-Reply-To: References: <5b3d2e9f2c0eaf3d2edf3a71a5b7de80@ruby-forum.com> <4B950206.3050100@pressure.to> Message-ID: Forgive my terrible English ... This function seems to be a windows-only feature, it lives in %WXWIN%/include/msw/menu.h -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Mon Mar 8 12:36:22 2010 From: lists at ruby-forum.com (Lui Kore) Date: Mon, 8 Mar 2010 18:36:22 +0100 Subject: [wxruby-users] How to ge the handle of a menu? In-Reply-To: References: <5b3d2e9f2c0eaf3d2edf3a71a5b7de80@ruby-forum.com> <4B950206.3050100@pressure.to> Message-ID: Solved. I added these lines to swig/classes/include/wxMenu.h, at about line 43: #ifdef __WXMSW__ long GetHMenu() { return (long)m_hMenu; } #endif Re-swig and re-compile, then Menu#get_h_menu works. -- Posted via http://www.ruby-forum.com/. From sean at clipperadams.com Mon Mar 8 13:57:57 2010 From: sean at clipperadams.com (DeNigris Sean) Date: Mon, 8 Mar 2010 13:57:57 -0500 Subject: [wxruby-users] Button height problem In-Reply-To: <4B950194.5030803@pressure.to> References: <6C6664D8-67C9-477B-8CA6-BF55595BA4AB@clipperadams.com> <1F270B44-E01C-4FB0-B424-202053C4666E@clipperadams.com> <4B950194.5030803@pressure.to> Message-ID: > It's not a bug, it's a feature ;) Compared to other cross-platform toolkits, Wx puts the utmost importance on having the application look and act exactly as would an app coded with each platform's native frameworks. Aha! > So I'd reconsider first why you want to use a different size of button since this will break UI guidelines from Windows, Apple and GNOME. Of course, there could well be a good reason, and if so, you could look at using Wx::BitmapButton (possibly drawing your own Bitmap with text go into it), or buttons within a Wx::ToolBar, or using Wx::NativeRenderer which will allow you to draw stock GUI items like button edges in native style at arbitrary sizes I'll def look into these - the motivation was to have buttons with really big text for older people using the app. Thank you - that answer was perfect! And so obvious now. Are these things (like which platforms do not honor which options) written down somewhere, or do you just learn from experience? Sean DeNigris sean at clipperadams.com From alex at pressure.to Mon Mar 8 19:21:05 2010 From: alex at pressure.to (Alex Fenton) Date: Tue, 09 Mar 2010 00:21:05 +0000 Subject: [wxruby-users] Button height problem In-Reply-To: References: <6C6664D8-67C9-477B-8CA6-BF55595BA4AB@clipperadams.com> <1F270B44-E01C-4FB0-B424-202053C4666E@clipperadams.com> <4B950194.5030803@pressure.to> Message-ID: <4B959471.1010302@pressure.to> On 08/03/2010 18:57, DeNigris Sean wrote: >> So I'd reconsider first why you want to use a different size of button since this will break UI guidelines from Windows, Apple and GNOME. Of course, there could well be a good reason, and if so, you could look at using Wx::BitmapButton (possibly drawing your own Bitmap with text go into it), or buttons within a Wx::ToolBar, or using Wx::NativeRenderer which will allow you to draw stock GUI items like button edges in native style at arbitrary sizes >> > I'll def look into these - the motivation was to have buttons with really big text for older people using the app. > To me this is an important reason for Wx's emphasis on native widgets. A user who needs big text will (or should) have set that in their desktop settings. Similarly, users with other kinds of, say, visual or mobility impairment will have set system preferences for colour schemes, or how mouse moves and clicks are interpreted. By using the native application frameworks to build the GUI the user's overall settings will be honoured, without any extra effort on your part as a programmer. GUI toolkits which employ lower-level calls to draw lines and text on the screen, and handle raw input from devices might achieve good integration at an aesthetic level (look'n'feel), but still not know how to adapt to more specialised needs. I should note that as of wx 2.8, extra support for assistive technologies like was incomplete, and not available in wxRuby - but common situations like larger text, high contrast etc should be dealt with automatically. > Are these things (like which platforms do not honor which options) written down somewhere, or do you just learn from experience? > AFAIK there isn't a single place this is all collated. Where there are methods not supported at all on one platform or other, this should be noted, and the wxWidgets wiki has a lot of notes on distinctive features of different OS's. Prob more useful is to have a quick look at the UI guideline documents from Apple, Microsoft and Gnome. Search for platform + HIG. They're different in style but have much good advice and thought on what makes usable and attractive applications. best alex From alex at pressure.to Mon Mar 8 19:23:02 2010 From: alex at pressure.to (Alex Fenton) Date: Tue, 09 Mar 2010 00:23:02 +0000 Subject: [wxruby-users] How to ge the handle of a menu? In-Reply-To: References: <5b3d2e9f2c0eaf3d2edf3a71a5b7de80@ruby-forum.com> <4B950206.3050100@pressure.to> Message-ID: <4B9594E6.6050908@pressure.to> On 08/03/2010 17:36, Lui Kore wrote: > Solved. I added these lines to swig/classes/include/wxMenu.h, at about > line 43: > > #ifdef __WXMSW__ > long GetHMenu() { return (long)m_hMenu; } > #endif > > Re-swig and re-compile, then Menu#get_h_menu works. > Thanks - the macros in Wx aren't documented very systematically so some important ones might be missing from wxRuby. Could you submit this as a bug or feature request on the Rubyforge site please, and we should be able to put it in the next main release. thanks alex From lists at ruby-forum.com Mon Mar 8 22:54:31 2010 From: lists at ruby-forum.com (Lui Kore) Date: Tue, 9 Mar 2010 04:54:31 +0100 Subject: [wxruby-users] How to ge the handle of a menu? In-Reply-To: <4B9594E6.6050908@pressure.to> References: <5b3d2e9f2c0eaf3d2edf3a71a5b7de80@ruby-forum.com> <4B950206.3050100@pressure.to> <4B9594E6.6050908@pressure.to> Message-ID: <82156b02fb221e6fe6d9f19c3317a7f2@ruby-forum.com> Done. http://rubyforge.org/tracker/index.php?func=detail&aid=27945&group_id=35&atid=221 Alex Fenton wrote: > On 08/03/2010 17:36, Lui Kore wrote: >> Solved. I added these lines to swig/classes/include/wxMenu.h, at about >> line 43: >> >> #ifdef __WXMSW__ >> long GetHMenu() { return (long)m_hMenu; } >> #endif >> >> Re-swig and re-compile, then Menu#get_h_menu works. >> > > Thanks - the macros in Wx aren't documented very systematically so some > important ones might be missing from wxRuby. > > Could you submit this as a bug or feature request on the Rubyforge site > please, and we should be able to put it in the next main release. > > thanks > alex -- Posted via http://www.ruby-forum.com/. From sean at clipperadams.com Sat Mar 13 17:01:10 2010 From: sean at clipperadams.com (DeNigris Sean) Date: Sat, 13 Mar 2010 17:01:10 -0500 Subject: [wxruby-users] [BUG] Menus on Snow Leopard not working correctly Message-ID: <9B221073-9E0E-43DD-A26D-A12D1CB687E0@clipperadams.com> I posted the following bug at http://rubyforge.org/tracker/index.php?func=detail&aid=27962&group_id=35&atid=218. Is anyone else dealing with this? > In running the 2.0.1 samples under OS X 10.6.2, some menu items do not appear as they should. > > For example: > * in the "minimal" sample, the "file" menu appears in the menu bar, but the individual items do not appear; same with the "Help" menu - appears without added items. > * In the bigdemo sample, the "File" and "Help" menus are also empty, but the "Demo" menu seems fine (contains many options). > > I'm running the samples with #!/usr/bin/env arch -i386 ruby. > > Thanks! > > Sean -------------- next part -------------- An HTML attachment was scrubbed... URL: From mario at ruby-im.net Sat Mar 13 17:33:05 2010 From: mario at ruby-im.net (Mario Steele) Date: Sat, 13 Mar 2010 17:33:05 -0500 Subject: [wxruby-users] [BUG] Menus on Snow Leopard not working correctly In-Reply-To: <9B221073-9E0E-43DD-A26D-A12D1CB687E0@clipperadams.com> References: <9B221073-9E0E-43DD-A26D-A12D1CB687E0@clipperadams.com> Message-ID: Hello Sean, This is a feature / bug with wxWidgets on Mac OS X. The menus File and Help are actually combined into the "Main" Menu Item, which is the name of the application that is running. Such as Quit, Preferences and Help gets put under the application name main menu, instead of under File, or Help. This is Mac OS X's way of doing things. hth, Mario On Sat, Mar 13, 2010 at 5:01 PM, DeNigris Sean wrote: > I posted the following bug at > http://rubyforge.org/tracker/index.php?func=detail&aid=27962&group_id=35&atid=218 > . > Is anyone else dealing with this? > > In running the 2.0.1 samples under OS X 10.6.2, some menu items do not > appear as they should. For example: * in the "minimal" sample, the "file" > menu appears in the menu bar, but the individual items do not appear; same > with the "Help" menu - appears without added items. * In the bigdemo sample, > the "File" and "Help" menus are also empty, but the "Demo" menu seems fine > (contains many options). I'm running the samples with #!/usr/bin/env arch > -i386 ruby. Thanks! Sean > > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > -- Mario Steele Lieutenant 3 - Geo 99 XO - STO IFT Fleet Chief Engineer - Second Life http://www.iftcommand.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sean at clipperadams.com Sat Mar 13 17:43:08 2010 From: sean at clipperadams.com (DeNigris Sean) Date: Sat, 13 Mar 2010 17:43:08 -0500 Subject: [wxruby-users] [BUG] Menus on Snow Leopard not working correctly In-Reply-To: References: <9B221073-9E0E-43DD-A26D-A12D1CB687E0@clipperadams.com> Message-ID: <31D87E2D-EDE1-40FE-8A99-98BD7C7D3150@clipperadams.com> > This is a feature / bug with wxWidgets on Mac OS X. The menus File and Help are actually combined into the "Main" Menu Item, which is the name of the application that is running. Such as Quit, Preferences and Help gets put under the application name main menu, instead of under File, or Help. This is Mac OS X's way of doing things. Aha, okay. Sounds good - except for two things: 1. it *shows" a File menu, which is weird (from a user standpoint). Is there a way to have it not show "File" at all and put the items under the [application name] menu? 2. it doesn't show an [application name] menu at all, but a "ruby" menu, which is also weird and not-very-mac. Is there a way to actually get the app name there instead of "ruby"? Thanks for the help! Sean From mario at ruby-im.net Sat Mar 13 22:52:12 2010 From: mario at ruby-im.net (Mario Steele) Date: Sat, 13 Mar 2010 22:52:12 -0500 Subject: [wxruby-users] [BUG] Menus on Snow Leopard not working correctly In-Reply-To: <31D87E2D-EDE1-40FE-8A99-98BD7C7D3150@clipperadams.com> References: <9B221073-9E0E-43DD-A26D-A12D1CB687E0@clipperadams.com> <31D87E2D-EDE1-40FE-8A99-98BD7C7D3150@clipperadams.com> Message-ID: Hello again Sean, On Sat, Mar 13, 2010 at 5:43 PM, DeNigris Sean wrote: > > This is a feature / bug with wxWidgets on Mac OS X. The menus File and > Help are actually combined into the "Main" Menu Item, which is the name of > the application that is running. Such as Quit, Preferences and Help gets > put under the application name main menu, instead of under File, or Help. > This is Mac OS X's way of doing things. > Aha, okay. Sounds good - except for two things: > 1. it *shows" a File menu, which is weird (from a user standpoint). Is > there a way to have it not show "File" at all and put the items under the > [application name] menu? > I have not found a way to do this, Alex has more experience with this sort of thing, then I do. > 2. it doesn't show an [application name] menu at all, but a "ruby" menu, > which is also weird and not-very-mac. Is there a way to actually get the > app name there instead of "ruby"? > This has been answered before, there's two ways in which you can achieve this. The first is to rename the ruby executable (Which Mac OS X uses) to the name of your application, which isn't ideal. Or, you can use the .app Directory creation for your program, and put in a manifest file that will describe what the program is, how to launch it, and what the Application name is. This second method is the ideal method in which to do it, as it solves a lot of problems, and gives you more options. If you look at Alex's Weft-QDA Rake file, for OS X here: http://weft-qda.rubyforge.org/svn/trunk/weft-qda/rake/rake_osx.rb You can learn much about how to create an .app directory, to store your program code, and executables in. > > Thanks for the help! > Your welcome. > Sean > hth, Mario -- Mario Steele Lieutenant 3 - Geo 99 XO - STO IFT Fleet Chief Engineer - Second Life http://www.iftcommand.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From penguinroad at gmail.com Mon Mar 15 00:53:46 2010 From: penguinroad at gmail.com (hendra kusuma) Date: Mon, 15 Mar 2010 11:53:46 +0700 Subject: [wxruby-users] gridtablebase with sql Message-ID: <26dadb3d1003142153o7b06d6f2n1faba67598453307@mail.gmail.com> Dear all How do I use gridtablebase to display record I get from sql? I try to follow the help and sample, but I don't understand how to combine the sql data sample code would be good Thank you Regards Hendra -- Suka linux? Kunjungi blog saya http://penguinroad.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From alex at pressure.to Mon Mar 15 02:35:09 2010 From: alex at pressure.to (Alex Fenton) Date: Mon, 15 Mar 2010 06:35:09 +0000 Subject: [wxruby-users] gridtablebase with sql In-Reply-To: <26dadb3d1003142153o7b06d6f2n1faba67598453307@mail.gmail.com> References: <26dadb3d1003142153o7b06d6f2n1faba67598453307@mail.gmail.com> Message-ID: <4B9DD51D.1020002@pressure.to> Hi Hendra On 15/03/2010 04:53, hendra kusuma wrote: > How do I use gridtablebase to display record I get from sql? > > I try to follow the help and sample, > but I don't understand how to combine the sql data > > sample code would be good Someone else may have some code to offer, but I'm afraid most people don't have time to write a complete code sample. Your class should inherit from Wx::GridTableBase and there's a set of method that your class must provide to provide the SQL results to the table.The documentation is there; the sample has some comments and can be used as a template. It's probably worth looking at it again, understanding what each method is doing, then having a go yourself. If you get stuck on something specific, I'd be happy to help. best alex From penguinroad at gmail.com Mon Mar 15 03:37:07 2010 From: penguinroad at gmail.com (hendra kusuma) Date: Mon, 15 Mar 2010 14:37:07 +0700 Subject: [wxruby-users] gridtablebase with sql In-Reply-To: <4B9DD51D.1020002@pressure.to> References: <26dadb3d1003142153o7b06d6f2n1faba67598453307@mail.gmail.com> <4B9DD51D.1020002@pressure.to> Message-ID: <26dadb3d1003150037h101a06c3u9d2bb6f33c6d7778@mail.gmail.com> On Mon, Mar 15, 2010 at 1:35 PM, Alex Fenton wrote: > Hi Hendra > > > On 15/03/2010 04:53, hendra kusuma wrote: > >> How do I use gridtablebase to display record I get from sql? >> >> I try to follow the help and sample, >> but I don't understand how to combine the sql data >> >> sample code would be good >> > > Someone else may have some code to offer, but I'm afraid most people don't > have time to write a complete code sample. Your class should inherit from > Wx::GridTableBase and there's a set of method that your class must provide > to provide the SQL results to the table.The documentation is there; the > sample has some comments and can be used as a template. It's probably worth > looking at it again, understanding what each method is doing, then having a > go yourself. If you get stuck on something specific, I'd be happy to help. > > best > alex > > Thank you Alex, you are always helpful I finally figure it out so to put it simpy, all I need is 2 dimension array of my sql result and put it in def get_value(row, col) (sql_result[row])[col].to_s end I found that each time i modify sql result I need to recreate the object to avoid error caused by difference in row number well, thats enough for the time being :) Thank you Regard Hendra -- Suka linux? Kunjungi blog saya http://penguinroad.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From plusgforce at gmail.com Wed Mar 17 00:16:14 2010 From: plusgforce at gmail.com (Philip Stephens) Date: Tue, 16 Mar 2010 22:16:14 -0600 Subject: [wxruby-users] WxNotebook Message-ID: <536e2d6f1003162116r6ad4b21ak1acf48c9c7ee4dde@mail.gmail.com> I am trying to create a notebook with tabs but have failed. What do I need to do get the tabbed notebook to display properly? Thanks. require 'rubygems' require 'wx' require 'ratio1.rb' class MyApp < Wx::App def on_init @main_win = InputSubclass.new @nbpLiquidity = Liquidity_sc.new @nbpActivity = Activity_sc.new @m_notebook = Wx::Notebook.new(@main_win, 1000) @m_notebook.add_page(@nbpLiquidity, "test1") @m_notebook.add_page(@nbpActivity, "test2") @main_win.show end #def end # class MyApp.new.main_loop ==================== 510,310 Data Entry 500,300 Liquidity Ratios 500,300 Activity Ratios 500,300 Leverage Ratios 500,300 Performance Ratios 500,300 Valuation Ratios From penguinroad at gmail.com Wed Mar 17 02:23:27 2010 From: penguinroad at gmail.com (hendra kusuma) Date: Wed, 17 Mar 2010 13:23:27 +0700 Subject: [wxruby-users] WxNotebook In-Reply-To: <536e2d6f1003162116r6ad4b21ak1acf48c9c7ee4dde@mail.gmail.com> References: <536e2d6f1003162116r6ad4b21ak1acf48c9c7ee4dde@mail.gmail.com> Message-ID: <26dadb3d1003162323o6586734co62ba2b9ce9b80875@mail.gmail.com> I am not an expert but I'll try to help according to my experiences, you can add a panel as page in notebook I don't know what object Liquiduty_sc is but if it is a panel then it should be ok On Wed, Mar 17, 2010 at 11:16 AM, Philip Stephens wrote: > I am trying to create a notebook with tabs but have failed. What do I > need to do get the tabbed notebook to display properly? Thanks. > > require 'rubygems' > require 'wx' > require 'ratio1.rb' > > class MyApp < Wx::App > > def on_init > @main_win = InputSubclass.new > @nbpLiquidity = Liquidity_sc.new > @nbpActivity = Activity_sc.new > > @m_notebook = Wx::Notebook.new(@main_win, 1000) > @m_notebook.add_page(@nbpLiquidity, "test1") > @m_notebook.add_page(@nbpActivity, "test2") > > @main_win.show > end #def > end # class > > MyApp.new.main_loop > > ==================== > > > > > 510,310 > Data Entry > > > > 500,300 > Liquidity Ratios > > > > 500,300 > Activity Ratios > > > > 500,300 > Leverage Ratios > > > > 500,300 > Performance Ratios > > > > 500,300 > Valuation Ratios > > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > -- Suka linux? Kunjungi blog saya http://penguinroad.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Wed Mar 17 02:41:18 2010 From: lists at ruby-forum.com (Philip Stephens) Date: Wed, 17 Mar 2010 07:41:18 +0100 Subject: [wxruby-users] WxNotebook In-Reply-To: <26dadb3d1003162323o6586734co62ba2b9ce9b80875@mail.gmail.com> References: <536e2d6f1003162116r6ad4b21ak1acf48c9c7ee4dde@mail.gmail.com> <26dadb3d1003162323o6586734co62ba2b9ce9b80875@mail.gmail.com> Message-ID: hendra kusuma wrote: > I am not an expert but I'll try to help > > according to my experiences, you can add a panel as page in notebook > I don't know what object Liquiduty_sc is > but if it is a panel then it should be ok I got my code to work. Thanks for the help. Philip -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Thu Mar 18 07:30:42 2010 From: lists at ruby-forum.com (Carlo Bertini) Date: Thu, 18 Mar 2010 12:30:42 +0100 Subject: [wxruby-users] Using Ruby 1.9, but wxruby looking for msvcrt-ruby18.dll In-Reply-To: <595f890680a7fd579a433b148ecaa0f8@ruby-forum.com> References: <595f890680a7fd579a433b148ecaa0f8@ruby-forum.com> Message-ID: <33c5f964a17b03fc991c7b998eb4f89c@ruby-forum.com> Alex DeCaria wrote: > I installed wxruby on Windows. When running a wxruby app I get a window > that pops up saying "The program can't start because msvcrt-ruby18.dll > is missing from your computer!" > > I'm using Ruby 1.9, so why is it looking for a Ruby 1.8 dll? The file > msvcrt-ruby18.dll exists in my old Ruby 1.8 directory, but not in my > Ruby19 directory. > > > Does wxruby work with Ruby 1.9? Did I install the wrong gem? > > -- Alex gem install wxruby-ruby19 www.waydotnet.com http://www.waydotnet.com/blog/2010/01/solved-ruby-1-9-1-mingw32-wxruby-undefined-reference-to-wxgraphicsrenderercreatebitmap/ last build gem (from svn): http://www.waydotnet.com/blog/gem -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Thu Mar 18 18:04:30 2010 From: lists at ruby-forum.com (Javier Marquez) Date: Thu, 18 Mar 2010 23:04:30 +0100 Subject: [wxruby-users] Events through XRC Message-ID: <7d212835c5e5d8bfed0dc1609dc85552@ruby-forum.com> Hello. I'm very newbie, pardon in advance. I would like to know if events can be generated automatically using XRCise such as ruby_glade_create_template does. When I use DialogBlocks or wxFormBuilder I see that, although the events are defined in the XRC file, do not appear. Doesn't XRC support events? Thanks a lot. -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Thu Mar 18 18:07:24 2010 From: lists at ruby-forum.com (Javier Marquez) Date: Thu, 18 Mar 2010 23:07:24 +0100 Subject: [wxruby-users] Events through XRC In-Reply-To: <7d212835c5e5d8bfed0dc1609dc85552@ruby-forum.com> References: <7d212835c5e5d8bfed0dc1609dc85552@ruby-forum.com> Message-ID: <4b4c4fbdc3b841718a1478af74b86e68@ruby-forum.com> Sorry again, I meant that although the events are defined in the design environment (DialogBlocks or wxFormBuilder) does not appear in the XRC file. -- Posted via http://www.ruby-forum.com/. From mario at ruby-im.net Thu Mar 18 19:47:11 2010 From: mario at ruby-im.net (Mario Steele) Date: Thu, 18 Mar 2010 19:47:11 -0400 Subject: [wxruby-users] Events through XRC In-Reply-To: <4b4c4fbdc3b841718a1478af74b86e68@ruby-forum.com> References: <7d212835c5e5d8bfed0dc1609dc85552@ruby-forum.com> <4b4c4fbdc3b841718a1478af74b86e68@ruby-forum.com> Message-ID: Most XRC Builders such as DialogBlocks or wxFormBuilder create the code templates in the source code generation for C/C++ or Python to handle the events. Nothing is actually stored for events in the XRC file. All the XRC file holds, is the GUI elements that wxWidgets needs to create, to display the form you designed. hth, Mario On Thu, Mar 18, 2010 at 6:07 PM, Javier Marquez wrote: > Sorry again, I meant that although the events are defined in the design > environment (DialogBlocks or wxFormBuilder) does not appear in the XRC > file. > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > -- Mario Steele Lieutenant 3 - Geo 99 XO - STO IFT Fleet Chief Engineer - Second Life http://www.iftcommand.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From penguinroad at gmail.com Thu Mar 18 22:07:23 2010 From: penguinroad at gmail.com (hendra kusuma) Date: Fri, 19 Mar 2010 09:07:23 +0700 Subject: [wxruby-users] Events through XRC In-Reply-To: References: <7d212835c5e5d8bfed0dc1609dc85552@ruby-forum.com> <4b4c4fbdc3b841718a1478af74b86e68@ruby-forum.com> Message-ID: <26dadb3d1003181907w368bdfa6nc26591888b81c1b8@mail.gmail.com> Your best bet is to create your own source code generator I already tried back then, but I figure that xrc file is not enough for my need too bad until now there is no easier way to make wx gui rather than xrc (well, i am currently making one but still far from finish) On Fri, Mar 19, 2010 at 6:47 AM, Mario Steele wrote: > Most XRC Builders such as DialogBlocks or wxFormBuilder create the code > templates in the source code generation for C/C++ or Python to handle the > events. Nothing is actually stored for events in the XRC file. All the XRC > file holds, is the GUI elements that wxWidgets needs to create, to display > the form you designed. > > hth, > > Mario > > > On Thu, Mar 18, 2010 at 6:07 PM, Javier Marquez wrote: > >> Sorry again, I meant that although the events are defined in the design >> environment (DialogBlocks or wxFormBuilder) does not appear in the XRC >> file. >> >> -- >> Posted via http://www.ruby-forum.com/. >> _______________________________________________ >> wxruby-users mailing list >> wxruby-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/wxruby-users >> > > > > -- > Mario Steele > Lieutenant 3 - Geo 99 > XO - STO IFT Fleet > Chief Engineer - Second Life > http://www.iftcommand.com > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > -- Suka linux? Kunjungi blog saya http://penguinroad.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Fri Mar 19 04:52:34 2010 From: lists at ruby-forum.com (Nome Cognome) Date: Fri, 19 Mar 2010 09:52:34 +0100 Subject: [wxruby-users] wxRuby 2.0.1 on Ubuntu 9.10 In-Reply-To: References: <61c507640909102017s3a23f278oc24a20af6f668d4d@mail.gmail.com> <41ce0aaadd809d434d29f44300972fc3@ruby-forum.com> <8c4086dba544d548bac2bd70c78b2f8d@ruby-forum.com> <9d20a1091810cb9df5d6bedc9f84df50@ruby-forum.com> Message-ID: <00ec109931c5d11c3d4f75faee902c46@ruby-forum.com> Mario Steele wrote: > Sorry, seems that the gem is messed up, please don't download from that > URL > till I say it is alright. I do not lose hope. :) Bye bye. -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Fri Mar 19 17:51:59 2010 From: lists at ruby-forum.com (Javier Marquez) Date: Fri, 19 Mar 2010 22:51:59 +0100 Subject: [wxruby-users] Events through XRC In-Reply-To: <26dadb3d1003181907w368bdfa6nc26591888b81c1b8@mail.gmail.com> References: <7d212835c5e5d8bfed0dc1609dc85552@ruby-forum.com> <4b4c4fbdc3b841718a1478af74b86e68@ruby-forum.com> <26dadb3d1003181907w368bdfa6nc26591888b81c1b8@mail.gmail.com> Message-ID: <72baeac08a9e830912cb5b0f9cb40e6a@ruby-forum.com> I see, thanks everyone -- Posted via http://www.ruby-forum.com/. From fabio.petrucci at gmail.com Sat Mar 20 05:25:25 2010 From: fabio.petrucci at gmail.com (Fabio Petrucci) Date: Sat, 20 Mar 2010 10:25:25 +0100 Subject: [wxruby-users] exception propagation in wxruby Message-ID: Hi all, i don't know if it's a bug but at least, for me, incomprehensible. try this code (plain ruby): module A class MyException < StandardError; end def raise_ex raise MyException, "details.." rescue Exception => ex puts "inside module A #{ex.class}" raise end end class Test include A def call_test raise_ex rescue Exception => ex puts "inside class Test #{ex.class}" end end Test.new.call_test i get this.. inside module A A::MyException inside class Test A::MyException ...as expected. try this wxruby code: begin require 'rubygems' rescue LoadError end require 'wx' include Wx module A class MyException < StandardError; end def raise_ex raise MyException, "details.." rescue Exception => ex puts "inside module A #{ex.class}" raise end end class MyFrame < Frame include A def initialize super(nil, -1, "Raise Exception demonstration", DEFAULT_POSITION, Size.new(350,200), DEFAULT_FRAME_STYLE) panel = Panel.new(self, -1) button = Button.new(panel, -1, "Raise exception", Point.new(15,15)) evt_button( button.get_id ) { on_raise_exception } evt_close { | e | on_close_window(e) } end def on_raise_exception raise_ex rescue Exception => ex puts "inside class MyFrame #{ex.class}" end def on_close_window(event) event.skip end end class MyApp < App def on_init begin main = MyFrame.new main.show rescue Exception => e exit(1) end end end MyApp.new.main_loop i get this... inside module A ArgumentError # totally wrong error type and even worse it doesn't propagate. Tested on ruby 1.8.6/1.9.1, wxruby 2.0.0/2.0.1 x86-mswin32/x86-mingw32 -------------- next part -------------- An HTML attachment was scrubbed... URL: From plusgforce at gmail.com Sat Mar 20 19:57:38 2010 From: plusgforce at gmail.com (Philip) Date: Sat, 20 Mar 2010 17:57:38 -0600 Subject: [wxruby-users] Tab key traversal Message-ID: <1269129458.11325.8.camel@philip-laptop2> Below is my attempt at changing the focus from one text control to the next control after a person presses the tab key. The wxTE_PROCESS_TAB style property has been selected for each of the controls. What corrections do I have to make? Thanks. #!/usr/bin/env ruby require 'rubygems' require 'wx' require 'tp1.rb' class MainFrame < TPSC def on_init m_scrolledwindow6.set_virtual_size(400, 100) m_scrolledwindow6.set_scroll_rate(5, 5) wxEVT_CHAR(@m_textCtrl2) { m_textCtrl3.set_focus } wxEVT_CHAR(@m_textCtrl3) { m_textCtrl4.set_focus } wxEVT_CHAR(@m_textCtrl4) { m_textCtrl4.set_focus } # evt_button(@m_buttonincrement) { increaseColour } # evt_button(@m_buttondecrement) { decreaseColour } end Wx::App.run do self.app_name = 'TestNotebook' frame = MainFrame.new frame.show end From penguinroad at gmail.com Sun Mar 21 21:48:40 2010 From: penguinroad at gmail.com (hendra kusuma) Date: Mon, 22 Mar 2010 08:48:40 +0700 Subject: [wxruby-users] Tab key traversal In-Reply-To: <1269129458.11325.8.camel@philip-laptop2> References: <1269129458.11325.8.camel@philip-laptop2> Message-ID: <26dadb3d1003211848x70a45b39pa62c0194292ee087@mail.gmail.com> Sorry, I don't really understand your question, but if I got it right, you expect that if you press tab key, then focus will move to next control to do so automatically, you simply have to put every control in a panel. I am personally doing it in this order : frame -> panel -> sizer -> control Hope this help On Sun, Mar 21, 2010 at 6:57 AM, Philip wrote: > Below is my attempt at changing the focus from one text control to the > next control after a person presses the tab key. The wxTE_PROCESS_TAB > style property has been selected for each of the controls. What > corrections do I have to make? Thanks. > > #!/usr/bin/env ruby > require 'rubygems' > require 'wx' > require 'tp1.rb' > > class MainFrame < TPSC > def on_init > m_scrolledwindow6.set_virtual_size(400, 100) > m_scrolledwindow6.set_scroll_rate(5, 5) > > wxEVT_CHAR(@m_textCtrl2) { m_textCtrl3.set_focus } > wxEVT_CHAR(@m_textCtrl3) { m_textCtrl4.set_focus } > wxEVT_CHAR(@m_textCtrl4) { m_textCtrl4.set_focus } > > # evt_button(@m_buttonincrement) { increaseColour } > # evt_button(@m_buttondecrement) { decreaseColour } > end > > > Wx::App.run do > self.app_name = 'TestNotebook' > frame = MainFrame.new > frame.show > end > > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > -- Suka linux? Kunjungi blog saya http://penguinroad.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From penguinroad at gmail.com Sun Mar 21 21:52:22 2010 From: penguinroad at gmail.com (hendra kusuma) Date: Mon, 22 Mar 2010 08:52:22 +0700 Subject: [wxruby-users] number for id Message-ID: <26dadb3d1003211852rb60a5fap3d25fc9a45e865c@mail.gmail.com> what number is safe to be used for Id? you see, most of time I use -1 for id which means id is generated automatically also there is some fixed id like id for about dialog, or else but sometimes we need the id number, like when we create shortcut for menu item So, what range of number is safe? I see the docs and some of them use number > 100 is that ok? what number is forbidden? Regards Hendra -- Suka linux? Kunjungi blog saya http://penguinroad.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From penguinroad at gmail.com Tue Mar 23 02:17:39 2010 From: penguinroad at gmail.com (hendra kusuma) Date: Tue, 23 Mar 2010 13:17:39 +0700 Subject: [wxruby-users] column as boolean with wxgridtablebase Message-ID: <26dadb3d1003222317j6feb62fbhaa0ea0732af77d1b@mail.gmail.com> Dear all, How do I set first column as boolean (shown as checkbox) if I prepare my data with wxgridtablebase? grid.set_col_format_bool does not work Regards Hendra -- Suka linux? Kunjungi blog saya http://penguinroad.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From alex at pressure.to Tue Mar 23 08:31:57 2010 From: alex at pressure.to (Alex Fenton) Date: Tue, 23 Mar 2010 12:31:57 +0000 Subject: [wxruby-users] column as boolean with wxgridtablebase In-Reply-To: <26dadb3d1003222317j6feb62fbhaa0ea0732af77d1b@mail.gmail.com> References: <26dadb3d1003222317j6feb62fbhaa0ea0732af77d1b@mail.gmail.com> Message-ID: <4BA8B4BD.9090605@pressure.to> Hi Hendra hendra kusuma wrote: > How do I set first column as boolean (shown as checkbox) > if I prepare my data with wxgridtablebase? > grid.set_col_format_bool does not work To use custom (eg boolean) renderers and editors with GridTableBase, you need to 1) Call Wx::Grid.register_data_type to associate a named 'type' of cell with a particular class of cell, eg my_grid.register_data_type('CheckBoxCell', Wx::GridCellBooleanRenderer, Wx::GridCellBooleanEditor) 2) Provide a get_type_name method for your GridTableBase class that returns what named 'type' to use for any given cell. This is demonstrated in the gridtablebase.rb sample, where STRING and NUMBER types are defined alex From lists at ruby-forum.com Tue Mar 23 11:21:45 2010 From: lists at ruby-forum.com (Carlo Bertini) Date: Tue, 23 Mar 2010 16:21:45 +0100 Subject: [wxruby-users] wxGrid merge cell Message-ID: <9bdbcb2ed99de92f0c03a334655097bc@ruby-forum.com> It's possible merge two or more cell ??? ex: -------------------------------------- | LABEL 1 | LABEL 2 | LABEL 3 | -------------------------------------- | VALUE CELL MERGE | ANOTHER | -------------------------------------- | | | | -------------------------------------- Many Thanks Carlo Bertini www.waydotnet.com -- Posted via http://www.ruby-forum.com/. From alex at pressure.to Tue Mar 23 11:51:25 2010 From: alex at pressure.to (Alex Fenton) Date: Tue, 23 Mar 2010 15:51:25 +0000 Subject: [wxruby-users] wxGrid merge cell In-Reply-To: <9bdbcb2ed99de92f0c03a334655097bc@ruby-forum.com> References: <9bdbcb2ed99de92f0c03a334655097bc@ruby-forum.com> Message-ID: <4BA8E37D.3090206@pressure.to> Carlo Bertini wrote: > It's possible merge two or more cell ??? > > ex: > > -------------------------------------- > | LABEL 1 | LABEL 2 | LABEL 3 | > -------------------------------------- > | VALUE CELL MERGE | ANOTHER | > -------------------------------------- > | | | | > -------------------------------------- > I don't believe so. You may be able to manipulate the appearance of the cells (eg using Wx::GridCellRenderer) to achieve a somewhat similar effect. alex From alex at pressure.to Tue Mar 23 16:30:42 2010 From: alex at pressure.to (Alex Fenton) Date: Tue, 23 Mar 2010 20:30:42 +0000 Subject: [wxruby-users] wxAuiTabCtrl is not supported In-Reply-To: <9f03bf687fba07bc0b97d17f604f6e6d@ruby-forum.com> References: <9f03bf687fba07bc0b97d17f604f6e6d@ruby-forum.com> Message-ID: <4BA924F2.2050104@pressure.to> Hi Sorry for the delay On 08/03/2010 14:35, Lui Kore wrote: > When calling AuiNotebook#children, I got an error: > Error wrapping object: class wxAuiTabCtrl is not supported in wxRuby > > > It's exactly the object I want to set_tool_tip on. > I don't know how to use swig, I tried the following: > > We'd be pleased to add this class in a future version .... > // include/wxAuiTabCtrl.h > #ifndef _wxAuiTabCtrl_h_ > #define _wxAuiTabCtrl_h_ > class wxAuiTabCtrl : public wxControl {}; > #endif > Here you probably need at least the constructor definition and public methods: { public: wxAuiTabCtrl(wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0); ~wxAuiTabCtrl(); #if wxABI_VERSION >= 20805 bool IsDragging() const { return m_is_dragging; } #endif }; Have a look at one of the other working classes - currently SWIG relies on having the constructor and method declarations here to wrap them. hth alex From alex at pressure.to Tue Mar 23 16:41:44 2010 From: alex at pressure.to (Alex Fenton) Date: Tue, 23 Mar 2010 20:41:44 +0000 Subject: [wxruby-users] number for id In-Reply-To: <26dadb3d1003211852rb60a5fap3d25fc9a45e865c@mail.gmail.com> References: <26dadb3d1003211852rb60a5fap3d25fc9a45e865c@mail.gmail.com> Message-ID: <4BA92788.8090104@pressure.to> On 22/03/2010 01:52, hendra kusuma wrote: > what number is safe to be used for Id? > you see, most of time I use -1 for id which means id is generated > automatically > also there is some fixed id like id for about dialog, or else > but sometimes we need the id number, like when we create shortcut for > menu item Any value < 65336 is permitted, in theory. Use Wx::ID_ANY / -1 wherever possible, but otherwise I think values > 3,000 are almost all open for user use. Some classes (eg Wx::Event) also have methods to give unreserved ids. alex From lists at ruby-forum.com Tue Mar 23 17:16:00 2010 From: lists at ruby-forum.com (Carlo Bertini) Date: Tue, 23 Mar 2010 22:16:00 +0100 Subject: [wxruby-users] wxGrid merge cell In-Reply-To: <4BA8E37D.3090206@pressure.to> References: <9bdbcb2ed99de92f0c03a334655097bc@ruby-forum.com> <4BA8E37D.3090206@pressure.to> Message-ID: Alex Fenton wrote: > Carlo Bertini wrote: >> -------------------------------------- >> > > I don't believe so. You may be able to manipulate the appearance of the > cells (eg using Wx::GridCellRenderer) to achieve a somewhat similar > effect. > > alex Many thanks Alex, but i've not idea how it work :D -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Tue Mar 23 18:42:39 2010 From: lists at ruby-forum.com (Brandon Ide) Date: Tue, 23 Mar 2010 23:42:39 +0100 Subject: [wxruby-users] static gem of wxruby 2.0.1 for OS X Snow Leopard In-Reply-To: <80d893c70911110552ye2c5e1ald5cec7b270ebd4b3@mail.gmail.com> References: <80d893c70911110552ye2c5e1ald5cec7b270ebd4b3@mail.gmail.com> Message-ID: Hello, I would really appreciate if you could send a copy to brandolo816 [at] gmail [dot] com . I had been looking for this for the past two months without success until I found your post. Thank you so much! Brandon Antti Hakala wrote: > Hello, > I have a static gem of wxruby 2.0.1 that works on OS X Snow Leopard, > if somebody is interested. > I've tried it only on my own comp. It's about 9MB. -- Posted via http://www.ruby-forum.com/. From penguinroad at gmail.com Tue Mar 23 22:01:30 2010 From: penguinroad at gmail.com (hendra kusuma) Date: Wed, 24 Mar 2010 09:01:30 +0700 Subject: [wxruby-users] column as boolean with wxgridtablebase In-Reply-To: <4BA8B4BD.9090605@pressure.to> References: <26dadb3d1003222317j6feb62fbhaa0ea0732af77d1b@mail.gmail.com> <4BA8B4BD.9090605@pressure.to> Message-ID: <26dadb3d1003231901v38674e15pd2d677ae3dfdcc35@mail.gmail.com> Thanks Alex. I still cannot get that working I dont get what you mean on point 2 here is my case I want to display data from database, I give resultset as parameter to create this gridtablebase object. First column is to display checkbox, while next column display data my class is about like this class Ds_anggota_grup < Wx::GridTableBase attr_reader :cols, :rows def initialize(rs) super() @data = [] @col_names = ["", "Grup", "Id"] begin rs.each do |row| each_row = [] each_row << 0 each_row << row[:grup] each_row << row[:id] @data << each_row end @rows = @data.size @cols = (@data[0]).size rescue @rows = 0 @cols = 0 end end def get_number_rows @rows end def get_number_cols @cols end def get_value(row, col) (@data[row])[col].to_s end def get_attr(row, col, attr_kind) Wx::GridCellAttr.new end def is_empty_cell(row, col) true end def get_col_label_value(col) @col_names[col] rescue "" end def set_value(row, col, val) #puts "Changing the value of cell (#{col}, #{row}) to '#{val}'" end end I assume you told me to add def get_value_as_bool(row, col) but I dont get what should I add there and if I add empty def it only give error What is to add there? Regards Hendra On Tue, Mar 23, 2010 at 7:31 PM, Alex Fenton wrote: > Hi Hendra > > > hendra kusuma wrote: > >> How do I set first column as boolean (shown as checkbox) >> if I prepare my data with wxgridtablebase? >> grid.set_col_format_bool does not work >> > > To use custom (eg boolean) renderers and editors with GridTableBase, you > need to > > 1) Call Wx::Grid.register_data_type to associate a named 'type' of cell > with a particular class of cell, eg > > my_grid.register_data_type('CheckBoxCell', Wx::GridCellBooleanRenderer, > Wx::GridCellBooleanEditor) > > 2) Provide a get_type_name method for your GridTableBase class that returns > what named 'type' to use for any given cell. > > This is demonstrated in the gridtablebase.rb sample, where STRING and > NUMBER types are defined > > alex > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > -- Suka linux? Kunjungi blog saya http://penguinroad.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From alex at pressure.to Wed Mar 24 02:56:20 2010 From: alex at pressure.to (Alex Fenton) Date: Wed, 24 Mar 2010 06:56:20 +0000 Subject: [wxruby-users] column as boolean with wxgridtablebase In-Reply-To: <26dadb3d1003231901v38674e15pd2d677ae3dfdcc35@mail.gmail.com> References: <26dadb3d1003222317j6feb62fbhaa0ea0732af77d1b@mail.gmail.com> <4BA8B4BD.9090605@pressure.to> <26dadb3d1003231901v38674e15pd2d677ae3dfdcc35@mail.gmail.com> Message-ID: <4BA9B794.2020208@pressure.to> On 24/03/2010 02:01, hendra kusuma wrote: > Thanks Alex. I still cannot get that working > I dont get what you mean on point 2 > > here is my case > I want to display data from database, I give resultset as parameter to > create this gridtablebase object. First column is to display checkbox, > while next column display data Your subclass of GridTableBase should provide a get_type_name method, which accepts (x,y) parameters and returns a string which corresponds to a named type defined by your Wx::Grid class. Eg, for your example: def get_type_name(x, y) if x == 0 'CHECKBOX' else 'STRING' end end As I say, this is shown in the sample, so have a look there for 'register_data_type' and 'get_type_name' best alex From alex at pressure.to Wed Mar 24 03:05:33 2010 From: alex at pressure.to (Alex Fenton) Date: Wed, 24 Mar 2010 07:05:33 +0000 Subject: [wxruby-users] static gem of wxruby 2.0.1 for OS X Snow Leopard In-Reply-To: References: <80d893c70911110552ye2c5e1ald5cec7b270ebd4b3@mail.gmail.com> Message-ID: <4BA9B9BD.6090602@pressure.to> Hi > Antti Hakala wrote: > >> I have a static gem of wxruby 2.0.1 that works on OS X Snow Leopard, >> if somebody is interested. >> I've tried it only on my own comp. It's about 9MB. >> I wonder if anyone who's built on Snow Leopard could let me know what platforms they built for. Have just got round to looking at this, and I'm having trouble building a universal wxWidgets that targets 10.4, 10.5 and 10.6. Is targetting 10.4 still important for users? cheers alex From lists at ruby-forum.com Wed Mar 24 13:58:53 2010 From: lists at ruby-forum.com (Nome Cognome) Date: Wed, 24 Mar 2010 18:58:53 +0100 Subject: [wxruby-users] [SOLVED] Re: wxRuby 2.0.1 on Ubuntu 9.10 In-Reply-To: <9d20a1091810cb9df5d6bedc9f84df50@ruby-forum.com> References: <61c507640909102017s3a23f278oc24a20af6f668d4d@mail.gmail.com> <41ce0aaadd809d434d29f44300972fc3@ruby-forum.com> <8c4086dba544d548bac2bd70c78b2f8d@ruby-forum.com> <9d20a1091810cb9df5d6bedc9f84df50@ruby-forum.com> Message-ID: <58473212f3b303cf92b033fc3e66b399@ruby-forum.com> Nome Cognome wrote: > This is a Google translation. > > My system is: > - Ubuntu 9.10, > - C++ compiler version g++-4.4.1-4ubuntu8, > - wx 2.8.10, > - Swig 1.3.38, > - Ruby 1.9.1p376, > - wxRuby 2.0.1. > > Everything's fine until the compilation and installation of SWIG as > indicated in the Guide > http://wxruby.rubyforge.org/wiki/wiki.pl?BuildingOnTopOfLinuxDistroPackages, > when compiling wxRuby 2.0.1, it ends with a large number of warnings and > errors, citing the end: > > src/GLCanvas.cpp:2943: warning: format not a string literal and no > format arguments > rake aborted! > Command failed with status (1): [g++ -c > -I/usr/lib/wx/include/gtk2-unicod...] > > (See full trace by running task with --trace) (This is a Google translation) I solved! :-D The problem exists only on Ubuntu 9.10 migrated from Ubuntu 9.04. 1) Following the instructions found at http://wxruby.rubyforge.org/wiki/wiki.pl?InstallingFromSource on Ubuntu 9.10 new installation (in a VirtualBox virtual machine), I created a new gem wxRuby version 2.0.1. 2) The same instructions also on Ubuntu 9.10 migrated, but before compiling wxruby, I took the new gem created in step 1) and install this with command: sudo gem install --local wxruby-ruby19-2.0.1-x86-linux.gem (I have installed only Ruby 1.9, otherwise command sudo gem1.9 install --local wxruby-ruby19-2.0.1-x86-linux.gem) Thanks to all, bye bye. -- Posted via http://www.ruby-forum.com/. From penguinroad at gmail.com Wed Mar 24 23:03:05 2010 From: penguinroad at gmail.com (hendra kusuma) Date: Thu, 25 Mar 2010 10:03:05 +0700 Subject: [wxruby-users] column as boolean with wxgridtablebase In-Reply-To: <4BA9B794.2020208@pressure.to> References: <26dadb3d1003222317j6feb62fbhaa0ea0732af77d1b@mail.gmail.com> <4BA8B4BD.9090605@pressure.to> <26dadb3d1003231901v38674e15pd2d677ae3dfdcc35@mail.gmail.com> <4BA9B794.2020208@pressure.to> Message-ID: <26dadb3d1003242003m2a09202amd89f65a48027ac02@mail.gmail.com> Your subclass of GridTableBase should provide a get_type_name method, which accepts (x,y) parameters and returns a string which corresponds to a named type defined by your Wx::Grid class. Eg, for your example: > > def get_type_name(x, y) > if x == 0 > 'CHECKBOX' > else > 'STRING' > end > end > > As I say, this is shown in the sample, so have a look there for > 'register_data_type' and 'get_type_name' > I cannot find the sample directory in new wxruby-2.0.1 download And my old wxruby-doc seems does not have def get_type_name example I work it somehow, after figure out how the mechanism working, thanks to your advise So, I add 2 register_data type for the grid @grid.register_data_type('CHECKBOX', Wx::GridCellBoolRenderer.new, Wx::GridCellBoolEditor.new) @grid.register_data_type('STRING', Wx::GridCellStringRenderer.new, Wx::GridCellTextEditor.new) and for grid table base, I follow your code it works after I browse the html directory and find that the name is Wx::GridCellBoolRenderer (your prev said GridCellBoolRenderer, it got me dizzy, but it helps really) Thank you As always, you are very helpful Regards Hendra -- Suka linux? Kunjungi blog saya http://penguinroad.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From alex at xlsol.com Thu Mar 25 09:47:13 2010 From: alex at xlsol.com (Alex Beeck) Date: Thu, 25 Mar 2010 10:47:13 -0300 Subject: [wxruby-users] wxmediactrl has no output on windows vista & seven References: <1DAD9FF4-EEE5-4948-BB4B-E62D749C9FC2@xlsol.com> Message-ID: <216EA688-7E87-4DB7-A175-DF58ED1C2C5E@xlsol.com> Hi, I've just tried installing ruby + wxruby from the following installers and in every single one, the wxruby sample media/mediactrl.rb doesn't do anything after loading an mp3 file under windows vista and windows seven. Funny enough, it works flawlessly under windows xp. Could anybody help? Thanks Ruby 1.9.1-p378 (RC2) Ruby 1.8.7-p249 (RC2) Ruby 1.8.6-p398 (RC2) Ruby 1.8.6-p26 (Final) mingw32-ruby-1.9.1-wxruby-2.0.1-setup.exe -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Sun Mar 28 23:26:20 2010 From: lists at ruby-forum.com (Gary Hasson) Date: Mon, 29 Mar 2010 05:26:20 +0200 Subject: [wxruby-users] wxRuby menu item checkbox Message-ID: <03cc6e28f31a1fa6963fffee429fd5a1@ruby-forum.com> I am using wxFormBuilder version 3.0.57 to produce an xrc file for my wxRuby GUI. I have used this successfully for some time now. However, I have been unable to get a checkbox menu item to function the way that I expect it to. That is, when I try to test if the box is checked, as described in the wxRuby doc's, it generates an error stating that .is_checked is not a method. I am doing all of this exactly the same way as I work with non-menu checkboxes. What is the problem here? Sample code: puts @my_menuitem_checkbox.is_checked Error message: undefined method `is_checked' for 120:Fixnum (NoMethodError) Note: the 120 in the error message is the ID for @my_menuitem_checkbox. Platform: Ubuntu 9.04 (32bit), Ruby 1.8.7, everything is up to date. -- Posted via http://www.ruby-forum.com/. From penguinroad at gmail.com Mon Mar 29 04:40:24 2010 From: penguinroad at gmail.com (hendra kusuma) Date: Mon, 29 Mar 2010 15:40:24 +0700 Subject: [wxruby-users] wxRuby menu item checkbox In-Reply-To: <03cc6e28f31a1fa6963fffee429fd5a1@ruby-forum.com> References: <03cc6e28f31a1fa6963fffee429fd5a1@ruby-forum.com> Message-ID: <26dadb3d1003290140s759562d1kea27d47ed8a1b493@mail.gmail.com> My code runs just ok for test, I make my form like this I don't know how you make yours but I hope this help require 'rubygems' require 'wx' class Coba_b < Wx::Frame def initialize(parent=nil) super parent, -1, "Coba", DEFAULT_POSITION, Size.new(600,400), DEFAULT_FRAME_STYLE @menu_bar_101 = MenuBar.new(0) @menu_coba = Menu.new("&Coba", 0) @menu_check = MenuItem.new(@menu_coba, 103, "coba check", "", ITEM_CHECK) @menu_coba.append_item(@menu_check) evt_menu(103) { |event| menu_check_call(event) } @menu_bar_101.append(@menu_coba, "&Coba") self.set_menu_bar @menu_bar_101 @panel_104 = Panel.new(self, -1) @btn_is_checked = Button.new(@panel_104, -1, "checked", DEFAULT_POSITION, DEFAULT_SIZE, 0, DEFAULT_VALIDATOR ) evt_button(@btn_is_checked) { |event| btn_is_checked_click(event) } evt_close{ |event| on_close(event) } on_load() end def btn_is_checked_click(event) puts "checked" if @menu_check.is_checked end end On Mon, Mar 29, 2010 at 10:26 AM, Gary Hasson wrote: > I am using wxFormBuilder version 3.0.57 to produce an xrc file for my > wxRuby GUI. > I have used this successfully for some time now. > However, I have been unable to get a checkbox menu item to function the > way that I expect it to. That is, when I try to test if the box is > checked, as described in the wxRuby doc's, it generates an error stating > that .is_checked is not a method. > > I am doing all of this exactly the same way as I work with non-menu > checkboxes. > > What is the problem here? > > Sample code: > > puts @my_menuitem_checkbox.is_checked > > Error message: > > undefined method `is_checked' for 120:Fixnum (NoMethodError) > > Note: the 120 in the error message is the ID for @my_menuitem_checkbox. > > Platform: Ubuntu 9.04 (32bit), Ruby 1.8.7, everything is up to date. > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > -- Suka linux? Kunjungi blog saya http://penguinroad.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From pierpaolo.giordani at unipd.it Mon Mar 29 06:31:51 2010 From: pierpaolo.giordani at unipd.it (Pierpaolo Giordani) Date: Mon, 29 Mar 2010 12:31:51 +0200 Subject: [wxruby-users] Segmentation fault In-Reply-To: <26dadb3d1003290140s759562d1kea27d47ed8a1b493@mail.gmail.com> References: <03cc6e28f31a1fa6963fffee429fd5a1@ruby-forum.com> <26dadb3d1003290140s759562d1kea27d47ed8a1b493@mail.gmail.com> Message-ID: <1269858711.2424.16.camel@localhost> Hi list! I worked with wxWidgets in C++, and now I'd like to play with wxruby. But, with a minimal app like this... #!/usr/bin/ruby require "rubygems" require "wx" include Wx class Minima < App def on_init Frame.new(nil, -1, "Applicazione minima").show() end end Minima.new.main_loop ... I get "Segmentation fault": /usr/lib/ruby/gems/1.8/gems/wxruby-2.0.1-x86-linux/lib/wx/keyword_ctors.rb:168: [BUG] Segmentation fault ruby 1.8.5 (2006-08-25) [i386-linux] Running it with gdb: Program received signal SIGSEGV, Segmentation fault. 0x002e11e8 in wcslen () from /lib/libc.so.6 My sistem is: Linux CentOS 5.4 updated Ruby 1.8.5 wxGTK, wxBase and wxGTK-gl installed from distro (2.8.9-2.el5) Thanks for help! -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 1639 bytes Desc: not available URL: From mario at ruby-im.net Mon Mar 29 17:50:11 2010 From: mario at ruby-im.net (Mario Steele) Date: Mon, 29 Mar 2010 17:50:11 -0400 Subject: [wxruby-users] Segmentation fault In-Reply-To: <1269858711.2424.16.camel@localhost> References: <03cc6e28f31a1fa6963fffee429fd5a1@ruby-forum.com> <26dadb3d1003290140s759562d1kea27d47ed8a1b493@mail.gmail.com> <1269858711.2424.16.camel@localhost> Message-ID: Is this a Gem install of wxRuby on your OS, or are you compiling from source? On Mon, Mar 29, 2010 at 6:31 AM, Pierpaolo Giordani < pierpaolo.giordani at unipd.it> wrote: > Hi list! > I worked with wxWidgets in C++, and now I'd like to play with wxruby. > But, with a minimal app like this... > > #!/usr/bin/ruby > require "rubygems" > require "wx" > include Wx > class Minima < App > def on_init > Frame.new(nil, -1, "Applicazione minima").show() > end > end > Minima.new.main_loop > > ... I get "Segmentation fault": > /usr/lib/ruby/gems/1.8/gems/wxruby-2.0.1-x86-linux/lib/wx/keyword_ctors.rb:168: > [BUG] Segmentation fault > ruby 1.8.5 (2006-08-25) [i386-linux] > > Running it with gdb: > Program received signal SIGSEGV, Segmentation fault. > 0x002e11e8 in wcslen () from /lib/libc.so.6 > > My sistem is: > Linux CentOS 5.4 updated > Ruby 1.8.5 > wxGTK, wxBase and wxGTK-gl installed from distro (2.8.9-2.el5) > > Thanks for help! > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > -- Mario Steele Lieutenant 3 - Geo 99 XO - STO IFT Fleet Chief Engineer - Second Life http://www.iftcommand.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mario at ruby-im.net Mon Mar 29 17:55:50 2010 From: mario at ruby-im.net (Mario Steele) Date: Mon, 29 Mar 2010 17:55:50 -0400 Subject: [wxruby-users] Segmentation fault In-Reply-To: References: <03cc6e28f31a1fa6963fffee429fd5a1@ruby-forum.com> <26dadb3d1003290140s759562d1kea27d47ed8a1b493@mail.gmail.com> <1269858711.2424.16.camel@localhost> Message-ID: Actually, Never mind, just re-read the error message, and your specs. Three things of note here. First, the Gem that you have installed is built on Ubuntu, and may have problems on Red Hat Linux and Derivatives. Second, wxRuby is built against Ruby 1.8.7, and there may be incompatibilities between 1.8.5 in the C back-end, compared to 1.8.7. And the final note here, is that it seems you are familiar with the whole compiling process with C++, and wxWidgets. Take a look at our wiki, specifically under "How to build wxRuby", for instructions on how to build wxWidgets, and wxRuby. My best suggestion for this kind of situation, is that if CentOS' repos do not have the latest version of Ruby available, then I would compile Ruby 1.8.7 from source, and install that. Then ensure that wxWidgets is at least 2.8.10. If it isn't, then grab wxWidgets, and compile that from source, following the instructions on our Wiki, then finally build wxRuby. hth, Mario On Mon, Mar 29, 2010 at 5:50 PM, Mario Steele wrote: > Is this a Gem install of wxRuby on your OS, or are you compiling from > source? > > On Mon, Mar 29, 2010 at 6:31 AM, Pierpaolo Giordani < > pierpaolo.giordani at unipd.it> wrote: > >> Hi list! >> I worked with wxWidgets in C++, and now I'd like to play with wxruby. >> But, with a minimal app like this... >> >> #!/usr/bin/ruby >> require "rubygems" >> require "wx" >> include Wx >> class Minima < App >> def on_init >> Frame.new(nil, -1, "Applicazione minima").show() >> end >> end >> Minima.new.main_loop >> >> ... I get "Segmentation fault": >> /usr/lib/ruby/gems/1.8/gems/wxruby-2.0.1-x86-linux/lib/wx/keyword_ctors.rb:168: >> [BUG] Segmentation fault >> ruby 1.8.5 (2006-08-25) [i386-linux] >> >> Running it with gdb: >> Program received signal SIGSEGV, Segmentation fault. >> 0x002e11e8 in wcslen () from /lib/libc.so.6 >> >> My sistem is: >> Linux CentOS 5.4 updated >> Ruby 1.8.5 >> wxGTK, wxBase and wxGTK-gl installed from distro (2.8.9-2.el5) >> >> Thanks for help! >> >> _______________________________________________ >> wxruby-users mailing list >> wxruby-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/wxruby-users >> > > > > -- > Mario Steele > Lieutenant 3 - Geo 99 > XO - STO IFT Fleet > Chief Engineer - Second Life > http://www.iftcommand.com > -- Mario Steele Lieutenant 3 - Geo 99 XO - STO IFT Fleet Chief Engineer - Second Life http://www.iftcommand.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From pierpaolo.giordani at unipd.it Tue Mar 30 10:00:24 2010 From: pierpaolo.giordani at unipd.it (Pierpaolo Giordani) Date: Tue, 30 Mar 2010 16:00:24 +0200 Subject: [wxruby-users] Segmentation fault In-Reply-To: References: <03cc6e28f31a1fa6963fffee429fd5a1@ruby-forum.com> <26dadb3d1003290140s759562d1kea27d47ed8a1b493@mail.gmail.com> <1269858711.2424.16.camel@localhost> Message-ID: <1269957624.2095.61.camel@localhost> I don't really need wxruby on CentOS, because the final destination is fedora 12 x86_64. So I compiled wxWidgets with the suggested options (and the patch for recent GTK+ versions) on fedora. All ok. Then I downgraded swig to 1.3.34 and compiled wxruby and the contrib add. All seems ok - no errors. Rebuild of ruby is very hard (you need a patch for openssl 1.0, but I found half a dozen of patches and I don't know the rigth one) - I'll try the pre-build ruby 1.8.6 (2009-08-04 patchlevel 383), for now. When I launch my miniml app this is the output: /usr/lib64/ruby/site_ruby/1.8/x86_64-linux/wxruby2.so: libwx_gtk2u_stc-2.8.so.0: cannot open shared object file: No such file or directory - /usr/lib64/ruby/site_ruby/1.8/x86_64-linux/wxruby2.so (LoadError) from /usr/lib/ruby/site_ruby/1.8/wx.rb:12 from ./minima.rb:3:in `require' from ./minima.rb:3 but there is a /usr/lib64/ruby/site_ruby/1.8/x86_64-linux/wxruby2.so file! (55M , read and execute permissions for all). I'm confused. Pierpaolo Giordani Il giorno lun, 29/03/2010 alle 17.55 -0400, Mario Steele ha scritto: > Actually, > > > Never mind, just re-read the error message, and your specs. > > > Three things of note here. First, the Gem that you have installed is > built on Ubuntu, and may have problems on Red Hat Linux > and Derivatives. Second, wxRuby is built against Ruby 1.8.7, and > there may be incompatibilities between 1.8.5 in the C back-end, > compared to 1.8.7. And the final note here, is that it seems you are > familiar with the whole compiling process with C++, and wxWidgets. > Take a look at our wiki, specifically under "How to build wxRuby", > for instructions on how to build wxWidgets, and wxRuby. > > > My best suggestion for this kind of situation, is that if CentOS' > repos do not have the latest version of Ruby available, then I would > compile Ruby 1.8.7 from source, and install that. Then ensure that > wxWidgets is at least 2.8.10. If it isn't, then grab wxWidgets, and > compile that from source, following the instructions on our Wiki, then > finally build wxRuby. > > > hth, > > > Mario > > On Mon, Mar 29, 2010 at 5:50 PM, Mario Steele > wrote: > Is this a Gem install of wxRuby on your OS, or are you > compiling from source? > > > On Mon, Mar 29, 2010 at 6:31 AM, Pierpaolo Giordani > wrote: > > > Hi list! > I worked with wxWidgets in C++, and now I'd like to > play with wxruby. > But, with a minimal app like this... > > #!/usr/bin/ruby > require "rubygems" > require "wx" > include Wx > class Minima < App > def on_init > Frame.new(nil, -1, "Applicazione > minima").show() > end > end > Minima.new.main_loop > > ... I get "Segmentation fault": > /usr/lib/ruby/gems/1.8/gems/wxruby-2.0.1-x86-linux/lib/wx/keyword_ctors.rb:168: [BUG] Segmentation fault > ruby 1.8.5 (2006-08-25) [i386-linux] > > Running it with gdb: > Program received signal SIGSEGV, Segmentation fault. > 0x002e11e8 in wcslen () from /lib/libc.so.6 > > My sistem is: > Linux CentOS 5.4 updated > Ruby 1.8.5 > wxGTK, wxBase and wxGTK-gl installed from distro > (2.8.9-2.el5) > > Thanks for help! > > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > > > > -- > Mario Steele > Lieutenant 3 - Geo 99 > XO - STO IFT Fleet > Chief Engineer - Second Life > http://www.iftcommand.com > > > > -- > Mario Steele > Lieutenant 3 - Geo 99 > XO - STO IFT Fleet > Chief Engineer - Second Life > http://www.iftcommand.com > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 1639 bytes Desc: not available URL: From pierpaolo.giordani at unipd.it Tue Mar 30 10:24:36 2010 From: pierpaolo.giordani at unipd.it (Pierpaolo Giordani) Date: Tue, 30 Mar 2010 16:24:36 +0200 Subject: [wxruby-users] Segmentation fault In-Reply-To: <1269957624.2095.61.camel@localhost> References: <03cc6e28f31a1fa6963fffee429fd5a1@ruby-forum.com> <26dadb3d1003290140s759562d1kea27d47ed8a1b493@mail.gmail.com> <1269858711.2424.16.camel@localhost> <1269957624.2095.61.camel@localhost> Message-ID: <1269959076.2095.65.camel@localhost> I don't have libwx_gtk2u_stc-2.8.so.0! Instead I have /usr/local/lib/libwx_gtk2u_stc-2.8.a Pierpaolo Giordani Il giorno mar, 30/03/2010 alle 16.00 +0200, Pierpaolo Giordani ha scritto: > I don't really need wxruby on CentOS, because the final destination is > fedora 12 x86_64. > So I compiled wxWidgets with the suggested options (and the patch for > recent GTK+ versions) on fedora. All ok. > Then I downgraded swig to 1.3.34 and compiled wxruby and the contrib > add. All seems ok - no errors. > Rebuild of ruby is very hard (you need a patch for openssl 1.0, but I > found half a dozen of patches and I don't know the rigth one) - I'll try > the pre-build ruby 1.8.6 (2009-08-04 patchlevel 383), for now. > When I launch my miniml app this is the output: > > /usr/lib64/ruby/site_ruby/1.8/x86_64-linux/wxruby2.so: > libwx_gtk2u_stc-2.8.so.0: cannot open shared object file: No such file > or directory - /usr/lib64/ruby/site_ruby/1.8/x86_64-linux/wxruby2.so > (LoadError) > from /usr/lib/ruby/site_ruby/1.8/wx.rb:12 > from ./minima.rb:3:in `require' > from ./minima.rb:3 > > but there is a /usr/lib64/ruby/site_ruby/1.8/x86_64-linux/wxruby2.so > file! (55M , read and execute permissions for all). > I'm confused. > > Pierpaolo Giordani > > Il giorno lun, 29/03/2010 alle 17.55 -0400, Mario Steele ha scritto: > > Actually, > > > > > > Never mind, just re-read the error message, and your specs. > > > > > > Three things of note here. First, the Gem that you have installed is > > built on Ubuntu, and may have problems on Red Hat Linux > > and Derivatives. Second, wxRuby is built against Ruby 1.8.7, and > > there may be incompatibilities between 1.8.5 in the C back-end, > > compared to 1.8.7. And the final note here, is that it seems you are > > familiar with the whole compiling process with C++, and wxWidgets. > > Take a look at our wiki, specifically under "How to build wxRuby", > > for instructions on how to build wxWidgets, and wxRuby. > > > > > > My best suggestion for this kind of situation, is that if CentOS' > > repos do not have the latest version of Ruby available, then I would > > compile Ruby 1.8.7 from source, and install that. Then ensure that > > wxWidgets is at least 2.8.10. If it isn't, then grab wxWidgets, and > > compile that from source, following the instructions on our Wiki, then > > finally build wxRuby. > > > > > > hth, > > > > > > Mario > > > > On Mon, Mar 29, 2010 at 5:50 PM, Mario Steele > > wrote: > > Is this a Gem install of wxRuby on your OS, or are you > > compiling from source? > > > > > > On Mon, Mar 29, 2010 at 6:31 AM, Pierpaolo Giordani > > wrote: > > > > > > Hi list! > > I worked with wxWidgets in C++, and now I'd like to > > play with wxruby. > > But, with a minimal app like this... > > > > #!/usr/bin/ruby > > require "rubygems" > > require "wx" > > include Wx > > class Minima < App > > def on_init > > Frame.new(nil, -1, "Applicazione > > minima").show() > > end > > end > > Minima.new.main_loop > > > > ... I get "Segmentation fault": > > /usr/lib/ruby/gems/1.8/gems/wxruby-2.0.1-x86-linux/lib/wx/keyword_ctors.rb:168: [BUG] Segmentation fault > > ruby 1.8.5 (2006-08-25) [i386-linux] > > > > Running it with gdb: > > Program received signal SIGSEGV, Segmentation fault. > > 0x002e11e8 in wcslen () from /lib/libc.so.6 > > > > My sistem is: > > Linux CentOS 5.4 updated > > Ruby 1.8.5 > > wxGTK, wxBase and wxGTK-gl installed from distro > > (2.8.9-2.el5) > > > > Thanks for help! > > > > > > _______________________________________________ > > wxruby-users mailing list > > wxruby-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/wxruby-users > > > > > > > > -- > > Mario Steele > > Lieutenant 3 - Geo 99 > > XO - STO IFT Fleet > > Chief Engineer - Second Life > > http://www.iftcommand.com > > > > > > > > -- > > Mario Steele > > Lieutenant 3 - Geo 99 > > XO - STO IFT Fleet > > Chief Engineer - Second Life > > http://www.iftcommand.com > > > > _______________________________________________ > > wxruby-users mailing list > > wxruby-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/wxruby-users > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 1639 bytes Desc: not available URL: From lists at ruby-forum.com Tue Mar 30 13:03:47 2010 From: lists at ruby-forum.com (tuti plain) Date: Tue, 30 Mar 2010 19:03:47 +0200 Subject: [wxruby-users] My first wxRuby app doesn't work, please help! Message-ID: <915bb26bf7eebbf31db68da1939dfc7f@ruby-forum.com> Hi, I'm trying to learn wxRuby. This is program: require 'wx' include Wx class MyFrame < Frame def initialize super(nil,-1,"Mi primera ventana Wx!") @panel = Panel.new(self) @lbl1 = StaticText.new(@panel,-1,"Label") @text1 = TextCtrl.new(@panel,-1,"Text Value") @combo =ComboBox.new(@panel,-1,"Combo Text") @button =Button.new(@panel,-1,"Submit") #layout @sizer = BoxSizer.new(VERTICAL) @panel.set_sizer(@sizer) evt_button(@my_button.get_id()) { |event| my_button_click(event)} @sizer.add(@lbl1,0, GROW|ALL,2) @sizer.add(@text1,0, GROW|ALL,2) @sizer.add(@combo,0, GROW|ALL,2) @sizer.add(@button,0, GROW|ALL,2) show() end def my_button_click(event) #a??dir codigo puts "Presionado" end end class Myapp < App def on_init MyFrame.new end end a= Myapp.new a.main_loop() When I run this, I get an illegal operation! I am using wxRuby 2.0.1, Ruby 1.8 (one click installer version) and windows xp. Thanks for any info. -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Tue Mar 30 13:14:55 2010 From: lists at ruby-forum.com (tuti plain) Date: Tue, 30 Mar 2010 19:14:55 +0200 Subject: [wxruby-users] My first wxRuby app doesn't work, please help! In-Reply-To: <915bb26bf7eebbf31db68da1939dfc7f@ruby-forum.com> References: <915bb26bf7eebbf31db68da1939dfc7f@ruby-forum.com> Message-ID: <61d939bf1daebea5a0b97410b60a0b56@ruby-forum.com> Never mind. My constructors were all wrong. -- Posted via http://www.ruby-forum.com/. From mario at ruby-im.net Tue Mar 30 13:54:13 2010 From: mario at ruby-im.net (Mario Steele) Date: Tue, 30 Mar 2010 13:54:13 -0400 Subject: [wxruby-users] Segmentation fault In-Reply-To: <1269959076.2095.65.camel@localhost> References: <03cc6e28f31a1fa6963fffee429fd5a1@ruby-forum.com> <26dadb3d1003290140s759562d1kea27d47ed8a1b493@mail.gmail.com> <1269858711.2424.16.camel@localhost> <1269957624.2095.61.camel@localhost> <1269959076.2095.65.camel@localhost> Message-ID: Make sure that you go into your contrib folder, as described in the Wiki, to compile STC into a Shared Library. Make sure to run make, and make install, that will install the libwx_gtk2u_stc.so library. The .a library is just the assembly for the compiled code, to be statically linked into any executable, or library that is compiled against it. On Tue, Mar 30, 2010 at 10:24 AM, Pierpaolo Giordani < pierpaolo.giordani at unipd.it> wrote: > I don't have libwx_gtk2u_stc-2.8.so.0! Instead I > have /usr/local/lib/libwx_gtk2u_stc-2.8.a > > Pierpaolo Giordani > > > Il giorno mar, 30/03/2010 alle 16.00 +0200, Pierpaolo Giordani ha > scritto: > > I don't really need wxruby on CentOS, because the final destination is > > fedora 12 x86_64. > > So I compiled wxWidgets with the suggested options (and the patch for > > recent GTK+ versions) on fedora. All ok. > > Then I downgraded swig to 1.3.34 and compiled wxruby and the contrib > > add. All seems ok - no errors. > > Rebuild of ruby is very hard (you need a patch for openssl 1.0, but I > > found half a dozen of patches and I don't know the rigth one) - I'll try > > the pre-build ruby 1.8.6 (2009-08-04 patchlevel 383), for now. > > When I launch my miniml app this is the output: > > > > /usr/lib64/ruby/site_ruby/1.8/x86_64-linux/wxruby2.so: > > libwx_gtk2u_stc-2.8.so.0: cannot open shared object file: No such file > > or directory - /usr/lib64/ruby/site_ruby/1.8/x86_64-linux/wxruby2.so > > (LoadError) > > from /usr/lib/ruby/site_ruby/1.8/wx.rb:12 > > from ./minima.rb:3:in `require' > > from ./minima.rb:3 > > > > but there is a /usr/lib64/ruby/site_ruby/1.8/x86_64-linux/wxruby2.so > > file! (55M , read and execute permissions for all). > > I'm confused. > > > > Pierpaolo Giordani > > > > Il giorno lun, 29/03/2010 alle 17.55 -0400, Mario Steele ha scritto: > > > Actually, > > > > > > > > > Never mind, just re-read the error message, and your specs. > > > > > > > > > Three things of note here. First, the Gem that you have installed is > > > built on Ubuntu, and may have problems on Red Hat Linux > > > and Derivatives. Second, wxRuby is built against Ruby 1.8.7, and > > > there may be incompatibilities between 1.8.5 in the C back-end, > > > compared to 1.8.7. And the final note here, is that it seems you are > > > familiar with the whole compiling process with C++, and wxWidgets. > > > Take a look at our wiki, specifically under "How to build wxRuby", > > > for instructions on how to build wxWidgets, and wxRuby. > > > > > > > > > My best suggestion for this kind of situation, is that if CentOS' > > > repos do not have the latest version of Ruby available, then I would > > > compile Ruby 1.8.7 from source, and install that. Then ensure that > > > wxWidgets is at least 2.8.10. If it isn't, then grab wxWidgets, and > > > compile that from source, following the instructions on our Wiki, then > > > finally build wxRuby. > > > > > > > > > hth, > > > > > > > > > Mario > > > > > > On Mon, Mar 29, 2010 at 5:50 PM, Mario Steele > > > wrote: > > > Is this a Gem install of wxRuby on your OS, or are you > > > compiling from source? > > > > > > > > > On Mon, Mar 29, 2010 at 6:31 AM, Pierpaolo Giordani > > > wrote: > > > > > > > > > Hi list! > > > I worked with wxWidgets in C++, and now I'd like to > > > play with wxruby. > > > But, with a minimal app like this... > > > > > > #!/usr/bin/ruby > > > require "rubygems" > > > require "wx" > > > include Wx > > > class Minima < App > > > def on_init > > > Frame.new(nil, -1, "Applicazione > > > minima").show() > > > end > > > end > > > Minima.new.main_loop > > > > > > ... I get "Segmentation fault": > > > > /usr/lib/ruby/gems/1.8/gems/wxruby-2.0.1-x86-linux/lib/wx/keyword_ctors.rb:168: > [BUG] Segmentation fault > > > ruby 1.8.5 (2006-08-25) [i386-linux] > > > > > > Running it with gdb: > > > Program received signal SIGSEGV, Segmentation fault. > > > 0x002e11e8 in wcslen () from /lib/libc.so.6 > > > > > > My sistem is: > > > Linux CentOS 5.4 updated > > > Ruby 1.8.5 > > > wxGTK, wxBase and wxGTK-gl installed from distro > > > (2.8.9-2.el5) > > > > > > Thanks for help! > > > > > > > > > _______________________________________________ > > > wxruby-users mailing list > > > wxruby-users at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/wxruby-users > > > > > > > > > > > > -- > > > Mario Steele > > > Lieutenant 3 - Geo 99 > > > XO - STO IFT Fleet > > > Chief Engineer - Second Life > > > http://www.iftcommand.com > > > > > > > > > > > > -- > > > Mario Steele > > > Lieutenant 3 - Geo 99 > > > XO - STO IFT Fleet > > > Chief Engineer - Second Life > > > http://www.iftcommand.com > > > > > > _______________________________________________ > > > wxruby-users mailing list > > > wxruby-users at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/wxruby-users > > > > _______________________________________________ > > wxruby-users mailing list > > wxruby-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/wxruby-users > > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > -- Mario Steele Lieutenant 3 - Geo 99 XO - STO IFT Fleet Chief Engineer - Second Life http://www.iftcommand.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Tue Mar 30 17:11:40 2010 From: lists at ruby-forum.com (Gary Hasson) Date: Tue, 30 Mar 2010 23:11:40 +0200 Subject: [wxruby-users] wxRuby menu item checkbox In-Reply-To: References: <03cc6e28f31a1fa6963fffee429fd5a1@ruby-forum.com> <26dadb3d1003290140s759562d1kea27d47ed8a1b493@mail.gmail.com> <1269858711.2424.16.camel@localhost> <1269957624.2095.61.camel@localhost> <1269959076.2095.65.camel@localhost> Message-ID: <8ac8aa45c4294d503b1e7db247b08326@ruby-forum.com> Dear Pierpaolo Giordani and Mario Steele: I posted this topic: "wxRuby menu item checkbox" because I needed help with a specific wxRuby - wxFormBuilder problem. The Segmentation fault issue posted by Pierpaolo Giordani (pierp) on 29.03.2010 17:50 should never have been placed inside the "wxRuby menu item checkbox" topic, since it is not related. But the two of you have continued to use the "wxRuby menu item checkbox" topic for addressing an unrelated topic, which has resulted in my not getting any suitable answers to the topic that I posted. I would appreciate your moving your issue to its own topic. Thanks, Gary -- Posted via http://www.ruby-forum.com/. From pierpaolo.giordani at unipd.it Wed Mar 31 05:35:46 2010 From: pierpaolo.giordani at unipd.it (Pierpaolo Giordani) Date: Wed, 31 Mar 2010 11:35:46 +0200 Subject: [wxruby-users] Segmentation fault In-Reply-To: References: <03cc6e28f31a1fa6963fffee429fd5a1@ruby-forum.com> <26dadb3d1003290140s759562d1kea27d47ed8a1b493@mail.gmail.com> <1269858711.2424.16.camel@localhost> <1269957624.2095.61.camel@localhost> <1269959076.2095.65.camel@localhost> Message-ID: <1270028146.2127.16.camel@localhost> Solved! Just for fedora 12-64bit users, this is the roadmap: yum erase wxGTK wxBase yum install gstreamer-devel gstreamer-plugins-base-devel ruby-gstreamer-devel ruby-gconf2-devel mesa-libGL-devel mesa-libGLU-devel ruby-gconf2-devel (not sure if they are all useful) Download wxWidgets, extract in a folder, and copy the patch for GTK+ Create a build-wxruby folder inside the wxWidgets folder In build-wxruby, give this command: ../configure --disable-shared --with-gtk --enable-monolithic --enable-unicode --disable-debug --enable-catch_segvs --enable-graphics_ctx --enable-mediactrl --with-opengl --with-libjpeg=builtin --with-libpng=builtin --with-libtiff=builtin --with-zlib=builtin --with-expat=builtin --enable-gui --enable-xrc --enable-mdi --enable-gif --enable-pcx --enable-iff --enable-pnm --enable-xpm CFLAGS=-fPIC CXXFLAGS=-fPIC LDFLAGS=-fPIC then make and make install (be root) move to ....contrib/src/stc, then make and make install yum erase swig Download and install swig 1.3.34 Download wxruby, then rake and rake install thanks Mario! Il giorno mar, 30/03/2010 alle 13.54 -0400, Mario Steele ha scritto: > Make sure that you go into your contrib folder, as described in the > Wiki, to compile STC into a Shared Library. Make sure to run make, > and make install, that will install the libwx_gtk2u_stc.so library. > The .a library is just the assembly for the compiled code, to be > statically linked into any executable, or library that is compiled > against it. > > On Tue, Mar 30, 2010 at 10:24 AM, Pierpaolo Giordani > wrote: > I don't have libwx_gtk2u_stc-2.8.so.0! Instead I > have /usr/local/lib/libwx_gtk2u_stc-2.8.a > > Pierpaolo Giordani > > > Il giorno mar, 30/03/2010 alle 16.00 +0200, Pierpaolo Giordani > ha > scritto: > > > I don't really need wxruby on CentOS, because the final > destination is > > fedora 12 x86_64. > > So I compiled wxWidgets with the suggested options (and the > patch for > > recent GTK+ versions) on fedora. All ok. > > Then I downgraded swig to 1.3.34 and compiled wxruby and the > contrib > > add. All seems ok - no errors. > > Rebuild of ruby is very hard (you need a patch for openssl > 1.0, but I > > found half a dozen of patches and I don't know the rigth > one) - I'll try > > the pre-build ruby 1.8.6 (2009-08-04 patchlevel 383), for > now. > > When I launch my miniml app this is the output: > > > > /usr/lib64/ruby/site_ruby/1.8/x86_64-linux/wxruby2.so: > > libwx_gtk2u_stc-2.8.so.0: cannot open shared object file: No > such file > > or directory > - /usr/lib64/ruby/site_ruby/1.8/x86_64-linux/wxruby2.so > > (LoadError) > > from /usr/lib/ruby/site_ruby/1.8/wx.rb:12 > > from ./minima.rb:3:in `require' > > from ./minima.rb:3 > > > > but there is > a /usr/lib64/ruby/site_ruby/1.8/x86_64-linux/wxruby2.so > > file! (55M , read and execute permissions for all). > > I'm confused. > > > > Pierpaolo Giordani > > > > Il giorno lun, 29/03/2010 alle 17.55 -0400, Mario Steele ha > scritto: > > > Actually, > > > > > > > > > Never mind, just re-read the error message, and your > specs. > > > > > > > > > Three things of note here. First, the Gem that you have > installed is > > > built on Ubuntu, and may have problems on Red Hat Linux > > > and Derivatives. Second, wxRuby is built against Ruby > 1.8.7, and > > > there may be incompatibilities between 1.8.5 in the C > back-end, > > > compared to 1.8.7. And the final note here, is that it > seems you are > > > familiar with the whole compiling process with C++, and > wxWidgets. > > > Take a look at our wiki, specifically under "How to build > wxRuby", > > > for instructions on how to build wxWidgets, and wxRuby. > > > > > > > > > My best suggestion for this kind of situation, is that if > CentOS' > > > repos do not have the latest version of Ruby available, > then I would > > > compile Ruby 1.8.7 from source, and install that. Then > ensure that > > > wxWidgets is at least 2.8.10. If it isn't, then grab > wxWidgets, and > > > compile that from source, following the instructions on > our Wiki, then > > > finally build wxRuby. > > > > > > > > > hth, > > > > > > > > > Mario > > > > > > On Mon, Mar 29, 2010 at 5:50 PM, Mario Steele > > > > wrote: > > > Is this a Gem install of wxRuby on your OS, or are > you > > > compiling from source? > > > > > > > > > On Mon, Mar 29, 2010 at 6:31 AM, Pierpaolo > Giordani > > > wrote: > > > > > > > > > Hi list! > > > I worked with wxWidgets in C++, and now > I'd like to > > > play with wxruby. > > > But, with a minimal app like this... > > > > > > #!/usr/bin/ruby > > > require "rubygems" > > > require "wx" > > > include Wx > > > class Minima < App > > > def on_init > > > Frame.new(nil, -1, "Applicazione > > > minima").show() > > > end > > > end > > > Minima.new.main_loop > > > > > > ... I get "Segmentation fault": > > > > /usr/lib/ruby/gems/1.8/gems/wxruby-2.0.1-x86-linux/lib/wx/keyword_ctors.rb:168: [BUG] Segmentation fault > > > ruby 1.8.5 (2006-08-25) [i386-linux] > > > > > > Running it with gdb: > > > Program received signal SIGSEGV, > Segmentation fault. > > > 0x002e11e8 in wcslen () > from /lib/libc.so.6 > > > > > > My sistem is: > > > Linux CentOS 5.4 updated > > > Ruby 1.8.5 > > > wxGTK, wxBase and wxGTK-gl installed from > distro > > > (2.8.9-2.el5) > > > > > > Thanks for help! > > > > > > > > > > _______________________________________________ > > > wxruby-users mailing list > > > wxruby-users at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/wxruby-users > > > > > > > > > > > > -- > > > Mario Steele > > > Lieutenant 3 - Geo 99 > > > XO - STO IFT Fleet > > > Chief Engineer - Second Life > > > http://www.iftcommand.com > > > > > > > > > > > > -- > > > Mario Steele > > > Lieutenant 3 - Geo 99 > > > XO - STO IFT Fleet > > > Chief Engineer - Second Life > > > http://www.iftcommand.com > > > > > > _______________________________________________ > > > wxruby-users mailing list > > > wxruby-users at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/wxruby-users > > > > _______________________________________________ > > wxruby-users mailing list > > wxruby-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/wxruby-users > > > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > > > > -- > Mario Steele > Lieutenant 3 - Geo 99 > XO - STO IFT Fleet > Chief Engineer - Second Life > http://www.iftcommand.com > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 1639 bytes Desc: not available URL: From mario at ruby-im.net Wed Mar 31 09:16:36 2010 From: mario at ruby-im.net (Mario Steele) Date: Wed, 31 Mar 2010 09:16:36 -0400 Subject: [wxruby-users] Segmentation fault In-Reply-To: <1270028146.2127.16.camel@localhost> References: <03cc6e28f31a1fa6963fffee429fd5a1@ruby-forum.com> <26dadb3d1003290140s759562d1kea27d47ed8a1b493@mail.gmail.com> <1269858711.2424.16.camel@localhost> <1269957624.2095.61.camel@localhost> <1269959076.2095.65.camel@localhost> <1270028146.2127.16.camel@localhost> Message-ID: Your welcome. On Wed, Mar 31, 2010 at 5:35 AM, Pierpaolo Giordani < pierpaolo.giordani at unipd.it> wrote: > Solved! > Just for fedora 12-64bit users, this is the roadmap: > yum erase wxGTK wxBase > yum install gstreamer-devel gstreamer-plugins-base-devel > ruby-gstreamer-devel ruby-gconf2-devel mesa-libGL-devel > mesa-libGLU-devel ruby-gconf2-devel > (not sure if they are all useful) > Download wxWidgets, extract in a folder, and copy the patch for GTK+ > Create a build-wxruby folder inside the wxWidgets folder > In build-wxruby, give this command: ../configure --disable-shared > --with-gtk --enable-monolithic --enable-unicode --disable-debug > --enable-catch_segvs --enable-graphics_ctx --enable-mediactrl > --with-opengl --with-libjpeg=builtin --with-libpng=builtin > --with-libtiff=builtin --with-zlib=builtin --with-expat=builtin > --enable-gui --enable-xrc --enable-mdi --enable-gif --enable-pcx > --enable-iff --enable-pnm --enable-xpm CFLAGS=-fPIC CXXFLAGS=-fPIC > LDFLAGS=-fPIC > then make and make install (be root) > move to ....contrib/src/stc, then make and make install > yum erase swig > Download and install swig 1.3.34 > Download wxruby, then rake and rake install > > thanks Mario! > > Il giorno mar, 30/03/2010 alle 13.54 -0400, Mario Steele ha scritto: > > Make sure that you go into your contrib folder, as described in the > > Wiki, to compile STC into a Shared Library. Make sure to run make, > > and make install, that will install the libwx_gtk2u_stc.so library. > > The .a library is just the assembly for the compiled code, to be > > statically linked into any executable, or library that is compiled > > against it. > > > > On Tue, Mar 30, 2010 at 10:24 AM, Pierpaolo Giordani > > wrote: > > I don't have libwx_gtk2u_stc-2.8.so.0! Instead I > > have /usr/local/lib/libwx_gtk2u_stc-2.8.a > > > > Pierpaolo Giordani > > > > > > Il giorno mar, 30/03/2010 alle 16.00 +0200, Pierpaolo Giordani > > ha > > scritto: > > > > > I don't really need wxruby on CentOS, because the final > > destination is > > > fedora 12 x86_64. > > > So I compiled wxWidgets with the suggested options (and the > > patch for > > > recent GTK+ versions) on fedora. All ok. > > > Then I downgraded swig to 1.3.34 and compiled wxruby and the > > contrib > > > add. All seems ok - no errors. > > > Rebuild of ruby is very hard (you need a patch for openssl > > 1.0, but I > > > found half a dozen of patches and I don't know the rigth > > one) - I'll try > > > the pre-build ruby 1.8.6 (2009-08-04 patchlevel 383), for > > now. > > > When I launch my miniml app this is the output: > > > > > > /usr/lib64/ruby/site_ruby/1.8/x86_64-linux/wxruby2.so: > > > libwx_gtk2u_stc-2.8.so.0: cannot open shared object file: No > > such file > > > or directory > > - /usr/lib64/ruby/site_ruby/1.8/x86_64-linux/wxruby2.so > > > (LoadError) > > > from /usr/lib/ruby/site_ruby/1.8/wx.rb:12 > > > from ./minima.rb:3:in `require' > > > from ./minima.rb:3 > > > > > > but there is > > a /usr/lib64/ruby/site_ruby/1.8/x86_64-linux/wxruby2.so > > > file! (55M , read and execute permissions for all). > > > I'm confused. > > > > > > Pierpaolo Giordani > > > > > > Il giorno lun, 29/03/2010 alle 17.55 -0400, Mario Steele ha > > scritto: > > > > Actually, > > > > > > > > > > > > Never mind, just re-read the error message, and your > > specs. > > > > > > > > > > > > Three things of note here. First, the Gem that you have > > installed is > > > > built on Ubuntu, and may have problems on Red Hat Linux > > > > and Derivatives. Second, wxRuby is built against Ruby > > 1.8.7, and > > > > there may be incompatibilities between 1.8.5 in the C > > back-end, > > > > compared to 1.8.7. And the final note here, is that it > > seems you are > > > > familiar with the whole compiling process with C++, and > > wxWidgets. > > > > Take a look at our wiki, specifically under "How to build > > wxRuby", > > > > for instructions on how to build wxWidgets, and wxRuby. > > > > > > > > > > > > My best suggestion for this kind of situation, is that if > > CentOS' > > > > repos do not have the latest version of Ruby available, > > then I would > > > > compile Ruby 1.8.7 from source, and install that. Then > > ensure that > > > > wxWidgets is at least 2.8.10. If it isn't, then grab > > wxWidgets, and > > > > compile that from source, following the instructions on > > our Wiki, then > > > > finally build wxRuby. > > > > > > > > > > > > hth, > > > > > > > > > > > > Mario > > > > > > > > On Mon, Mar 29, 2010 at 5:50 PM, Mario Steele > > > > > > wrote: > > > > Is this a Gem install of wxRuby on your OS, or are > > you > > > > compiling from source? > > > > > > > > > > > > On Mon, Mar 29, 2010 at 6:31 AM, Pierpaolo > > Giordani > > > > wrote: > > > > > > > > > > > > Hi list! > > > > I worked with wxWidgets in C++, and now > > I'd like to > > > > play with wxruby. > > > > But, with a minimal app like this... > > > > > > > > #!/usr/bin/ruby > > > > require "rubygems" > > > > require "wx" > > > > include Wx > > > > class Minima < App > > > > def on_init > > > > Frame.new(nil, -1, "Applicazione > > > > minima").show() > > > > end > > > > end > > > > Minima.new.main_loop > > > > > > > > ... I get "Segmentation fault": > > > > > > > /usr/lib/ruby/gems/1.8/gems/wxruby-2.0.1-x86-linux/lib/wx/keyword_ctors.rb:168: > [BUG] Segmentation fault > > > > ruby 1.8.5 (2006-08-25) [i386-linux] > > > > > > > > Running it with gdb: > > > > Program received signal SIGSEGV, > > Segmentation fault. > > > > 0x002e11e8 in wcslen () > > from /lib/libc.so.6 > > > > > > > > My sistem is: > > > > Linux CentOS 5.4 updated > > > > Ruby 1.8.5 > > > > wxGTK, wxBase and wxGTK-gl installed from > > distro > > > > (2.8.9-2.el5) > > > > > > > > Thanks for help! > > > > > > > > > > > > > > _______________________________________________ > > > > wxruby-users mailing list > > > > wxruby-users at rubyforge.org > > > > > > http://rubyforge.org/mailman/listinfo/wxruby-users > > > > > > > > > > > > > > > > -- > > > > Mario Steele > > > > Lieutenant 3 - Geo 99 > > > > XO - STO IFT Fleet > > > > Chief Engineer - Second Life > > > > http://www.iftcommand.com > > > > > > > > > > > > > > > > -- > > > > Mario Steele > > > > Lieutenant 3 - Geo 99 > > > > XO - STO IFT Fleet > > > > Chief Engineer - Second Life > > > > http://www.iftcommand.com > > > > > > > > _______________________________________________ > > > > wxruby-users mailing list > > > > wxruby-users at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/wxruby-users > > > > > > _______________________________________________ > > > wxruby-users mailing list > > > wxruby-users at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/wxruby-users > > > > > > > > _______________________________________________ > > wxruby-users mailing list > > wxruby-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/wxruby-users > > > > > > > > -- > > Mario Steele > > Lieutenant 3 - Geo 99 > > XO - STO IFT Fleet > > Chief Engineer - Second Life > > http://www.iftcommand.com > > _______________________________________________ > > wxruby-users mailing list > > wxruby-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/wxruby-users > > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > -- Mario Steele Lieutenant 3 - Geo 99 XO - STO IFT Fleet Chief Engineer - Second Life http://www.iftcommand.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Wed Mar 31 22:53:58 2010 From: lists at ruby-forum.com (tuti plain) Date: Thu, 1 Apr 2010 04:53:58 +0200 Subject: [wxruby-users] WxRuby and windows 7 Message-ID: <993ee22d9f478faf58cca9853576df70@ruby-forum.com> Hi, has anyone been able to use wxRuby on Windows 7. When I run a basic app I get an error saying that MSVCP71.dll is missing. Any ideas on how to solve this? -- Posted via http://www.ruby-forum.com/.