From alex at pressure.to Thu May 1 14:35:57 2008 From: alex at pressure.to (Alex Fenton) Date: Thu, 01 May 2008 19:35:57 +0100 Subject: [wxruby-users] wxRuby 1.9.6 In-Reply-To: <4819167A.2010808@pressure.to> References: <4819167A.2010808@pressure.to> Message-ID: <481A0D8D.5060004@pressure.to> I've run into problems running the 1.9.6. Windows gem on a machine other than the one I built it on. If you're getting errors like 'cannot load module...' please post them to the list - or also, if it is working for you, that would be useful to know. I think it might be because this latest release has been built with MSVC 8.0 and so depends on msvcp80.dll and msvcr80.dll, but I'm not sure. A great advert for why the move to MingW will be a good thing! thanks aelx From mario at ruby-im.net Thu May 1 15:18:06 2008 From: mario at ruby-im.net (Mario Steele) Date: Thu, 1 May 2008 14:18:06 -0500 Subject: [wxruby-users] wxRuby 1.9.6 In-Reply-To: <481A0D8D.5060004@pressure.to> References: <4819167A.2010808@pressure.to> <481A0D8D.5060004@pressure.to> Message-ID: Hey Alex, Yeah, I've ran into the same problems, first it not finding MSVCP80.DLL and MSVCR80.DLL, then when I grab them off of dll-files.com, to satisfy the dependencies, and no matter if I put them in C:\Windows\System32 or C:\Windows\WinSxS or whatever the other important directory, or even putting them into the directory that ruby resides in, it comes up with the cannot load module... problem. Definitely one of the things I will not miss when we're fully MinGW. Popup Dialog: Runtime Error! Program: J:\system\ruby_msvc\bin\ruby.exe R6034 An application has made an attempt o load the C runtime library incorrectly. Please contact the application's support team for more information. In the console: J:/system/ruby_msvc/lib/ruby/gems/1.8/gems/wxruby-1.9.6-x86-mswin32-60/lib/wxruby2.so: 1114: A dynamic link library (DLL) initialization routine failed. - J:/system/ruby_msvc/lib/ruby/gems/1.8/gems/wxruby-1.9.6-x86-mswin32-60/lib/wxruby2.so (LoadError) from J:/system/ruby_msvc/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from J:/system/ruby_msvc/lib/ruby/gems/1.8/gems/wxruby-1.9.6-x86-mswin32-60/lib/wx.rb:12 from J:/system/ruby_msvc/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require' from J:/system/ruby_msvc/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `require' from wxRIDE.rb:30 It might also be the fact that MSVC version is compiled with a different version of MSVC (7.1) On Thu, May 1, 2008 at 1:35 PM, Alex Fenton wrote: > I've run into problems running the 1.9.6. Windows gem on a machine other > than the one I built it on. If you're getting errors like 'cannot load > module...' please post them to the list - or also, if it is working for you, > that would be useful to know. > > I think it might be because this latest release has been built with MSVC > 8.0 and so depends on msvcp80.dll and msvcr80.dll, but I'm not sure. > > A great advert for why the move to MingW will be a good thing! > > thanks > aelx > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > -- Mario Steele http://www.trilake.net http://www.ruby-im.net http://rubyforge.org/projects/wxruby/ http://rubyforge.org/projects/wxride/ http://rubyforge.org/projects/vwmc/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From nochoice at xs4all.nl Thu May 1 18:18:06 2008 From: nochoice at xs4all.nl (Jonathan Maasland) Date: Thu, 01 May 2008 22:18:06 +0000 Subject: [wxruby-users] wxRuby 1.9.6 In-Reply-To: <481A0D8D.5060004@pressure.to> References: <4819167A.2010808@pressure.to> <481A0D8D.5060004@pressure.to> Message-ID: <481A419E.7090809@xs4all.nl> As far as I know you need to compile extensions in Windows with the same compiler as Ruby is compiled with (which is most likely MSVC 6). I ran into exactly the same problem when trying to compile and run Ripper. Jonathan Alex Fenton wrote: > I've run into problems running the 1.9.6. Windows gem on a machine > other than the one I built it on. If you're getting errors like > 'cannot load module...' please post them to the list - or also, if it > is working for you, that would be useful to know. > > I think it might be because this latest release has been built with > MSVC 8.0 and so depends on msvcp80.dll and msvcr80.dll, but I'm not sure. > > A great advert for why the move to MingW will be a good thing! > > thanks > aelx > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > > From alex at pressure.to Thu May 1 18:31:06 2008 From: alex at pressure.to (Alex Fenton) Date: Thu, 01 May 2008 23:31:06 +0100 Subject: [wxruby-users] wxRuby 1.9.6 In-Reply-To: <481A419E.7090809@xs4all.nl> References: <4819167A.2010808@pressure.to> <481A0D8D.5060004@pressure.to> <481A419E.7090809@xs4all.nl> Message-ID: <481A44AA.4050406@pressure.to> Jonathan Maasland wrote: > As far as I know you need to compile extensions in Windows with the > same compiler as Ruby is compiled with (which is most likely MSVC 6). > I ran into exactly the same problem when trying to compile and run > Ripper. We've got by so far compiling wxRuby2 windows releases with MSVC 7.1 against the MSVC 6.0 one-click installer. I've personally been using 8.0 for 18 months for debugging builds and it's worked fine with the standard OCI installer, but this is the first time I've tried to use it for a release. The build works fine for me on the machine I used to compile it, but I'm currently on stuck knowing what extra things I need to ship or link to to enable the library to work elsewhere. Unfortunately the error message isn't at all helpful. I'll have a further look tomorrow, anyway. thanks alex From alex at pressure.to Fri May 2 05:21:46 2008 From: alex at pressure.to (Alex Fenton) Date: Fri, 02 May 2008 10:21:46 +0100 Subject: [wxruby-users] FIX for wxruby-1.9.6 on Windows Message-ID: <481ADD2A.5030003@pressure.to> Hi If you've installed the latest wxRuby 1.9.6 on Windows and are having trouble running applications, please try the following steps: 1) Ensure that you have msvcr80.dll and msvcp80.dll available on your system. If you haven't got them, they can be downloaded for free from http://www.dll-files.com/ and placed in your ruby/bin directory. 2) Copy a file called 'lib/ruby/gems/1.8/gems/wxruby-1.9.6-x86-mswin32-60/wxruby.so.manifest' to your ruby/bin directory, and there, rename it 'ruby.exe.manifest' On XP this will also ensure you get the nice XP-style widgets. I'll try and put out a release soon that automates these steps. alex From mario at ruby-im.net Fri May 2 14:31:22 2008 From: mario at ruby-im.net (Mario Steele) Date: Fri, 2 May 2008 13:31:22 -0500 Subject: [wxruby-users] FIX for wxruby-1.9.6 on Windows In-Reply-To: <481ADD2A.5030003@pressure.to> References: <481ADD2A.5030003@pressure.to> Message-ID: Double checked and proven to work. On Fri, May 2, 2008 at 4:21 AM, Alex Fenton wrote: > Hi > > If you've installed the latest wxRuby 1.9.6 on Windows and are having > trouble running applications, please try the following steps: > > 1) Ensure that you have msvcr80.dll and msvcp80.dll available on your > system. If you haven't got them, they can be downloaded for free from > http://www.dll-files.com/ and placed in your ruby/bin directory. > > 2) Copy a file called > 'lib/ruby/gems/1.8/gems/wxruby-1.9.6-x86-mswin32-60/wxruby.so.manifest' to > your ruby/bin directory, and there, rename it 'ruby.exe.manifest' > > On XP this will also ensure you get the nice XP-style widgets. > > I'll try and put out a release soon that automates these steps. > > alex > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > -- Mario Steele http://www.trilake.net http://www.ruby-im.net http://rubyforge.org/projects/wxruby/ http://rubyforge.org/projects/wxride/ http://rubyforge.org/projects/vwmc/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From mario at ruby-im.net Fri May 2 14:49:35 2008 From: mario at ruby-im.net (Mario Steele) Date: Fri, 2 May 2008 13:49:35 -0500 Subject: [wxruby-users] FIX for wxruby-1.9.6 on Windows In-Reply-To: References: <481ADD2A.5030003@pressure.to> Message-ID: Also, if you use rubyw.exe, you need to repeat step 2, only naming it rubyw.exe.manifest instead of ruby.exe.manifest On Fri, May 2, 2008 at 1:31 PM, Mario Steele wrote: > Double checked and proven to work. > > > On Fri, May 2, 2008 at 4:21 AM, Alex Fenton wrote: > > > Hi > > > > If you've installed the latest wxRuby 1.9.6 on Windows and are having > > trouble running applications, please try the following steps: > > > > 1) Ensure that you have msvcr80.dll and msvcp80.dll available on your > > system. If you haven't got them, they can be downloaded for free from > > http://www.dll-files.com/ and placed in your ruby/bin directory. > > > > 2) Copy a file called > > 'lib/ruby/gems/1.8/gems/wxruby-1.9.6-x86-mswin32-60/wxruby.so.manifest' to > > your ruby/bin directory, and there, rename it 'ruby.exe.manifest' > > > > On XP this will also ensure you get the nice XP-style widgets. > > > > I'll try and put out a release soon that automates these steps. > > > > alex > > _______________________________________________ > > wxruby-users mailing list > > wxruby-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/wxruby-users > > > > > > -- > Mario Steele > http://www.trilake.net > http://www.ruby-im.net > http://rubyforge.org/projects/wxruby/ > http://rubyforge.org/projects/wxride/ > http://rubyforge.org/projects/vwmc/ -- Mario Steele http://www.trilake.net http://www.ruby-im.net http://rubyforge.org/projects/wxruby/ http://rubyforge.org/projects/wxride/ http://rubyforge.org/projects/vwmc/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Sat May 3 09:03:29 2008 From: lists at ruby-forum.com (Rick Ashton) Date: Sat, 3 May 2008 15:03:29 +0200 Subject: [wxruby-users] xrcise tutorial, undefined method 'upper_bt' In-Reply-To: <472F5995.4040001@pressure.to> References: <97a92e950711020053w2d76539bt5c97c8296baafef@mail.gmail.com> <472B074D.5010801@pressure.to> <97a92e950711021742j45ee9f95qa0bf73e77726e940@mail.gmail.com> <472C9803.8090706@pressure.to> <97a92e950711040148k79a28a8focfee275bcb34cf42@mail.gmail.com> <472F5995.4040001@pressure.to> Message-ID: <662ea03fcf95780d52e6c5b3b08372d8@ruby-forum.com> Alex Fenton wrote: > I couldn't reproduce the bug with XP/1.8.4, but I tried installing the > latest 1.8.6 and now can. > > It's due to some incompatible change in REXML shipped with ruby 1.8.4 > (version 3.1.3) and 1.8.6 (version 3.1.6), somewhere in it's XPath > parsing, but exactly what's needed is eluding me right now. > > Anyway, thanks again for the report. We should be able to pin down > what's up and put out a version of wxSugar inc XRCise that works on > 1.8.6 in the next week or so. > > alex Hey I get the same thing... running 1.8.6 on Mac OS X 10.5.2. Got a gem of the latest wxSugar 0.1.20 but this still seems to be an issue in this version. Anyone know? Thx! -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Sat May 3 16:13:21 2008 From: lists at ruby-forum.com (Gerard Rakoczy) Date: Sat, 3 May 2008 22:13:21 +0200 Subject: [wxruby-users] sqlite3, inserting values in database Message-ID: hi, i have a small form of textfields and i need to add these informations to a table in sqlite3 database. but i dont know how to do it. i mean that its small address book program. and 'id' from 'clients' table has to increments. i open database with : db = Database.open("data.db"), but then i dont know what to do... anyone can help? -- Posted via http://www.ruby-forum.com/. From mario at ruby-im.net Sat May 3 17:19:12 2008 From: mario at ruby-im.net (Mario Steele) Date: Sat, 3 May 2008 16:19:12 -0500 Subject: [wxruby-users] sqlite3, inserting values in database In-Reply-To: References: Message-ID: Well, if you create your table with the id set as an INTEGER PRIMARY KEY, then it will auto-increment for you. You won't need to do it yourself. All you have to do is insert the data. An example would be: db.execute("INSERT INTO clients (name,address,phone,email,website) VALUES(?,?,?,?,?);", at name.get_value(), at address.get_value(), at phone.get_value(), at email.get_value, at website.get_value()) @name, @address, @phone, @email and @website would be TextCtrl's that hold the data that the user inputed. Then to get them back, you simply do: db.execute("SELECT * FROM clients;") Which returns all rows in the table. Or you can narrow down the entries, by doing db.execute("SELECT * FROM clients WHERE name='Mario Steele';") Which will return any matches where the name column of the row has "Mario Steele" On Sat, May 3, 2008 at 3:13 PM, Gerard Rakoczy wrote: > hi, > i have a small form of textfields and i need to add these informations > to a table in sqlite3 database. but i dont know how to do it. i mean > that its small address book program. and 'id' from 'clients' table has > to increments. i open database with : db = Database.open("data.db"), but > then i dont know what to do... > > anyone can help? > -- > 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 http://www.trilake.net http://www.ruby-im.net http://rubyforge.org/projects/wxruby/ http://rubyforge.org/projects/wxride/ http://rubyforge.org/projects/vwmc/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Sat May 3 17:37:41 2008 From: lists at ruby-forum.com (Gerard Rakoczy) Date: Sat, 3 May 2008 23:37:41 +0200 Subject: [wxruby-users] sqlite3, inserting values in database In-Reply-To: References: Message-ID: <5ddc5fa25cebec55bed5bcce387cc1c6@ruby-forum.com> thanks a lot mario. so much. -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Sat May 3 17:52:43 2008 From: lists at ruby-forum.com (Gerard Rakoczy) Date: Sat, 3 May 2008 23:52:43 +0200 Subject: [wxruby-users] what type of variable use? (setting text on another class va Message-ID: <3d1504c2392a4548fcbbf35d0af1f68f@ruby-forum.com> so, i have a MinimalFrame class where i have a form, then, after a user add a new client i would like to send a log message on MainFrame status_bar. -- Posted via http://www.ruby-forum.com/. From mario at ruby-im.net Sat May 3 18:09:01 2008 From: mario at ruby-im.net (Mario Steele) Date: Sat, 3 May 2008 17:09:01 -0500 Subject: [wxruby-users] what type of variable use? (setting text on another class va In-Reply-To: <3d1504c2392a4548fcbbf35d0af1f68f@ruby-forum.com> References: <3d1504c2392a4548fcbbf35d0af1f68f@ruby-forum.com> Message-ID: If this is from the Form, you would need to do the following: self.get_parent.get_status_bar().set_status_text(message) And when I mean, if this is from the Form, I mean, that evt_button() is defind within the Form class, if it's defined within the MinimalFrame class, then you just need self.get_status_bar().set_status_text(message) Example of it being within the Form: class Form < Panel def initialize() # creation of all your controls here evt_button(@add_user) do self.get_parent.get_status_bar().set_status_text("Contact created.") end end end Example of it being within the MinimalFrame class MinimalFrame < Frame def initialize() @form = Form.new() evt_button(ID_ADD) do self.get_status_bar().set_status_text("Contact created.") end end end You may also want to consider stopping by the IRC Chat Room on irc.freenode.net, as there are people there, willing to help as well as on the mailing list. L8ers, On Sat, May 3, 2008 at 4:52 PM, Gerard Rakoczy wrote: > so, i have a MinimalFrame class where i have a form, then, after a user > add a new client i would like to send a log message on MainFrame > status_bar. > -- > 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 http://www.trilake.net http://www.ruby-im.net http://rubyforge.org/projects/wxruby/ http://rubyforge.org/projects/wxride/ http://rubyforge.org/projects/vwmc/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Sat May 3 18:26:32 2008 From: lists at ruby-forum.com (Gerard Rakoczy) Date: Sun, 4 May 2008 00:26:32 +0200 Subject: [wxruby-users] what type of variable use? (setting text on another class va In-Reply-To: References: <3d1504c2392a4548fcbbf35d0af1f68f@ruby-forum.com> Message-ID: thanks again, howevevr i tried to get help on irc, but there was silence, for this i asked here. i realize that these are newbie questions and i would get answers on irc faster.... thank however, next time i will be more patient on IRC -- Posted via http://www.ruby-forum.com/. From mario at ruby-im.net Sat May 3 18:36:27 2008 From: mario at ruby-im.net (Mario Steele) Date: Sat, 3 May 2008 17:36:27 -0500 Subject: [wxruby-users] what type of variable use? (setting text on another class va In-Reply-To: References: <3d1504c2392a4548fcbbf35d0af1f68f@ruby-forum.com> Message-ID: I would suggest looking at this: http://wxruby.rubyforge.org/wiki/wiki.pl?ChatRoom A lot of times, people are not watching the Chat Room, so it is hard for some to realize this, and get discouraged. Don't let it. Someone will eventually respond. I am there with a couple of other people, so feel free to stop by. L8ers, On Sat, May 3, 2008 at 5:26 PM, Gerard Rakoczy wrote: > thanks again, > howevevr i tried to get help on irc, but there was silence, for this i > asked here. i realize that these are newbie questions and i would get > answers on irc faster.... > > thank however, next time i will be more patient on IRC > -- > 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 http://www.trilake.net http://www.ruby-im.net http://rubyforge.org/projects/wxruby/ http://rubyforge.org/projects/wxride/ http://rubyforge.org/projects/vwmc/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Wed May 7 08:15:12 2008 From: lists at ruby-forum.com (Gerard Rakoczy) Date: Wed, 7 May 2008 14:15:12 +0200 Subject: [wxruby-users] FIX for wxruby-1.9.6 on Windows In-Reply-To: <481ADD2A.5030003@pressure.to> References: <481ADD2A.5030003@pressure.to> Message-ID: <865d103ad498319af067a19d08fd040a@ruby-forum.com> correct path to 'wxruby.so.manifest' is: 'lib/ruby/gems/1.8/gems/wxruby-1.9.6-x86-mswin32-60/lib/wxruby.so.manifest' not: 'lib/ruby/gems/1.8/gems/wxruby-1.9.6-x86-mswin32-60/wxruby.so.manifest' -- Posted via http://www.ruby-forum.com/. From chutsu at gmail.com Wed May 7 10:57:18 2008 From: chutsu at gmail.com (Christopher Choi) Date: Wed, 7 May 2008 15:57:18 +0100 Subject: [wxruby-users] Is programming Wxwidgets in Obj C possible? Message-ID: <62778323-FB9A-4D3E-BBE6-5CB278078029@gmail.com> Hi Was wondering if you could possibly program wxwidgets in Objective C? Thanks Chris From alex at pressure.to Wed May 7 13:34:19 2008 From: alex at pressure.to (Alex Fenton) Date: Wed, 07 May 2008 18:34:19 +0100 Subject: [wxruby-users] Is programming Wxwidgets in Obj C possible? In-Reply-To: <62778323-FB9A-4D3E-BBE6-5CB278078029@gmail.com> References: <62778323-FB9A-4D3E-BBE6-5CB278078029@gmail.com> Message-ID: <4821E81B.2060209@pressure.to> Christopher Choi wrote: > Was wondering if you could possibly program wxwidgets in Objective C? I don't know, to be honest. This is the list for programming wxWidgets in Ruby. comp.soft-sys.wxwindows would be a better place to ask. You might be able to use Objective C with the WxCocoa port. But if you were only interested in targetting OS X + Cocoa I would say you're better off using the Apple developer tools (eg Interface Builder, XCode) directly rather than WxWidgets. There is also Ruby-Cocoa which is a ruby-objective C bridge. alex From alex at pressure.to Sat May 10 07:40:39 2008 From: alex at pressure.to (Alex Fenton) Date: Sat, 10 May 2008 12:40:39 +0100 Subject: [wxruby-users] wxRuby 1.9.7 released Message-ID: <482589B7.601@pressure.to> Hi wxRuby 1.9.7 is now available from rubyforge. This release is mainly to restore one-step gem installation for Windows users, so they can easily benefit from the many enhancements and fixes that were included in 1.9.6. The gem will now install Microsoft's VC version 8.0 dlls. As usual 'gem install wxruby' should get you the latest version. For users on Linux and OS X, there are only minimal changes. The ChangeLog for this version is: - Restored Grid#set_col_label_text_orientation method (AF) - Fixed linking to wx_media with different wx build flavours on OS X (AF) - Fixed misnaming of Wx::NULL_ANIMATION constant (AF) - Added bundling of MSVC80 dlls for windows gem (AF) - Added a drag and drop / clipboard sample (AF) alex From yvon.thoraval at gmail.com Sat May 10 10:45:46 2008 From: yvon.thoraval at gmail.com (Yvon Thoraval) Date: Sat, 10 May 2008 16:45:46 +0200 Subject: [wxruby-users] from RubyCocoa to wxRuby ? Message-ID: hey all, thanks to alex who help me to get the latest running on my box ( Mac OS X 10.4.11) to get it working download the latest gem locally cd to the directory where it lies and : $ sudo gem install --local wxruby u'll get : Successfully installed wxruby-1.9.7-universal-darwin-9 1 gem installed ;-) A question, my first test will be to convert a RubyCocoa project into wxRuby. this project convert the AddressBook contents into html ( a preview : what do I need ? a push button, a spinner and a text area to give feedback to the user that' all ;-) ( a screenshot : what is the best example to start with in such a context ? is it possible to use the AddressBook framework from wxRuby ? in that case i'll only the UI to rewrite... best, yvon -------------- next part -------------- An HTML attachment was scrubbed... URL: From alex at pressure.to Sat May 10 11:33:37 2008 From: alex at pressure.to (Alex Fenton) Date: Sat, 10 May 2008 16:33:37 +0100 Subject: [wxruby-users] from RubyCocoa to wxRuby ? In-Reply-To: References: Message-ID: <4825C051.7080302@pressure.to> Yvon Thoraval wrote: > thanks to alex who help me to get the latest running on my box ( Mac > OS X 10.4.11) > > to get it working download the latest gem locally cd to the directory > where it lies and : > $ sudo gem install --local wxruby > > u'll get : > Successfully installed wxruby-1.9.7-universal-darwin-9 > 1 gem installed Glad we figured it out. Something that other users may want to be aware of is that Rubygems seems not to be offering the latest gems to OS X 10.4 users. > A question, my first test will be to convert a RubyCocoa project into > wxRuby. Out of interest, may I ask why you're looking to make this switch? > this project convert the AddressBook contents into html > ( a preview : > > what do I need ? > > a push button, a spinner and a text area to give feedback to the user > that' all ;-) > > ( a screenshot : > > > what is the best example to start with in such a context ? The classes you want will be Wx::Button, Wx::AnimationCtrl, and Wx::StaticText or Wx::TextCtrl. You may want to place them all on a Wx::Panel. For a sample to use as a starting point, you could look at text/textctrl.rb which organises a few widgets using sizers and links up a button event. Sizers are the best way to lay out widgets; there is a reasonably detailed discussion of how to use them in the documentation for Wx::Sizer. > is it possible to use the AddressBook framework from wxRuby ? You should be able to use RubyCocoa to access that framework without problems inside wxRuby. It's not something I know much about though. > in that case i'll only the UI to rewrite... Yep, well hopefully if your existing code has the UI and export code reasonably separate it shouldn't be a tricky job. good luck and feel free to ask for help on this list alex From yvon.thoraval at gmail.com Sat May 10 11:59:30 2008 From: yvon.thoraval at gmail.com (Yvon Thoraval) Date: Sat, 10 May 2008 17:59:30 +0200 Subject: [wxruby-users] from RubyCocoa to wxRuby ? In-Reply-To: <4825C051.7080302@pressure.to> References: <4825C051.7080302@pressure.to> Message-ID: 2008/5/10 Alex Fenton : > > Glad we figured it out. Something that other users may want to be aware of > is that Rubygems seems not to be offering the latest gems to OS X 10.4 > users. > this is true for rubygems itself.. i was unable to update to * 1.1.1 * * of 11/04/2008 00:06, may be i'll try again with the same procedure...* > A question, my first test will be to convert a RubyCocoa project into >> wxRuby. >> > Out of interest, may I ask why you're looking to make this switch? > threads probs with RubyCocoa ? Xplatform too also this project is the simplest to start with wxRuby. > this project convert the AddressBook contents into html >> ( a preview : > > >> >> what do I need ? >> >> a push button, a spinner and a text area to give feedback to the user >> that' all ;-) >> >> ( a screenshot : >> >> >> what is the best example to start with in such a context ? >> > > The classes you want will be Wx::Button, Wx::AnimationCtrl, and > Wx::StaticText or Wx::TextCtrl. You may want to place them all on a > Wx::Panel. > > For a sample to use as a starting point, you could look at text/textctrl.rb > which organises a few widgets using sizers and links up a button event. > Sizers are the best way to lay out widgets; there is a reasonably detailed > discussion of how to use them in the documentation for Wx::Sizer. > > is it possible to use the AddressBook framework from wxRuby ? >> > > You should be able to use RubyCocoa to access that framework without > problems inside wxRuby. It's not something I know much about though. > i know that part, i've done ruby script to extend some of this framework classes (ABGroup, ABPerson and ABAddressBook.sharedAddressBook class instance) in that case i'll only the UI to rewrite... >> > > Yep, well hopefully if your existing code has the UI and export code > reasonably separate it shouldn't be a tricky job. my export code is as simple as : @address_book.to_xml (each classe has it's own #to_xml method...) the remaining code is devoted to save files at the right place (under ~/Sites) > > good luck and feel free to ask for help on this list > thanks for your advices ! -- yvon -------------- next part -------------- An HTML attachment was scrubbed... URL: From alex at pressure.to Sat May 10 12:06:21 2008 From: alex at pressure.to (Alex Fenton) Date: Sat, 10 May 2008 17:06:21 +0100 Subject: [wxruby-users] from RubyCocoa to wxRuby ? In-Reply-To: References: <4825C051.7080302@pressure.to> Message-ID: <4825C7FD.4030502@pressure.to> Yvon Thoraval wrote:** > > A question, my first test will be to convert a RubyCocoa > project into wxRuby. > > Out of interest, may I ask why you're looking to make this switch? > > > threads probs with RubyCocoa ? If you need to use ruby threads in your application, also look at the threaded.rb sample. Threads work OK with wxRuby, but you need to make sure that the background non-GUI tasks are allocated some time, and try to avoid calling GUI code outside the main thread. There are numerous threads about threads on the mailing list. a From yvon.thoraval at gmail.com Sat May 10 14:35:42 2008 From: yvon.thoraval at gmail.com (Yvon Thoraval) Date: Sat, 10 May 2008 20:35:42 +0200 Subject: [wxruby-users] from RubyCocoa to wxRuby ? In-Reply-To: <4825C7FD.4030502@pressure.to> References: <4825C051.7080302@pressure.to> <4825C7FD.4030502@pressure.to> Message-ID: 2008/5/10 Alex Fenton : > Yvon Thoraval wrote:** > >> threads probs with RubyCocoa ? >> > > If you need to use ruby threads in your application, also look at the > threaded.rb sample. Threads work OK with wxRuby, but you need to make sure > that the background non-GUI tasks are allocated some time, and try to avoid > calling GUI code outside the main thread. ok, i see. > There are numerous threads about threads on the mailing list. ;-) -- yvon -------------- next part -------------- An HTML attachment was scrubbed... URL: From dirk.traulsen at lypso.de Sun May 11 01:17:03 2008 From: dirk.traulsen at lypso.de (Dirk Traulsen) Date: Sun, 11 May 2008 07:17:03 +0200 Subject: [wxruby-users] wxRuby 1.9.7 released In-Reply-To: <482589B7.601@pressure.to> References: <482589B7.601@pressure.to> Message-ID: <48269D6F.30260.47C5AB8B@dirk.traulsen.lypso.de> Am 10 May 2008 um 12:40 hat Alex Fenton geschrieben: > Hi > > wxRuby 1.9.7 is now available from rubyforge. This release is mainly to > restore one-step gem installation for Windows users, so they can easily > benefit from the many enhancements and fixes that were included in > 1.9.6. The gem will now install Microsoft's VC version 8.0 dlls. As > usual 'gem install wxruby' should get you the latest version. Under WinXP SP2 with ruby 1.8.6 I used gem update wxruby and gem told it was installed. But immediately afterwards gem stopped working! In fact every program connected to ruby does no longer work! C:\>gem list Das angegebene Programm kann nicht ausgef?hrt werden. C:\>ruby --version Das angegebene Programm kann nicht ausgef?hrt werden. C:\>irb Das angegebene Programm kann nicht ausgef?hrt werden. Translation: This program can not be executed. Any idea why and what I can do to restore my ruby? Dirk From alex at pressure.to Sun May 11 05:52:53 2008 From: alex at pressure.to (Alex Fenton) Date: Sun, 11 May 2008 10:52:53 +0100 Subject: [wxruby-users] wxRuby 1.9.7 released In-Reply-To: <48269D6F.30260.47C5AB8B@dirk.traulsen.lypso.de> References: <482589B7.601@pressure.to> <48269D6F.30260.47C5AB8B@dirk.traulsen.lypso.de> Message-ID: <4826C1F5.2050304@pressure.to> Dirk Traulsen wrote: > > gem update wxruby > > and gem told it was installed. > But immediately afterwards gem stopped working! > In fact every program connected to ruby does no longer work! > > C:\>gem list > Das angegebene Programm kann nicht ausgef?hrt werden. > > C:\>ruby --version > Das angegebene Programm kann nicht ausgef?hrt werden. aargh. to restore your ruby, go to the "bin" folder where the ruby executable is, and delete "ruby.exe.manifest" and "rubyw.exe.manifest". Are you using the one-click installer ruby? sorry for the trouble alex From dirk.traulsen at lypso.de Sun May 11 07:13:37 2008 From: dirk.traulsen at lypso.de (Dirk Traulsen) Date: Sun, 11 May 2008 13:13:37 +0200 Subject: [wxruby-users] wxRuby 1.9.7 released In-Reply-To: <4826C1F5.2050304@pressure.to> References: <482589B7.601@pressure.to>, <48269D6F.30260.47C5AB8B@dirk.traulsen.lypso.de>, <4826C1F5.2050304@pressure.to> Message-ID: <4826F101.21746.490C1F23@dirk.traulsen.lypso.de> Am 11 May 2008 um 10:52 hat Alex Fenton geschrieben: > Dirk Traulsen wrote: > > > > gem update wxruby > > > > and gem told it was installed. > > But immediately afterwards gem stopped working! > > In fact every program connected to ruby does no longer work! > > aargh. to restore your ruby, go to the "bin" folder where the ruby > executable is, and delete "ruby.exe.manifest" and > "rubyw.exe.manifest". It worked. After deleting the two files ruby, rubygems and irb started working again. But, I'm sorry to report, wxruby does not. When I start any sample, I get the following error message: ===== Microsoft Visual C++ Runtime Library Runtime Error! Program: C:\Programme\ruby\bin\ruby.exe R6034 An application has made an attempt to load the C runtime library incorrectly. Please contact the application's support team for more information. ===== > Are you using the one-click installer ruby? Yes. I installed with One-Click Ruby Installer 186-26 Final Release: C:\>ruby --version ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] Maybe it would be better to retract the gem before you get flooded with complaints. Hope this helps Dirk From alex at pressure.to Sun May 11 07:32:40 2008 From: alex at pressure.to (Alex Fenton) Date: Sun, 11 May 2008 12:32:40 +0100 Subject: [wxruby-users] wxRuby 1.9.7 released In-Reply-To: <4826F101.21746.490C1F23@dirk.traulsen.lypso.de> References: <482589B7.601@pressure.to>, <48269D6F.30260.47C5AB8B@dirk.traulsen.lypso.de>, <4826C1F5.2050304@pressure.to> <4826F101.21746.490C1F23@dirk.traulsen.lypso.de> Message-ID: <4826D958.30701@pressure.to> Dirk Traulsen wrote: > Am 11 May 2008 um 10:52 hat Alex Fenton geschrieben > > It worked. After deleting the two files ruby, rubygems and irb started > working again. > > But, I'm sorry to report, wxruby does not. > When I start any sample, I get the following error message: > > ===== > Microsoft Visual C++ Runtime Library > Runtime Error! > Program: C:\Programme\ruby\bin\ruby.exe > R6034 > An application has made an attempt to load the C runtime library > incorrectly. Please contact the application's support team for more > information. > ===== > That's the error I'd expect to see. The manifests fix that on two systems I've tried it on, and others have confirmed it. But clearly not working for you, and I've no idea why. >> Are you using the one-click installer ruby? >> > > Yes. > I installed with One-Click Ruby Installer 186-26 Final Release: > C:\>ruby --version > ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] > > Maybe it would be better to retract the gem before you get flooded with > complaints. I have done. I was uncomfortable anyway with having the gem installer adjust global ruby settings, but it would have been worth it if it worked reliably. Sorry for the trouble anyway. I'm SO fed up with this situation. We put months of work into improving the library, then can't share those improvements with the majority of Windows users. alex From yvon.thoraval at gmail.com Sun May 11 08:24:23 2008 From: yvon.thoraval at gmail.com (Yvon Thoraval) Date: Sun, 11 May 2008 14:24:23 +0200 Subject: [wxruby-users] Choosing a Sizer Message-ID: Following alex advices, i've used both "text/textctrl.rb" and "etc/threaded.rb" to build my first wxApp. I've changed the Sizer type mainly (from "Wx::BoxSizer" to "Wx::FlexGridSizer"). I didn't find the way to let @log (Wx::TextCtrl) span 2 columns. At the time of writing it's growing only vertically. And also how to get 16px filler|spacer|border (for window resizer, bottom-right corner, on Mac OS X) for SOUTH and EAST and 5/16 px for NORTH and WEST What i want as a layout; +---- 5/16 px | +-------------------------------------------------------------------v----------+ >| |<-- 5/16 px | | [ Fixed length Wx::Button ] [ <---------- Growable Wx::Gauge ----^-----> ] | | | | +------------------------------------------------------------------------+ | | | ^ | | | | | | | | | | | | | | <------------------ Growable Wx::TextCtrl -----------------> >| |<-- 16 px | | | | | | | | | | | | V | | | +----------------------------------------------------------------v-------+ | | | +------------------------------------------------------------------------------+ ^ | +---- 16 px What i get: +------------------------------------------------------------------------------+ | | | [ Fixed length Wx::Button ] [ <---------- Growable Wx::Gauge ----------> ] | | | | +-------------------------+ | | | ^ | | | | | | | | | | | | | |Fixed width Wx::TextCtrl | | | | | | | | | | | | | | V | | | +-------------------------+ | | | +------------------------------------------------------------------------------+ What i've cut'n paste as code: The sizer: sizer = Wx::FlexGridSizer.new( 2, 2, 5, 5) sizer.add_growable_col( 1, 1) sizer.add_growable_row( 1, 1) Three items added: @button = Wx::Button.new(panel, :label => 'Export') sizer.add(button, 0, Wx::ADJUST_MINSIZE|Wx::ALL, 2 ) @gauge = Wx::Gauge.new(panel, :range => STEPS) sizer.add(@gauge, 0, Wx::GROW|Wx::ALL, 2) @log = LogTextCtrl.new(panel) # (LogTextCtrl < Wx::TextCtrl) sizer.add(@log, 1, Wx::GROW|Wx::ALL, 2) Yvon -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter.c.r.lane at googlemail.com Sun May 11 08:30:35 2008 From: peter.c.r.lane at googlemail.com (Peter Lane) Date: Sun, 11 May 2008 13:30:35 +0100 Subject: [wxruby-users] wxRuby 1.9.7 released In-Reply-To: <7b071a2e0805110529i2c81a3f9v8b760ec06faae17@mail.gmail.com> References: <482589B7.601@pressure.to> <48269D6F.30260.47C5AB8B@dirk.traulsen.lypso.de> <4826C1F5.2050304@pressure.to> <4826F101.21746.490C1F23@dirk.traulsen.lypso.de> <4826D958.30701@pressure.to> <7b071a2e0805110529i2c81a3f9v8b760ec06faae17@mail.gmail.com> Message-ID: <7b071a2e0805110530r331c3b26w9676a26994dda585@mail.gmail.com> I haven't got access to this at home, but I did get wxruby 1.9.6 working on windows XP, by following the instructions about installing the dll's and moving the manifests given under the 'FIX for wxruby-1.9.6 on Windows' thread on this mailing list. I didn't do much beyond check whether it worked, though. I have found installing on Linux is not universally successful. I run into the 'GLIBC_2.4 not found' error when installing 1.9.7 on a Debian system (I particularly want to use this on my Asus Eee). A bit of searching on the internet doesn't show any quick solution. Is this something that could be fixed in the distributed gem? I may try compiling wxruby myself when I get a chance. Then again, it seems to work very well on Ubuntu 8. I do get occasional crashes or freezes, which are perhaps more due to my ignorance. I shall post an example in a separate thread. Peter. On Sun, May 11, 2008 at 1:29 PM, Peter Lane wrote: > I haven't got access to this at home, but I did get wxruby 1.9.6 working > on windows XP, by following the instructions about installing the dll's > and moving the manifests given under the 'FIX for wxruby-1.9.6 on Windows' > thread on this mailing list. I didn't do much beyond check whether it > worked, though. > > I have found installing on Linux is not universally successful. I run into > the 'GLIBC_2.4 not found' error when installing 1.9.7 on a Debian system (I > particularly want to use this on my Asus Eee). A bit of searching on the > internet doesn't show any quick solution. Is this something that could be > fixed in the distributed gem? I may try compiling wxruby myself when I get > a chance. > > Then again, it seems to work very well on Ubuntu 8. I do get occasional > crashes or freezes, which are perhaps more due to my ignorance. I shall > post an example in a separate thread. > > Peter. > > On Sun, May 11, 2008 at 12:32 PM, Alex Fenton wrote: > >> Dirk Traulsen wrote: >> >>> Am 11 May 2008 um 10:52 hat Alex Fenton geschrieben >>> >>> It worked. After deleting the two files ruby, rubygems and irb started >>> working again. >>> >>> But, I'm sorry to report, wxruby does not. >>> When I start any sample, I get the following error message: >>> >>> ===== >>> Microsoft Visual C++ Runtime Library >>> Runtime Error! >>> Program: C:\Programme\ruby\bin\ruby.exe >>> R6034 >>> An application has made an attempt to load the C runtime library >>> incorrectly. Please contact the application's support team for more >>> information. >>> ===== >>> >>> >> That's the error I'd expect to see. The manifests fix that on two systems >> I've tried it on, and others have confirmed it. But clearly not working for >> you, and I've no idea why. >> >> Are you using the one-click installer ruby? >>>> >>>> >>> >>> Yes. I installed with One-Click Ruby Installer 186-26 Final Release: >>> C:\>ruby --version ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] >>> >>> Maybe it would be better to retract the gem before you get flooded with >>> complaints. >>> >> I have done. I was uncomfortable anyway with having the gem installer >> adjust global ruby settings, but it would have been worth it if it worked >> reliably. >> >> Sorry for the trouble anyway. I'm SO fed up with this situation. We put >> months of work into improving the library, then can't share those >> improvements with the majority of Windows users. >> >> alex >> >> >> _______________________________________________ >> wxruby-users mailing list >> wxruby-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/wxruby-users >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter.c.r.lane at googlemail.com Sun May 11 08:40:35 2008 From: peter.c.r.lane at googlemail.com (Peter Lane) Date: Sun, 11 May 2008 13:40:35 +0100 Subject: [wxruby-users] instabilities in wxRuby 1.9.6 Message-ID: <7b071a2e0805110540o29281e83q3f2394394c3f964f@mail.gmail.com> I have recently started to use wxRuby, because I have used the wxWidgets library from C++ for a few years and found it an excellent toolkit. I am using Ubuntu 8.04 and version 1.9.6 of wxRuby. A problem though is a number of instabilities. This may be due to my own ignorance, but I have usually found C++/wxWidgets, once the program compiles it will at least stay working, if at times incorrectly. With wxRuby, the program sometimes just crashes out, or the event handler appears to freeze. The code below reproduces one problem. After opening one or two child frames and then closing one of them, the program soon fails. I find that the frames stop receiving events, don't redraw themselves when covered, etc. Sometimes this happens very quickly, sometimes after a minute or so. Is this a bug, or should I be doing something different to show/hide child frames? Thanks for any help with this. Peter. class ChildFrame < Wx::Frame def initialize parent super(parent, -1, "Child frame") viewMenu = Wx::Menu.new viewMenu.append(Wx::ID_CLOSE, "Close\tCtrl-W", "Close this window") evt_menu(Wx::ID_CLOSE) { show false } menuBar = Wx::MenuBar.new menuBar.append(viewMenu, "&View") set_menu_bar menuBar end end class TestFrame < Wx::Frame def initialize super(nil, -1, "Test Frame") menu = Wx::Menu.new menuItem = Wx::MenuItem.new(menu, -1, "Show child") menu.append_item menuItem evt_menu(menuItem) { ChildFrame.new(self).show } menuBar = Wx::MenuBar.new menuBar.append(menu, "&View") set_menu_bar menuBar end end class TestApp < Wx::App def on_init TestFrame.new.show end end TestApp.new.main_loop -------------- next part -------------- An HTML attachment was scrubbed... URL: From mario at ruby-im.net Sun May 11 09:44:15 2008 From: mario at ruby-im.net (Mario Steele) Date: Sun, 11 May 2008 08:44:15 -0500 Subject: [wxruby-users] Choosing a Sizer In-Reply-To: References: Message-ID: Hello Yvon, In this example, my suggestion would be to throw away FlexGridSizer, and actually use a couple of BoxSizers to get your desired effect. Here's how I would do it: vsizer = Wx::BoxSizer.new(Wx::VERTICAL) hsizer = Wx::BoxSizer.new(Wx::HORIZONTAL) # .. create your controls .. # hsizer.add(@button,0,Wx::ADJUST_MINSIZE|Wx::ALL,2) hsizer.add(@guage,1,Wx::GROW|Wx::ALL,2) vsizer.add(hsizer,0,Wx::EXPAND|Wx::ALL,2) vsizer.add(@log,1,Wx::GROW|Wx::ALL,2) self.set_sizer(vsizer) This will create the desired effect that you want, hope this helps. L8ers, On 5/11/08, Yvon Thoraval wrote: > > Following alex advices, i've used both "text/textctrl.rb" and > "etc/threaded.rb" to build my first wxApp. > I've changed the Sizer type mainly (from "Wx::BoxSizer" to > "Wx::FlexGridSizer"). > I didn't find the way to let @log (Wx::TextCtrl) span 2 columns. At the > time of writing it's growing only vertically. > And also how to get 16px filler|spacer|border (for window resizer, > bottom-right corner, on Mac OS X) for SOUTH and EAST and 5/16 px for NORTH > and WEST > > What i want as a layout; > > +---- 5/16 px > | > > +-------------------------------------------------------------------v----------+ > >| |<-- 5/16 > px | > | [ Fixed length Wx::Button ] [ <---------- Growable Wx::Gauge > ----^-----> ] | > > | > | > | > +------------------------------------------------------------------------+ > | > | | > ^ | | > | | > | | | > | | > | | | > | | <------------------ Growable Wx::TextCtrl > -----------------> >| |<-- 16 px > | | > | | | > | | > | | | > | | > V | | > | > +----------------------------------------------------------------v-------+ > | > > | > | > > +------------------------------------------------------------------------------+ > ^ > | > > +---- 16 px > > What i get: > > > +------------------------------------------------------------------------------+ > | > | > | [ Fixed length Wx::Button ] [ <---------- Growable Wx::Gauge > ----------> ] | > | > | > | > +-------------------------+ > | > | | ^ > | | > | | | > | | > | | | > | | > | |Fixed width Wx::TextCtrl > | | > | | | > | | > | | | > | | > | | V > | | > | > +-------------------------+ > | > | > | > > +------------------------------------------------------------------------------+ > > What i've cut'n paste as code: > > The sizer: > > sizer = Wx::FlexGridSizer.new( 2, 2, 5, 5) > sizer.add_growable_col( 1, 1) > sizer.add_growable_row( 1, 1) > > Three items added: > > @button = Wx::Button.new(panel, :label => 'Export') > sizer.add(button, 0, Wx::ADJUST_MINSIZE|Wx::ALL, 2 ) > > @gauge = Wx::Gauge.new(panel, :range => STEPS) > sizer.add(@gauge, 0, Wx::GROW|Wx::ALL, 2) > > @log = LogTextCtrl.new(panel) # (LogTextCtrl < Wx::TextCtrl) > sizer.add(@log, 1, Wx::GROW|Wx::ALL, 2) > > > Yvon > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > -- Mario Steele http://www.trilake.net http://www.ruby-im.net http://rubyforge.org/projects/wxruby/ http://rubyforge.org/projects/wxride/ http://rubyforge.org/projects/vwmc/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From alex at pressure.to Sun May 11 09:55:39 2008 From: alex at pressure.to (Alex Fenton) Date: Sun, 11 May 2008 14:55:39 +0100 Subject: [wxruby-users] Choosing a Sizer In-Reply-To: References: Message-ID: <4826FADB.3090108@pressure.to> Yvon Thoraval wrote: > Following alex advices, i've used both "text/textctrl.rb" and > "etc/threaded.rb" to build my first wxApp. > I've changed the Sizer type mainly (from "Wx::BoxSizer" to > "Wx::FlexGridSizer"). Yeah, ditto what Mario suggested. I think 95% of the time it is easier and more manageable to nest BoxSizers within one another to get complex layouts than it is to use FlexGrid or GridBag. Sizers take few resources so that's not a problem. I've written quite a lot of wxRuby code and I don't think I've ever used anything but BoxSizer/StaticBoxSizer and the occasional specialist sizer like Grid or StdDialogButtonSizer. Aside from the documentation, a good way to get a feel for the way sizer options work together is to look at the "wxSizer.rbw" demo inside "bigdemo", or to use a GUI designer like DialogBlocks where you can see the effect of switching on and off individual options immediately. alex From mario at ruby-im.net Sun May 11 10:03:06 2008 From: mario at ruby-im.net (Mario Steele) Date: Sun, 11 May 2008 09:03:06 -0500 Subject: [wxruby-users] instabilities in wxRuby 1.9.6 In-Reply-To: <7b071a2e0805110540o29281e83q3f2394394c3f964f@mail.gmail.com> References: <7b071a2e0805110540o29281e83q3f2394394c3f964f@mail.gmail.com> Message-ID: Hello Peter, Unfortunatly, the truth of the matter is, that this is a miss or hit problem we've been having lately with wxRuby, and the Ruby 1.8.6 p114. We're restricting the versioning to 114, due to the fact that any later version (The Pre 1.8.7), totally messes up the internal works all together. We got a nice suprise from the p114, which is part of the reason why we are getting instabilities. But truely, it's more of a gotcha on our part, that we should have programmed it differently then what we did. More then likely, if your getting freezes on your app, it segfaulted, but has no console in which to report what is going on. You have to realize, that even though you've worked with wxWidgets and C++ in the past, we're using 3 different libraries to bring wxRuby together. 1.) wxWidgets ofcourse. 2.) SWIG, which gives us our Glue between Ruby and wxWidgets. 3.) Ruby's core libraries. At any point, any one of these libs can and more likely will fail, when we do major revisions to the backend, giving us all kinds of bugs to track down. Often times then not, we end up releasing libraries that are bugged beyond what we can test for, and have to rely on users to find some bugs for us, and create examples for us to find the bugs, and pound out the bugs from the examples. Unfortunatly, due to the change in the Garbage Collection system since Patchlevel 114, they have dis-allowed creation of Objects while in a Garbage Collection Mark/Sweep, which was giving us our biggest headache. Ovious reasons make it smart to not be creating objects while running a GC mark loop, but in our case, we was simply creating a block to iterate over our internal hash of all created wxRuby Objects. So we pretty much had to re-write it to use pure C Ruby Library functions, instead of relying on rb_iterate, like was doing before. This is where our "faults" are coming from mostly. As you can see with the Windows MSVC version of wxRuby, we're having major problems in that area. Which is why among the others here, I'll be glad to be rid of MSVC all together, but alas, we will still be making MSVC versions as long as people still use the MSVC version of Ruby. On the other hand, I'll be working the MinGW version into working, which it has been doing flawlessly (Aside from the bugs ofcourse), without all these problems of needing to create manifests, and installing runtime dlls for several different compiler environments. (5.0, 6.0, 7.0, 8.0, 9.0 20201.0 (I kid there)) Alright, back to work on getting things stable with wxRuby! L8ers, On 5/11/08, Peter Lane wrote: > > I have recently started to use wxRuby, because I have used the wxWidgets > library from C++ for a few years and found it an excellent toolkit. I am > using Ubuntu 8.04 and version 1.9.6 of wxRuby. > > A problem though is a number of instabilities. This may be due to my own > ignorance, but I have usually found C++/wxWidgets, once the program compiles > it will at least stay working, if at times incorrectly. With wxRuby, the > program sometimes just crashes out, or the event handler appears to freeze. > > > The code below reproduces one problem. After opening one or two child > frames and then closing one of them, the program soon fails. I find that > the frames stop receiving events, don't redraw themselves when covered, > etc. Sometimes this happens very quickly, sometimes after a minute or so. > Is this a bug, or should I be doing something different to show/hide child > frames? > > Thanks for any help with this. > > Peter. > > class ChildFrame < Wx::Frame > def initialize parent > super(parent, -1, "Child frame") > > viewMenu = Wx::Menu.new > viewMenu.append(Wx::ID_CLOSE, "Close\tCtrl-W", "Close this window") > evt_menu(Wx::ID_CLOSE) { show false } > > menuBar = Wx::MenuBar.new > menuBar.append(viewMenu, "&View") > set_menu_bar menuBar > end > end > > class TestFrame < Wx::Frame > def initialize > super(nil, -1, "Test Frame") > > menu = Wx::Menu.new > menuItem = Wx::MenuItem.new(menu, -1, "Show child") > menu.append_item menuItem > evt_menu(menuItem) { ChildFrame.new(self).show } > > menuBar = Wx::MenuBar.new > menuBar.append(menu, "&View") > set_menu_bar menuBar > end > end > > class TestApp < Wx::App > def on_init > TestFrame.new.show > end > end > > TestApp.new.main_loop > > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > -- Mario Steele http://www.trilake.net http://www.ruby-im.net http://rubyforge.org/projects/wxruby/ http://rubyforge.org/projects/wxride/ http://rubyforge.org/projects/vwmc/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From bureaux.sebastien at neuf.fr Sun May 11 11:06:51 2008 From: bureaux.sebastien at neuf.fr (sebastien) Date: Sun, 11 May 2008 17:06:51 +0200 Subject: [wxruby-users] wxruby-1.9.7.tar.gz Message-ID: Bonjour, comment est-ce que je fait pour installer wxruby1.9.7? Je ne peut plus l'installer ? partir de rubygems. J'ai t?l?charger "wxruby-1.9.7.tar.gz" et apr?s que faut-il faire? merci sebastien http://beusse.liveror.com/ -------------- section suivante -------------- Une pi?ce jointe HTML a ?t? nettoy?e... URL: From mario at ruby-im.net Sun May 11 11:33:28 2008 From: mario at ruby-im.net (Mario Steele) Date: Sun, 11 May 2008 10:33:28 -0500 Subject: [wxruby-users] wxruby-1.9.7.tar.gz In-Reply-To: References: Message-ID: On Sun, May 11, 2008 at 10:06 AM, sebastien wrote: > Bonjour, comment est-ce que je fait pour installer wxruby1.9.7? > Je ne peut plus l'installer ? partir de rubygems. > J'ai t?l?charger "wxruby-1.9.7.tar.gz" et apr?s que faut-il faire? > [Hello, how is what I am doing to install wxruby1.9.7? I can not install it from rubygems. I download "wxruby-1.9.7.tar.gz" and after that must be done?] Bonjour S?bastien, Actuellement, nous ?prouvons des probl?mes avec 1.9.6 et 1.9.7 de wxRuby, et ont rentr? les binaires pour Windows pierres pr?cieuses, jusqu'? ce que nous pouvons comprendre ce qu'il faut faire, pour que cela fonctionne, une fois de plus droit. S'il vous pla?t garder avec nous, que nous travaillons choses, et vous remercions par avance pour votre patience. [Hello Sebastien, Currently we are having problems with 1.9.6 and 1.9.7 of wxRuby, and have retracted the binary gems for Windows, till we can figure out what to do, to get things working right once more. Please bear with us, as we work things out, and thank you in advance for your patience.] -- Mario Steele http://www.trilake.net http://www.ruby-im.net http://rubyforge.org/projects/wxruby/ http://rubyforge.org/projects/wxride/ http://rubyforge.org/projects/vwmc/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From bureaux.sebastien at neuf.fr Sun May 11 12:38:46 2008 From: bureaux.sebastien at neuf.fr (sebastien) Date: Sun, 11 May 2008 18:38:46 +0200 Subject: [wxruby-users] wxruby-1.9.7.tar.gz Message-ID: Bonjour Mario, j'attend avec patience. Pour l'instant, je suis toujours sur wxruby-1.9.5. merci sebastien http://beusse.liveror.com/ -------------- section suivante -------------- Une pi?ce jointe HTML a ?t? nettoy?e... URL: From yvon.thoraval at gmail.com Sun May 11 13:39:55 2008 From: yvon.thoraval at gmail.com (Yvon Thoraval) Date: Sun, 11 May 2008 19:39:55 +0200 Subject: [wxruby-users] Choosing a Sizer In-Reply-To: References: Message-ID: 2008/5/11 Mario Steele : > Hello Yvon, > > In this example, my suggestion would be to throw away FlexGridSizer, and > actually use a couple of BoxSizers to get your desired effect. Here's how I > would do it: > > vsizer = Wx::BoxSizer.new(Wx::VERTICAL) > hsizer = Wx::BoxSizer.new(Wx::HORIZONTAL) > > # .. create your controls .. # > hsizer.add(@button,0,Wx::ADJUST_MINSIZE|Wx::ALL,2) > hsizer.add(@guage,1,Wx::GROW|Wx::ALL,2) > vsizer.add(hsizer,0,Wx::EXPAND|Wx::ALL,2) > vsizer.add(@log,1,Wx::GROW|Wx::ALL,2) > self.set_sizer(vsizer) > > This will create the desired effect that you want, hope this helps. > > L8ers, hey mario, thanks for the tips ! i'll try that asap... in fact i've added another FlexGridSizer with something like 9 spacers... this is too much i was not so far of the desired result : except the Wx::Gauge which is not aligned verticaly to the Wx::Button on it's left, i've tried : @gauge = Wx::Gauge.new(panel, :range => STEPS) #sizer_top.add(@gauge, 0, Wx::GROW|Wx::ALL, 2) #sizer_top.add(@gauge, 0, Wx::GROW|Wx::ALL|Wx::ALIGN_BOTTOM, 2) sizer_top.add(@gauge, 0, Wx::GROW|Wx::ALL|Wx::ALIGN_CENTER_VERTICAL, 2) without visible effect. yvon -------------- next part -------------- An HTML attachment was scrubbed... URL: From yvon.thoraval at gmail.com Sun May 11 13:44:55 2008 From: yvon.thoraval at gmail.com (Yvon Thoraval) Date: Sun, 11 May 2008 19:44:55 +0200 Subject: [wxruby-users] Choosing a Sizer In-Reply-To: <4826FADB.3090108@pressure.to> References: <4826FADB.3090108@pressure.to> Message-ID: 2008/5/11 Alex Fenton : > Yvon Thoraval wrote: > >> Following alex advices, i've used both "text/textctrl.rb" and >> "etc/threaded.rb" to build my first wxApp. >> I've changed the Sizer type mainly (from "Wx::BoxSizer" to >> "Wx::FlexGridSizer"). >> > > Yeah, ditto what Mario suggested. I think 95% of the time it is easier and > more manageable to nest BoxSizers within one another to get complex layouts > than it is to use FlexGrid or GridBag. Sizers take few resources so that's > not a problem. I've written quite a lot of wxRuby code and I don't think > I've ever used anything but BoxSizer/StaticBoxSizer and the occasional > specialist sizer like Grid or StdDialogButtonSizer. > > Aside from the documentation, a good way to get a feel for the way sizer > options work together is to look at the "wxSizer.rbw" demo inside "bigdemo", > or to use a GUI designer like DialogBlocks where you can see the effect of > switching on and off individual options immediately. > > alex > ok, i'll follow mario's advices and look further to "wxSizer.rbw", my idae of using two Wx::FlexGridSizer with a lot of spacers isn't the right solution. best, yvon -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Tue May 13 08:12:41 2008 From: lists at ruby-forum.com (Sec Retz) Date: Tue, 13 May 2008 14:12:41 +0200 Subject: [wxruby-users] NotebookSizer? / Resizing a listbook Message-ID: <5b1992782beb43d40c4d87fce3df07c5@ruby-forum.com> There seems to be a NotebookSizer in C++ wxWidgets, is it in wxRuby or is it going to be? Not a lot of info to be found about that one. I've been trying to apply sizers to a Listbook but nothing goes at it should be. Nothing is visible until I resize the top frame a little and in best case I can get either horizontal grow but not simultaneous vertical grow. Would anyone mind showing me how am I supposed to use sizers so that the listbook resizes and the panels in a listbook too? Thanks. -- Posted via http://www.ruby-forum.com/. From nochoice at xs4all.nl Tue May 13 11:20:28 2008 From: nochoice at xs4all.nl (Jonathan Maasland) Date: Tue, 13 May 2008 15:20:28 +0000 Subject: [wxruby-users] NotebookSizer? / Resizing a listbook In-Reply-To: <5b1992782beb43d40c4d87fce3df07c5@ruby-forum.com> References: <5b1992782beb43d40c4d87fce3df07c5@ruby-forum.com> Message-ID: <4829B1BC.2050106@xs4all.nl> I wrote two small examples. Take a look. I'm in a bit of a hurry so I couldn't get the simple_notebook.rb example to work 100% properly but I think the example shows a solution to your problem :-) Something alot of people might actually have trouble with is the arguments to .add( ). It's really not that difficult a concept to grasp but difficult to explain. I'm currently writing a wxRuby tutorial and I'm kind of blocked on the subject. Basically most of the layout stuff that you want to do is pretty easy using BoxSizer only. When nesting sizers it is easy to forget when adding sizers to one another to specify the needed proportions and GROW flags. Hope this helps. Jonathan Sec Retz wrote: > There seems to be a NotebookSizer in C++ wxWidgets, is it in wxRuby or > is it going to be? Not a lot of info to be found about that one. > > I've been trying to apply sizers to a Listbook but nothing goes at it > should be. Nothing is visible until I resize the top frame a little and > in best case I can get either horizontal grow but not simultaneous > vertical grow. > > Would anyone mind showing me how am I supposed to use sizers so that the > listbook resizes and the panels in a listbook too? > > Thanks. > -------------- next part -------------- A non-text attachment was scrubbed... Name: listbook.rb Type: application/x-ruby Size: 2802 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: simple_notebook.rb Type: application/x-ruby Size: 1440 bytes Desc: not available URL: From lists at ruby-forum.com Tue May 13 11:32:20 2008 From: lists at ruby-forum.com (Malm Donner) Date: Tue, 13 May 2008 17:32:20 +0200 Subject: [wxruby-users] NotebookSizer? / Resizing a listbook In-Reply-To: <4829B1BC.2050106@xs4all.nl> References: <5b1992782beb43d40c4d87fce3df07c5@ruby-forum.com> <4829B1BC.2050106@xs4all.nl> Message-ID: Jonathan Maasland wrote: > I wrote two small examples. Take a look. I'm in a bit of a hurry so I > couldn't get the simple_notebook.rb example to work 100% properly but I > think the example shows a solution to your problem :-) Wow, thanks. :) Really helpful example for me. -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Thu May 15 15:29:27 2008 From: lists at ruby-forum.com (Pascal Hurni) Date: Thu, 15 May 2008 21:29:27 +0200 Subject: [wxruby-users] [ANN] Reactive - The desktop application framework Message-ID: I'm pleased to announce a new project: Reactive What is that? It's a desktop application framework that is highly inspired by Rails. Thus it is MVC oriented and has built-in features like scaffolds. It currenty uses wx as it's view system. The current release is pre-alpha, but you may already play with it. Refer to http://www.ruby-reactive.org for some help. Pascal -- Posted via http://www.ruby-forum.com/. From Franz.Irlweg.ZNT at wacker.com Fri May 16 03:18:32 2008 From: Franz.Irlweg.ZNT at wacker.com (Irlweg, Franz (ZNT)) Date: Fri, 16 May 2008 09:18:32 +0200 Subject: [wxruby-users] wxruby new version Message-ID: Hello, i miss the grid method "set_col_label_text_orientation" in wxruby 1.9.6 hanks, franz

This communication and any files or attachments transmitted with it may contain information that is copyrighted or confidential and exempt from
disclosure under applicable law. It is intended solely for the use of the individual or the entity to which it is addressed.
If you are not the intended recipient, you are hereby notified that any use, dissemination, or copying of this communication is strictly prohibited.
If you have received this communication in error, please notify us at once so that we may take the appropriate action and avoid troubling you further.
Thank you for your cooperation. Please contact your local IT staff or email info at siltronic.com if you need assistance.
 
Siltronic AG, Sitz München, Hanns-Seidel-Platz 4, 81737 München, Germany. Amtsgericht München HRB 150884
Vorstand: Wilhelm Sittenthaler (Vorsitz), Gerhard Brehm, Paul Lindblad, Joachim Manke, Michael Peterat. Vorsitzender des Aufsichtsrats: Peter-Alexander Wacker

-------------- next part -------------- An HTML attachment was scrubbed... URL: From Franz.Irlweg.ZNT at wacker.com Tue May 20 02:09:21 2008 From: Franz.Irlweg.ZNT at wacker.com (Irlweg, Franz (ZNT)) Date: Tue, 20 May 2008 08:09:21 +0200 Subject: [wxruby-users] wxruby version 1.9.6 Message-ID: Hello all, i#m missing the Grid method "set_col_label_text_orientation" in wxruby 1.9.6 thanks, franz

This communication and any files or attachments transmitted with it may contain information that is copyrighted or confidential and exempt from
disclosure under applicable law. It is intended solely for the use of the individual or the entity to which it is addressed.
If you are not the intended recipient, you are hereby notified that any use, dissemination, or copying of this communication is strictly prohibited.
If you have received this communication in error, please notify us at once so that we may take the appropriate action and avoid troubling you further.
Thank you for your cooperation. Please contact your local IT staff or email info at siltronic.com if you need assistance.
 
Siltronic AG, Sitz München, Hanns-Seidel-Platz 4, 81737 München, Germany. Amtsgericht München HRB 150884
Vorstand: Wilhelm Sittenthaler (Vorsitz), Gerhard Brehm, Paul Lindblad, Joachim Manke, Michael Peterat. Vorsitzender des Aufsichtsrats: Peter-Alexander Wacker

-------------- next part -------------- An HTML attachment was scrubbed... URL: From alex at pressure.to Tue May 20 03:22:58 2008 From: alex at pressure.to (Alex Fenton) Date: Tue, 20 May 2008 08:22:58 +0100 Subject: [wxruby-users] wxruby version 1.9.6 In-Reply-To: References: Message-ID: <48327C52.6090904@pressure.to> Hi Franz Irlweg, Franz (ZNT) wrote: wxruby version 1.9.6 > > i#m missing the Grid method " set_col_label_text_orientation " in > wxruby 1.9.6 > I think I replied to you already about this by email. This method was undocumented in Wx, and was deleted in 1.9.6 as part of a clean up of the headers. However it's been restored in 1.9.7 and works for me on OS X. alex From alex at pressure.to Tue May 20 04:13:51 2008 From: alex at pressure.to (Alex Fenton) Date: Tue, 20 May 2008 09:13:51 +0100 Subject: [wxruby-users] instabilities in wxRuby 1.9.6 In-Reply-To: <7b071a2e0805110540o29281e83q3f2394394c3f964f@mail.gmail.com> References: <7b071a2e0805110540o29281e83q3f2394394c3f964f@mail.gmail.com> Message-ID: <4832883F.7050103@pressure.to> Peter Lane wrote: > I have recently started to use wxRuby, because I have used the > wxWidgets library from C++ for a few years and found it an excellent > toolkit. I am using Ubuntu 8.04 and version 1.9.6 of wxRuby. > > A problem though is a number of instabilities. This may be due to my > own ignorance, but I have usually found C++/wxWidgets, once the > program compiles it will at least stay working, if at times > incorrectly. With wxRuby, the program sometimes just crashes out, or > the event handler appears to freeze. Thanks for the report. I can reproduce it and have filed this on the bug tracker: http://rubyforge.org/tracker/?func=detail&atid=218&aid=20255&group_id=35 I'm not yet sure where the problems lies, between SWIG, wxRuby and Ruby itself. I think some recent "stable" ruby developments have created problems for SWIG-generated code, or it could also be something I've accidentally introduced in 1.9.6. If it's convenient, perhaps could you try with wxRuby 1.9.5 or .4 alex From bureaux.sebastien at neuf.fr Fri May 23 14:28:04 2008 From: bureaux.sebastien at neuf.fr (sebastien) Date: Fri, 23 May 2008 20:28:04 +0200 Subject: [wxruby-users] Rss-wxruby Message-ID: <9939F81008FB40998E6021A7B803CD54@sebastien> Bonjour Alex. J'ai cr?er une application(Rss-wxruby) et je l'ai d?pos?e en t?l?chargement sur le site "Tom's guide". Ils ont cr?er les screenshots, et la probl?me: Il y a des carr?s qui ressortent de partout??? Voil? un url pour l'exemple du probl?me avec les carr?s qui ressortent: http://www.infos-du-net.com/telecharger/Capture-ecran-Rss-wxruby,0302-22046.html et voil? l'url d'une capture que j'ai fait de mon application ? partir de mon pc: http://beusse.liveror.com/images/Rss-wxruby1.bmp Je n'ai pas ce probl?me sur mon pc, je n'ai pas tout ces carr?s qui ressortent. Pourquoi y a t'il ce probl?me en sachant que j'ai un ami qui a aussi ce probl?me sur son pc avec Rss-wxruby. Apparement, les carr?s sont les retours ? la ligne. merci. sebastien http://beusse.liveror.com/ -------------- section suivante -------------- Une pi?ce jointe HTML a ?t? nettoy?e... URL: From mario at ruby-im.net Fri May 23 17:50:33 2008 From: mario at ruby-im.net (Mario Steele) Date: Fri, 23 May 2008 16:50:33 -0500 Subject: [wxruby-users] Rss-wxruby In-Reply-To: <9939F81008FB40998E6021A7B803CD54@sebastien> References: <9939F81008FB40998E6021A7B803CD54@sebastien> Message-ID: On 5/23/08, sebastien wrote: > > Bonjour Alex. > J'ai cr?er une application(Rss-wxruby) et je l'ai d?pos?e en t?l?chargement > sur le site "Tom's guide". Ils ont cr?er les screenshots, et la probl?me: > Il y a des carr?s qui ressortent de partout??? > Voil? un url pour l'exemple du probl?me avec les carr?s qui ressortent: > > http://www.infos-du-net.com/telecharger/Capture-ecran-Rss-wxruby,0302-22046.html > et voil? l'url d'une capture que j'ai fait de mon application ? partir de > mon pc: > http://beusse.liveror.com/images/Rss-wxruby1.bmp > Je n'ai pas ce probl?me sur mon pc, je n'ai pas tout ces carr?s qui > ressortent. > Pourquoi y a t'il ce probl?me en sachant que j'ai un ami qui a aussi ce > probl?me sur son pc avec Rss-wxruby. > Apparement, les carr?s sont les retours ? la ligne. > merci. > sebastien > http://beusse.liveror.com/ > [ Hello Alex. I create an application (Rss-wxruby) and I filed for download on the site "Tom's guide". They create the screenshots, and the problem: There is squares that emerge from everywhere? This is a url for example the problem with squares that stand out: http://www.infos-du-net.com/telecharger/Capture-ecran-Rss-wxruby,0302-22046. html and this is the url of a catch that I made my application from my pc: http://beusse.liveror.com/images/Rss-wxruby1.bmp I do not have this problem on my pc, I do not have all these squares that stand out. Why is there this problem knowing that I have a friend who also has this problem on his pc with Rss-wxruby. Apparently, the squares are the returns to the line. thank you. Sebastien] Bonjour S?bastien, Avez-vous essay? d'utiliser la fen?tre # set_background_colour (SystemSettings.get_colour (SYS_BACKGROUND_COLOUR)) pour voir si cela peut r?gler la bonne couleur pour le fond de la fen?tre elle-m?me? Habituellement, c'est la cause parfois que les fen?tres ne sont pas la bonne couleur d'arri?re-plan. [Hello Sebastien, Have you tried using Window#set_background_colour(SystemSettings.get_colour(SYS_BACKGROUND_COLOUR)) to see if that will set the proper colour for the background of the window itself? Ususally, this is the cause as sometimes the windows do not get the proper background colour set.] -- Mario Steele http://www.trilake.net http://www.ruby-im.net http://rubyforge.org/projects/wxruby/ http://rubyforge.org/projects/wxride/ http://rubyforge.org/projects/vwmc/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From bureaux.sebastien at neuf.fr Sat May 24 02:41:55 2008 From: bureaux.sebastien at neuf.fr (sebastien) Date: Sat, 24 May 2008 08:41:55 +0200 Subject: [wxruby-users] Rss-wxruby Message-ID: <28FFC07DEFB94836B7B62C0AB0C6F080@sebastien> Bonjour Mario, le probl?me n'est pas la couleur de la frame mais les carr?s qui ressortent dans "TreeCtrl" et "CheckListBox". Voir l'url: http://www.infos-du-net.com/telecharger/Capture-ecran-Rss-wxruby,0302-22046.html Je n'ai pas tout ces carr?s qui appara?ssent en fin de ligne(qui sont des retours ? la ligne) quand j'utilise Rss-wxruby sur mon pc. Voir l'url: http://beusse.liveror.com/images/Rss-wxruby1.bmp Quel peut-?tre le probl?me? merci sebastien http://beusse.liveror.com/ -------------- section suivante -------------- Une pi?ce jointe HTML a ?t? nettoy?e... URL: From mario at ruby-im.net Sat May 24 03:05:42 2008 From: mario at ruby-im.net (Mario Steele) Date: Sat, 24 May 2008 02:05:42 -0500 Subject: [wxruby-users] Rss-wxruby In-Reply-To: <28FFC07DEFB94836B7B62C0AB0C6F080@sebastien> References: <28FFC07DEFB94836B7B62C0AB0C6F080@sebastien> Message-ID: <4837BE46.9070903@ruby-im.net> sebastien wrote: > Bonjour Mario, le probl?me n'est pas la couleur de la frame mais les > carr?s qui ressortent dans "TreeCtrl" et "CheckListBox". > Voir l'url: > /http://www.infos-du-net.com/telecharger/Capture-ecran-Rss-wxruby,0302-22046.html/ > Je n'ai pas tout ces carr?s qui appara?ssent en fin de ligne(qui sont > des retours ? la ligne) quand j'utilise Rss-wxruby sur mon pc. > Voir l'url: /http://beusse.liveror.com/images/Rss-wxruby1.bmp/ > Quel peut-?tre le probl?me? > merci > sebastien > http://beusse.liveror.com/ [Hello Mario, the problem is not the colour of the frame but the square that emerge in "TreeCtrl" and "CheckListBox." See url: http://www.infos-du-net.com/telecharger/Capture-ecran-Rss-wxruby ,0302-22046. Html I do not have all these squares that appear at the end of line (which returns to the line) when I Rss-wxruby on my pc. See URL: http://beusse.liveror.com/images/Rss-wxruby1.bmp What may be the problem? thank you Sebastien] Bonjour S?bastien, Je ne m'excuse, je pensais que vous faisaient allusion au bords noirs autour de tous les quatre contr?les que vous avez dans la fen?tre principale. En ce qui concerne cette case, la seule chose que je pouvais penser, c'est qu'il mai ?tre un non-caract?re imprimable. En g?n?ral, Windows a tendance ? imprimer non-caract?res imprimables interface graphique sous Windows, avec un [] bo?te caract?re. Mai Vous voulez v?rifier et assurez-vous que vous n'avez pas un caract?re de retour (10) ou d'une ligne (13) dans la cha?ne que vous utilisez pour fixer l'?tiquette de l'arbre Point. La meilleure fa?on de le faire, est d'utiliser String bande # (), qui supprime tous les caract?res retour / saut de ligne, ainsi que d'espaces ? la fin de la cha?ne. Vous mai ?galement besoin de v?rifier l'onglet caract?res (9). Ce ne sont l? que quelques suggestions. ? peu pr?s, toute non-reconnu caract?re qui peut ?tre imprim? sur une interface GUI, sera repr?sent? par le [] caract?re. Bonne chance, [Hello Sebastien, I do apologize, I thought you were referring to the black borders around all the the four controls you have in the main window. As to that box, the only thing that I could think of, is that it may be a non-printable character. In general, Windows tends to print not-printable characters in Windows GUI, with a [] box character. You may want to check and make sure you don't have a Character Return (10) or a Line Feed (13) in the string that you use to set the label for the Tree Item. The easiest way to do this, is to use String#strip(), which removes any Character Returns / Line Feeds, as well as any spaces at the end of the string. You may also need to check for Tab characters (9). These are just a few suggestions. Pretty much, any non-recognized character that can be properly printed on a GUI Interface, will be represented with the [] character. Good luck,] -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Sun May 25 05:37:40 2008 From: lists at ruby-forum.com (Christos Vasilakis) Date: Sun, 25 May 2008 11:37:40 +0200 Subject: [wxruby-users] Segmentation Fault. Message-ID: Hi there, I am relative new to the wxRuby so please bear with me. I use Ubuntu Hardy Heron 8.04 release. I have installed the wxwidgets C libraries and then did a gem install wxruby The ruby extensions were downloaded and installed correctly. If i do $gem list --local .. wxruby (1.9.7) .. Then I tried to run a simple example "Hello World" as described in the tutorial http://wxruby.rubyforge.org/wiki/wiki.pl?Hello_World The frame is displayed correctly, but when i close the window i get: $ruby testwxruby.rb testwxruby.rb:10: [BUG] Segmentation fault ruby 1.8.6 (2007-09-24) [i486-linux] Aborted I tried to run another example mainly http://wxruby.rubyforge.org/wiki/wiki.pl?Using_Dialogs_To_Talk_To_Users Although the apps starts and works ok, when i close it i get the same message "Segmentation Fault" Is this a known issue? (The wxwidgets library installed in the system as seen by synaptic is 2.8.7.1-0-ubuntu3) and $ gem --version 1.1.1 (The rubygem was installed manually and not using the default that ubuntu comes which is 0.9.4-4) Thanks in advace, Christos -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Sun May 25 06:07:16 2008 From: lists at ruby-forum.com (Christos Vasilakis) Date: Sun, 25 May 2008 12:07:16 +0200 Subject: [wxruby-users] Segmentation Fault. In-Reply-To: References: Message-ID: i forgot to mention the version of ruby $ruby --version ruby 1.8.6 (2007-09-24 patchlevel 111) [i486-linux] This is the default that Ubuntu Hardy comes with. Christos Christos Vasilakis wrote: > Hi there, > > I am relative new to the wxRuby so please bear with me. > > I use Ubuntu Hardy Heron 8.04 release. I have installed the wxwidgets C > libraries > and then did a > > gem install wxruby > > The ruby extensions were downloaded and installed correctly. If i do > > $gem list --local > .. > wxruby (1.9.7) > .. > > Then I tried to run a simple example "Hello World" as described in the > tutorial > > http://wxruby.rubyforge.org/wiki/wiki.pl?Hello_World > > The frame is displayed correctly, but when i close the window i get: > > $ruby testwxruby.rb > testwxruby.rb:10: [BUG] Segmentation fault > ruby 1.8.6 (2007-09-24) [i486-linux] > > Aborted > > I tried to run another example mainly > http://wxruby.rubyforge.org/wiki/wiki.pl?Using_Dialogs_To_Talk_To_Users > > Although the apps starts and works ok, when i close it i get the same > message "Segmentation Fault" > > Is this a known issue? > > (The wxwidgets library installed in the system as seen by synaptic is > 2.8.7.1-0-ubuntu3) > > and > $ gem --version > 1.1.1 > > (The rubygem was installed manually and not using the default that > ubuntu comes which is 0.9.4-4) > > Thanks in advace, > Christos -- Posted via http://www.ruby-forum.com/. From lucaslevin at gmail.com Mon May 26 02:39:07 2008 From: lucaslevin at gmail.com (Lucas Levin) Date: Mon, 26 May 2008 16:39:07 +1000 Subject: [wxruby-users] Segmentation Fault. In-Reply-To: References: Message-ID: <1211783947.8473.1.camel@lucascomputer> I get this as well with every wxruby program I run. I wrote an email/topic about it a month or so back. I have a feeling it is to do with the ruby patchlevel 111. Right now I'mjust living with it and hoping it gets fixed. Woe is me. :( Lucas On Sun, 2008-05-25 at 12:07 +0200, Christos Vasilakis wrote: > i forgot to mention the version of ruby > > $ruby --version > ruby 1.8.6 (2007-09-24 patchlevel 111) [i486-linux] > > This is the default that Ubuntu Hardy comes with. > > Christos > > Christos Vasilakis wrote: > > Hi there, > > > > I am relative new to the wxRuby so please bear with me. > > > > I use Ubuntu Hardy Heron 8.04 release. I have installed the wxwidgets C > > libraries > > and then did a > > > > gem install wxruby > > > > The ruby extensions were downloaded and installed correctly. If i do > > > > $gem list --local > > .. > > wxruby (1.9.7) > > .. > > > > Then I tried to run a simple example "Hello World" as described in the > > tutorial > > > > http://wxruby.rubyforge.org/wiki/wiki.pl?Hello_World > > > > The frame is displayed correctly, but when i close the window i get: > > > > $ruby testwxruby.rb > > testwxruby.rb:10: [BUG] Segmentation fault > > ruby 1.8.6 (2007-09-24) [i486-linux] > > > > Aborted > > > > I tried to run another example mainly > > http://wxruby.rubyforge.org/wiki/wiki.pl?Using_Dialogs_To_Talk_To_Users > > > > Although the apps starts and works ok, when i close it i get the same > > message "Segmentation Fault" > > > > Is this a known issue? > > > > (The wxwidgets library installed in the system as seen by synaptic is > > 2.8.7.1-0-ubuntu3) > > > > and > > $ gem --version > > 1.1.1 > > > > (The rubygem was installed manually and not using the default that > > ubuntu comes which is 0.9.4-4) > > > > Thanks in advace, > > Christos > From lists at ruby-forum.com Mon May 26 10:47:40 2008 From: lists at ruby-forum.com (Marlesson Santana) Date: Mon, 26 May 2008 16:47:40 +0200 Subject: [wxruby-users] App#process_message Message-ID: <70c77d4350e549c47a3411f9312ae84f@ruby-forum.com> how can rewrite the App # process_message to treat the messages of the system? wxruby -- Posted via http://www.ruby-forum.com/. From alex at pressure.to Tue May 27 15:55:00 2008 From: alex at pressure.to (Alex Fenton) Date: Tue, 27 May 2008 20:55:00 +0100 Subject: [wxruby-users] App#process_message In-Reply-To: <70c77d4350e549c47a3411f9312ae84f@ruby-forum.com> References: <70c77d4350e549c47a3411f9312ae84f@ruby-forum.com> Message-ID: <483C6714.1030700@pressure.to> Marlesson Santana wrote: > how can rewrite the App # process_message to treat the messages of the > system? Could you explain a bit more about what you want. I read the wxWidgets documentation for this method but I don't know what a "Windows message" is, or how you get one in Windows. We can't wrap the method if we don't know what argument type it should take in Ruby. alex From bureaux.sebastien at neuf.fr Wed May 28 12:09:56 2008 From: bureaux.sebastien at neuf.fr (sebastien) Date: Wed, 28 May 2008 18:09:56 +0200 Subject: [wxruby-users] animation Message-ID: <246B2F42C8AA44629BAE7C77A41A447E@sebastien> Bonjour. A propos d' "animation", quel animation est il possible d'ins?rer, et est ce que vous pourriez me donnez un exemple de code avec une animation pour que je puisse voir un peu ce que cel? peu donner? merci sebastien http://beusse.liveror.com/ -------------- section suivante -------------- Une pi?ce jointe HTML a ?t? nettoy?e... URL: From lists at ruby-forum.com Sat May 31 09:53:45 2008 From: lists at ruby-forum.com (Gabriel Rios) Date: Sat, 31 May 2008 15:53:45 +0200 Subject: [wxruby-users] App#process_message In-Reply-To: <483C6714.1030700@pressure.to> References: <70c77d4350e549c47a3411f9312ae84f@ruby-forum.com> <483C6714.1030700@pressure.to> Message-ID: <1051f8d6d901efeb2b4a0a438a0ee705@ruby-forum.com> Alex Fenton wrote: > Marlesson Santana wrote: >> how can rewrite the App # process_message to treat the messages of the >> system? > Could you explain a bit more about what you want. I read the wxWidgets > documentation for this method but I don't know what a "Windows message" > is, or how you get one in Windows. We can't wrap the method if we don't > know what argument type it should take in Ruby. > > alex Hi alex, Our problem consist in communicate with an external device which connect through the ethernet port. we need to receive the messages sent by it so we can handle. (those messages are events like keydown, keyup, mouse movement and etc.) hope u can give me any direction. gabriel (ps: marlesson is my cowork) -- Posted via http://www.ruby-forum.com/.