From flyerhzm at gmail.com Tue May 1 06:34:14 2007 From: flyerhzm at gmail.com (huang zhimin) Date: Tue, 1 May 2007 18:34:14 +0800 Subject: [Wxruby-users] Text of Status Bar always disappear Message-ID: The first time I create the status bar by call @sb = create_status_bar @sb.set_status_text('Welcome to use Code Line Statistics') it works perfect. But when I click a tool bar button that trigger an event, and call @sb.set_status_text('Finish') if the mouse is on the button, the text of status bar is "Finish"; but once the mouse is out of the button, the text of status bar becomes empty. It's too strange -- flyerhzm at hotmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-users/attachments/20070501/8228f9ba/attachment.html From flyerhzm at gmail.com Tue May 1 06:47:50 2007 From: flyerhzm at gmail.com (huang zhimin) Date: Tue, 1 May 2007 18:47:50 +0800 Subject: [Wxruby-users] How to insert item to ListCtrl Message-ID: The only way I know to use ListCtrl is to call ListCtrl#set_item_count and define a callback function on_get_item_text(item, col) How can I insert Listitem one by one, that each Listitem is composed with several string -- flyerhzm at hotmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-users/attachments/20070501/683b2b84/attachment.html From alex at pressure.to Tue May 1 06:54:41 2007 From: alex at pressure.to (Alex Fenton) Date: Tue, 01 May 2007 11:54:41 +0100 Subject: [Wxruby-users] How to insert item to ListCtrl In-Reply-To: References: Message-ID: <46371C71.8050700@pressure.to> huang zhimin wrote: > The only way I know to use ListCtrl is to call ListCtrl#set_item_count > and define a callback function on_get_item_text(item, col) This is only necessary if using a ListCtrl that is created with the style LC_VIRTUAL. This is only really useful for managing very large lists where it would be inefficient to load everything in advance. > How can I insert Listitem one by one, that each Listitem is composed > with several string Use ListCtrl.insert_item. This accepts a string, optionally with an integer specifying the image icon that should be used for this item. Alternatively you can pass it an instance of Wx::ListItem. This allows very fine-grained control of the text style and colour of individual elements. hth alex From sleight42 at gmail.com Tue May 1 11:53:40 2007 From: sleight42 at gmail.com (Evan Light) Date: Tue, 1 May 2007 11:53:40 -0400 Subject: [Wxruby-users] Bitmap memory leaks (Bug 251)? Message-ID: I see that this problem was noted a while ago (http://rubyforge.org/ tracker/index.php?func=detail&aid=251&group_id=35&atid=218) but it seems not to have received much attention. Any chance that it will be looked at anytime soon? So far, I prefer wxRuby to Ruby/Tk because of that closer coupling with the native window manager. However, the memory leak is just murdering me. Unfortunately, I cannot merely load and cache bitmaps easily as I am modifying them (drawing text on them) at run time. While I could cache the unique bitmaps with the drawn text, it seemed more of a nuisance than it was worth. Evan Light IMs (all): sleight42 http://evan.tiggerpalace.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-users/attachments/20070501/99d1f5ab/attachment.html From raine at virta.info Tue May 1 16:11:04 2007 From: raine at virta.info (Raine Virta) Date: Tue, 01 May 2007 23:11:04 +0300 Subject: [Wxruby-users] Problem with threads Message-ID: <46379ED8.7010001@virta.info> Hello, Any ideas how to make frames not to freeze when running events? I tried using threads, but they won't finish, and when using Thread.join the effect is same as not using threads at all (= gui freezing). Thanks, Raine From mario at ruby-im.net Tue May 1 21:08:36 2007 From: mario at ruby-im.net (Mario Steele) Date: Tue, 01 May 2007 20:08:36 -0500 Subject: [Wxruby-users] XRC Problem In-Reply-To: <4634AB20.3020803@pressure.to> References: <46336407.6060000@ruby-im.net> <46338E9D.2050708@pressure.to> <46347A2B.9040707@ruby-im.net> <4634AB20.3020803@pressure.to> Message-ID: <4637E494.8090008@ruby-im.net> Alex Fenton wrote: > Hi Mario > >> I figured out a way around my problem. Instead of utilizing >> XmlResource#load_frame_subclass(), I just use XmlResource#load_frame, >> and when I get the Wx::Frame, I just extend it with a Module, which >> works just fine. >> > I'm glad you found a workaround. You've helped pin down a longstanding > bug that's now fixed in subversion. > > The listbook.rb sample was misleading; the correct way to initialize a > layout from XRC in a subclass of Frame is: > > class MyFrame < Wx::Frame > def initialize(...) > super() # note, no arguments to parent class constructor > $xml.load_frame_subclass(self, nil, 'ID_FRAME') > > This won't work with 0.0.39 because the empty constructor for Wx::Frame > isn't available. But in future versions you'll be able to use normal > class inheritance with XRC + Frames. > > Thanks for the report > > alex > Not a problem, I'm glad to see that will be rolling around, cause that'll make things easier. Not that my solution isn't a good one, just makes it a bit more difficult, having to write modules, and extend the object directly. And I kinda figured that it won't work with 0.0.39, cause I tried that before going the route that listbook.rb uses. And it did complain, no empty initialize method. So go figure. Thanks for the continued support. wxRuby2 is comming out to be a good re-vamp, and more stable with each release. Mario Steele -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-users/attachments/20070501/53d94175/attachment.html From alex at pressure.to Wed May 2 04:57:59 2007 From: alex at pressure.to (Alex Fenton) Date: Wed, 02 May 2007 09:57:59 +0100 Subject: [Wxruby-users] Bitmap memory leaks (Bug 251)? In-Reply-To: References: Message-ID: <46385297.6060901@pressure.to> Evan Light wrote: > I see that this problem was noted a while ago > (http://rubyforge.org/tracker/index.php?func=detail&aid=251&group_id=35&atid=218 > ) > but it seems not to have received much attention. Don't know about the other devs, but I'd forgotten this bug mentioned any specific issue rather than 'we should check for memory leaks'. Bugs related to over-eager SWIG/Ruby memory management have had higher priority because they cause segfaults. SWIG/Ruby was pretty underdeveloped when this bug was created, but features added since should make it a lot easier to reclaim objects that have fallen out of scope. > Any chance that it will be looked at anytime soon? Yes. Thanks for the report. Since Bitmap is such a widely used class that we should try and fix this specific one for the upcoming 0.40 release. Generally, please do file leaking classes as specific bugs, ideally with code samples. > Unfortunately, I cannot merely load and cache bitmaps easily as I am > modifying them (drawing text on them) at run time. While I could > cache the unique bitmaps with the drawn text, it seemed more of a > nuisance than it was worth. wxRuby should definitely be doing the work, not you. Are you using MemoryDC? alex From alex at pressure.to Wed May 2 05:02:41 2007 From: alex at pressure.to (Alex Fenton) Date: Wed, 02 May 2007 10:02:41 +0100 Subject: [Wxruby-users] Problem with threads In-Reply-To: <46379ED8.7010001@virta.info> References: <46379ED8.7010001@virta.info> Message-ID: <463853B1.6070207@pressure.to> Raine Virta wrote: > Any ideas how to make frames not to freeze when running events? I tried > using threads, but they won't finish, and when using Thread.join the > effect is same as not using threads at all (= gui freezing). > Could you give us a bit more detail about the problem - is it that an event handler launches some long-running code? There was a recent discussio on preventing non-GUI threads being starved of execution time starting here: http://rubyforge.org/pipermail/wxruby-users/2007-April/003047.html and what seems the best solution: http://rubyforge.org/pipermail/wxruby-users/2007-April/003055.html alex From sleight42 at gmail.com Wed May 2 17:02:41 2007 From: sleight42 at gmail.com (Evan Light) Date: Wed, 2 May 2007 17:02:41 -0400 Subject: [Wxruby-users] Bitmap memory leaks (Bug 251)? In-Reply-To: <46385297.6060901@pressure.to> References: <46385297.6060901@pressure.to> Message-ID: On May 2, 2007, at 4:57 AM, Alex Fenton wrote: > wxRuby should definitely be doing the work, not you. > I certainly appreciate the ethic. ;-) > Are you using MemoryDC? By way of using the DC provided by the yield call within Bitmap#new, yes. Evan Light IMs (all): sleight42 http://evan.tiggerpalace.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-users/attachments/20070502/2458c67e/attachment.html From raine at virta.info Wed May 2 19:09:51 2007 From: raine at virta.info (Raine Virta) Date: Thu, 03 May 2007 02:09:51 +0300 Subject: [Wxruby-users] Problem with threads In-Reply-To: <463853B1.6070207@pressure.to> References: <46379ED8.7010001@virta.info> <463853B1.6070207@pressure.to> Message-ID: <46391A3F.3000609@virta.info> Alex Fenton wrote: > Raine Virta wrote: > >> Any ideas how to make frames not to freeze when running events? I tried >> using threads, but they won't finish, and when using Thread.join the >> effect is same as not using threads at all (= gui freezing). >> >> > Could you give us a bit more detail about the problem - is it that an > event handler launches some long-running code? > > There was a recent discussio on preventing non-GUI threads being starved > of execution time starting here: > > http://rubyforge.org/pipermail/wxruby-users/2007-April/003047.html > > and what seems the best solution: > > http://rubyforge.org/pipermail/wxruby-users/2007-April/003055.html > > alex > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > Yes, event handler launches some code that could take a while. I also tried what you suggested, here's the whole script: http://pastie.caboo.se/private/zikfdphzngzmo5jx3z Lines 225, 250 and 260+ are significant. Most likely I'm doing something wrong but I can't figure out what. The problem is still that the thread won't run completely. From mario at ruby-im.net Thu May 3 02:34:29 2007 From: mario at ruby-im.net (Mario Steele) Date: Thu, 03 May 2007 01:34:29 -0500 Subject: [Wxruby-users] Problem with threads In-Reply-To: <46391A3F.3000609@virta.info> References: <46379ED8.7010001@virta.info> <463853B1.6070207@pressure.to> <46391A3F.3000609@virta.info> Message-ID: <46398275.9030804@ruby-im.net> Raine Virta wrote: > Alex Fenton wrote: > >> Raine Virta wrote: >> >> >>> Any ideas how to make frames not to freeze when running events? I tried >>> using threads, but they won't finish, and when using Thread.join the >>> effect is same as not using threads at all (= gui freezing). >>> >>> >>> >> Could you give us a bit more detail about the problem - is it that an >> event handler launches some long-running code? >> >> There was a recent discussio on preventing non-GUI threads being starved >> of execution time starting here: >> >> http://rubyforge.org/pipermail/wxruby-users/2007-April/003047.html >> >> and what seems the best solution: >> >> http://rubyforge.org/pipermail/wxruby-users/2007-April/003055.html >> >> alex >> _______________________________________________ >> wxruby-users mailing list >> wxruby-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/wxruby-users >> >> > Yes, event handler launches some code that could take a while. I also > tried what you suggested, here's the whole script: > > http://pastie.caboo.se/private/zikfdphzngzmo5jx3z > > Lines 225, 250 and 260+ are significant. > > Most likely I'm doing something wrong but I can't figure out what. The > problem is still that the thread won't run completely. > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > > Hey Raine, I've looked over your code, and ran a few test runs on my system here. I was able to run it, and it would download the pictures, but would take long intermittent times (Longer then what it actually takes to download the picture) Part of the problem, that I can see, is that with dealing with TCP Sockets, that Ruby will not go into Non-Blocking mode, and sometimes, that may cause wxRuby to throw off it's timing, and may cause the what seems like an long time to run, actually is just taking a bit for it to complete. Part of the reason why I wish wxRuby2 still had the Sockets built in. Even though, Ruby has that functionality, and it's stable, and good, it leaves much to be desired when attempting to interface with a GUI, which causes part of the problems with Blocking of UI Events. Atleast with the wxRuby interface, the Already existing handlers for Sockets would allow the GUI to respond, cause all the events for handling both Sockets, and UI events was built into the main_loop thread. But since that has been opted out, a work around needs to be developed to prevent what is going on with your program, from occuring. What I can report, is that the downloading of the Pictures do occur faster, if you tap on the random button a few times, but at the same time, the Random sometimes acts slow and causes the UI to freeze up. I'm thinking, this is cause your querying the PHP script you have to randomly generate a name, and send it back to the client. Correct me if I'm wrong, but that's what I read from the script. Only thing I can suggest, is read up on Socket, and look for the way that Ruby changes a Socket from Blocking to Non-Blocking, to allow the UI to respond. L8ers, Mario Steele -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-users/attachments/20070503/5e08db4c/attachment.html From alex at pressure.to Thu May 3 04:28:35 2007 From: alex at pressure.to (Alex Fenton) Date: Thu, 03 May 2007 09:28:35 +0100 Subject: [Wxruby-users] Problem with threads In-Reply-To: <46398275.9030804@ruby-im.net> References: <46379ED8.7010001@virta.info> <463853B1.6070207@pressure.to> <46391A3F.3000609@virta.info> <46398275.9030804@ruby-im.net> Message-ID: <46399D33.9040106@pressure.to> Mario Steele wrote: > Part of the problem, that I can see, is that with dealing with TCP > Sockets, that Ruby will not go into Non-Blocking mode, and sometimes, > that may cause wxRuby to throw off it's timing, and may cause the what > seems like an long time to run, actually is just taking a bit for it > to complete. Part of the reason why I wish wxRuby2 still had the > Sockets built in. Generally the idea is to encourage the use of ruby's cross-platform abstractions of eg socket over Wx's classes, but I'm not absolutely opposed to porting Wx::Socket if they're going to work better with the GUI. Certainly seems the case with Wx::Timer vs 'timeout' alex From alex at pressure.to Thu May 3 04:34:16 2007 From: alex at pressure.to (Alex Fenton) Date: Thu, 03 May 2007 09:34:16 +0100 Subject: [Wxruby-users] Bitmap memory leaks (Bug 251)? In-Reply-To: References: <46385297.6060901@pressure.to> Message-ID: <46399E88.5090305@pressure.to> Evan Light wrote: > On May 2, 2007, at 4:57 AM, Alex Fenton wrote: > >> wxRuby should definitely be doing the work, not you. >> >> > > I certainly appreciate the ethic. ;-) I've tracked down why Wx::Bitmap is leaking. There's an important fix to be made that will improve wxRuby2 memory usage across the board, but applying it is likely to destabilise other things for a bit. So I'm minded to attempt it after releasing 0.40 so we can existing improvements out there. I can probably give you an interim patch just for Wx::Bitmap if needed and you're willing to compile. alex From sleight42 at gmail.com Thu May 3 10:08:13 2007 From: sleight42 at gmail.com (Evan Light) Date: Thu, 3 May 2007 10:08:13 -0400 Subject: [Wxruby-users] Bitmap memory leaks (Bug 251)? In-Reply-To: <46399E88.5090305@pressure.to> References: <46385297.6060901@pressure.to> <46399E88.5090305@pressure.to> Message-ID: <7DA19BC4-D3A7-4178-A524-5DD46D38B4D0@gmail.com> Definitely. The application that I'm working on, an alternate accessible front end for Skype on Mac OS X, promises to benefit a lot of people. It will be a more effective front end for folks if I can use the wxRuby "EX_METAL" style to hide the window controls. I have no idea how to do that with Ruby/Tk. On May 3, 2007, at 4:34 AM, Alex Fenton wrote: > Evan Light wrote: >> On May 2, 2007, at 4:57 AM, Alex Fenton wrote: >> >>> wxRuby should definitely be doing the work, not you. >>> >>> >> >> I certainly appreciate the ethic. ;-) > I've tracked down why Wx::Bitmap is leaking. There's an important > fix to > be made that will improve wxRuby2 memory usage across the board, but > applying it is likely to destabilise other things for a bit. So I'm > minded to attempt it after releasing 0.40 so we can existing > improvements out there. I can probably give you an interim patch just > for Wx::Bitmap if needed and you're willing to compile. > > alex > > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users Evan Light IMs (all): sleight42 Skype-In: (703) 531-8484 http://evan.tiggerpalace.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-users/attachments/20070503/46f0d9ff/attachment.html From sleight42 at gmail.com Thu May 3 10:47:27 2007 From: sleight42 at gmail.com (Evan Light) Date: Thu, 3 May 2007 10:47:27 -0400 Subject: [Wxruby-users] Just have to ask but... Message-ID: <0D759063-A990-4C44-B637-C4C4219423BB@gmail.com> .... where do you get the time to work on all of this, Alex? I'm constantly scraping for time (and consciousness) to work on code in my off hours... Evan Light IMs (all): sleight42 http://evan.tiggerpalace.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-users/attachments/20070503/bd083ee8/attachment.html From mario at ruby-im.net Thu May 3 21:26:06 2007 From: mario at ruby-im.net (Mario Steele) Date: Thu, 03 May 2007 20:26:06 -0500 Subject: [Wxruby-users] Problem with threads In-Reply-To: <46399D33.9040106@pressure.to> References: <46379ED8.7010001@virta.info> <463853B1.6070207@pressure.to> <46391A3F.3000609@virta.info> <46398275.9030804@ruby-im.net> <46399D33.9040106@pressure.to> Message-ID: <463A8BAE.5050609@ruby-im.net> Alex Fenton wrote: > Generally the idea is to encourage the use of ruby's cross-platform > abstractions of eg socket over Wx's classes, but I'm not absolutely > opposed to porting Wx::Socket if they're going to work better with the GUI. > > Certainly seems the case with Wx::Timer vs 'timeout' > > alex > I'm all for using Ruby's cross-platform abstractions, when appropriate. But yes, as pointed out, this is not one of those cases. It's part of the reason why I got into wxWidgets a long time ago, cause of the problems that can occur across platforms when dealing with Sockets. If your willing to do it, I'm all for it, cause my current project is going to be heavily relying on Sockets, and I'd rather not run into the same problems. Anyways, thanks for a great stable release Alex. It's looking great. Mario Steele From alex at pressure.to Fri May 4 16:08:51 2007 From: alex at pressure.to (Alex Fenton) Date: Fri, 04 May 2007 21:08:51 +0100 Subject: [Wxruby-users] Bitmap memory leaks (Bug 251)? In-Reply-To: <7DA19BC4-D3A7-4178-A524-5DD46D38B4D0@gmail.com> References: <46385297.6060901@pressure.to> <46399E88.5090305@pressure.to> <7DA19BC4-D3A7-4178-A524-5DD46D38B4D0@gmail.com> Message-ID: <463B92D3.5020908@pressure.to> Evan Light wrote: > Definitely. Evan - I think this patch should resolve memory usage with Wx::Bitmap. No warranty if it melts your Apple, but let us know how it goes. Hopefully we can generalise this and integrate it before too long. > The application that I'm working on, an alternate accessible front end > for Skype on Mac OS X, promises to benefit a lot of people. It will > be a more effective front end for folks if I can use the wxRuby > "EX_METAL" style to hide the window controls. I have /no idea/ how to > do that with Ruby/Tk. Sounds really interesting. Similarly being able to use the small and mini control variants on OS X is a big sell for me a -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: bitmap_gc_fix.patch Url: http://rubyforge.org/pipermail/wxruby-users/attachments/20070504/b59664bb/attachment.pl From alex at pressure.to Fri May 4 19:31:31 2007 From: alex at pressure.to (Alex Fenton) Date: Sat, 05 May 2007 00:31:31 +0100 Subject: [Wxruby-users] Text of Status Bar always disappear In-Reply-To: References: Message-ID: <463BC253.60901@pressure.to> huang zhimin wrote: > The first time I create the status bar by call > @sb = create_status_bar > @sb.set_status_text('Welcome to use Code Line Statistics') > it works perfect. But when I click a tool bar button that trigger an > event, and call > @sb.set_status_text('Finish') > if the mouse is on the button, the text of status bar is "Finish"; but > once the mouse is out of the button, the text of status bar becomes empty. Could you show us a bit more code? I added the following in the minimal.rb sample but it seems to work as I'd expect @sb = create_status_bar(2) @sb.set_status_text("Welcome to wxRuby!") button = Wx::Button.new(self, -1, 'Press me') evt_button(button.get_id) { @sb.set_status_text('Pressed') } alex From sleight42 at gmail.com Fri May 4 20:32:15 2007 From: sleight42 at gmail.com (Evan Light) Date: Fri, 4 May 2007 20:32:15 -0400 Subject: [Wxruby-users] Bitmap memory leaks (Bug 251)? In-Reply-To: <463B92D3.5020908@pressure.to> References: <46385297.6060901@pressure.to> <46399E88.5090305@pressure.to> <7DA19BC4-D3A7-4178-A524-5DD46D38B4D0@gmail.com> <463B92D3.5020908@pressure.to> Message-ID: <2564FADB-0EBD-458C-8243-327AC18E44BC@gmail.com> And here I thought that I was going to have to do a build! I'll give it a shot. Thanks! On May 4, 2007, at 4:08 PM, Alex Fenton wrote: > Evan Light wrote: >> Definitely. > Evan - I think this patch should resolve memory usage with > Wx::Bitmap. No warranty if it melts your Apple, but let us know how > it goes. Hopefully we can generalise this and integrate it before > too long. >> The application that I'm working on, an alternate accessible front >> end for Skype on Mac OS X, promises to benefit a lot of people. >> It will be a more effective front end for folks if I can use the >> wxRuby "EX_METAL" style to hide the window controls. I have /no >> idea/ how to do that with Ruby/Tk. > Sounds really interesting. Similarly being able to use the small > and mini control variants on OS X is a big sell for me > > a > Index: swig/fixdeleting.rb > =================================================================== > --- swig/fixdeleting.rb (revision 1001) > +++ swig/fixdeleting.rb (working copy) > @@ -55,7 +55,8 @@ > found_director_constructor = true > end > # class specific constructor > - if(line.index(director_class_name+"::"+director_class_name)) > + if(line.index(director_class_name+"::"+director_class_name)) and > + director_class_name != 'SwigDirector_wxBitmap' > # make a note of this object > lines = [line] > lines << '#ifdef wxDEBUG' > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users Evan Light IMs (all): sleight42 http://evan.tiggerpalace.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-users/attachments/20070504/bf670623/attachment-0001.html From alex at pressure.to Sat May 5 04:42:54 2007 From: alex at pressure.to (Alex Fenton) Date: Sat, 05 May 2007 09:42:54 +0100 Subject: [Wxruby-users] Bitmap memory leaks (Bug 251)? In-Reply-To: <2564FADB-0EBD-458C-8243-327AC18E44BC@gmail.com> References: <46385297.6060901@pressure.to> <46399E88.5090305@pressure.to> <7DA19BC4-D3A7-4178-A524-5DD46D38B4D0@gmail.com> <463B92D3.5020908@pressure.to> <2564FADB-0EBD-458C-8243-327AC18E44BC@gmail.com> Message-ID: <463C438E.7090808@pressure.to> Evan Light wrote: > And here I thought that I was going to have to do a build! I'll give > it a shot. Sorry, I should have explained - this patches one of the build process files. You'd need to download the source tar.gz, apply this patch, then compile for it to work. If you haven't got the build kit set up already, I'd suggest waiting a few days to 0.40 is out, otherwise you'll have to install different versions of wxWidgets. alex From sleight42 at gmail.com Sat May 5 20:05:10 2007 From: sleight42 at gmail.com (Evan Light) Date: Sat, 5 May 2007 20:05:10 -0400 Subject: [Wxruby-users] Bitmap memory leaks (Bug 251)? In-Reply-To: <463C438E.7090808@pressure.to> References: <46385297.6060901@pressure.to> <46399E88.5090305@pressure.to> <7DA19BC4-D3A7-4178-A524-5DD46D38B4D0@gmail.com> <463B92D3.5020908@pressure.to> <2564FADB-0EBD-458C-8243-327AC18E44BC@gmail.com> <463C438E.7090808@pressure.to> Message-ID: <80D02442-1114-41A4-8AA4-9A9AD201F20E@gmail.com> If it's coming in a few days, I can wait. Glad to hear that you may have found it, though. While I may have to write more code for Wx, I prefer the result over Tk. On May 5, 2007, at 4:42 AM, Alex Fenton wrote: > Evan Light wrote: >> And here I thought that I was going to have to do a build! I'll give >> it a shot. > > Sorry, I should have explained - this patches one of the build process > files. You'd need to download the source tar.gz, apply this patch, > then > compile for it to work. > > If you haven't got the build kit set up already, I'd suggest waiting a > few days to 0.40 is out, otherwise you'll have to install different > versions of wxWidgets. > > alex > > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users Evan Light IMs (all): sleight42 Skype-In: (703) 531-8484 http://evan.tiggerpalace.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-users/attachments/20070505/3584a499/attachment.html From sleight42 at gmail.com Sun May 6 22:07:20 2007 From: sleight42 at gmail.com (Evan Light) Date: Sun, 6 May 2007 22:07:20 -0400 Subject: [Wxruby-users] Bitmap memory leaks (Bug 251)? In-Reply-To: <463B92D3.5020908@pressure.to> References: <46385297.6060901@pressure.to> <46399E88.5090305@pressure.to> <7DA19BC4-D3A7-4178-A524-5DD46D38B4D0@gmail.com> <463B92D3.5020908@pressure.to> Message-ID: <07D020F8-7183-49E7-B4DE-AF276BE50FC2@gmail.com> I've got the beta of my Skype app ready to go. I just need that 0.40 release. Very tempted to do a build myself. Is the environment that painful to set up the first time? BTW, if you've never tried it rubyscript2exe is a wonderful thing! On May 4, 2007, at 4:08 PM, Alex Fenton wrote: > Evan Light wrote: >> Definitely. > Evan - I think this patch should resolve memory usage with > Wx::Bitmap. No warranty if it melts your Apple, but let us know how > it goes. Hopefully we can generalise this and integrate it before > too long. >> The application that I'm working on, an alternate accessible front >> end for Skype on Mac OS X, promises to benefit a lot of people. >> It will be a more effective front end for folks if I can use the >> wxRuby "EX_METAL" style to hide the window controls. I have /no >> idea/ how to do that with Ruby/Tk. > Sounds really interesting. Similarly being able to use the small > and mini control variants on OS X is a big sell for me > > a > Index: swig/fixdeleting.rb > =================================================================== > --- swig/fixdeleting.rb (revision 1001) > +++ swig/fixdeleting.rb (working copy) > @@ -55,7 +55,8 @@ > found_director_constructor = true > end > # class specific constructor > - if(line.index(director_class_name+"::"+director_class_name)) > + if(line.index(director_class_name+"::"+director_class_name)) and > + director_class_name != 'SwigDirector_wxBitmap' > # make a note of this object > lines = [line] > lines << '#ifdef wxDEBUG' > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users Evan Light IMs (all): sleight42 Skype-In: (703) 531-8484 http://evan.tiggerpalace.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-users/attachments/20070506/e6841ec2/attachment.html From gcarcass at gmail.com Mon May 7 10:48:54 2007 From: gcarcass at gmail.com (Christian Cruz) Date: Mon, 7 May 2007 23:48:54 +0900 Subject: [Wxruby-users] Is there any IDE (event driven) for wxRuby? Message-ID: <8d87eafc0705070748t265e9f2as7b9c4feec8249e07@mail.gmail.com> Hello, I'm completely newbie to wxRuby, in fact to Ruby language as well, but I'm completely in love with it!! I'm not a programmer, dunno maaaaaaaaany "technical things" but I'm doing my best. I Installed wxWidgets and wxRuby, the samples files run perfect, I was wondering... IS THERE ANY IDE FOR WXRUBY? something like REALbasic or Xcode Interface Builder, I mean, something EVENT DRIVEN, something in which you could drag and drop visual components of a graphic interface and then deal JUST with the code that a button, for example, executes. By the way, I'm using Mac OSX 10.4.9 (PPC) Thanks in advance!!!. -- ------------------------------ Watanabe Carcass ------------------------------ gcarcass at gmail.com ........................................ "Consciousness . . . is the phenomenon whereby the universe's very existence is made known."(Roger Penrose) From alex at pressure.to Mon May 7 16:46:34 2007 From: alex at pressure.to (Alex Fenton) Date: Mon, 07 May 2007 21:46:34 +0100 Subject: [Wxruby-users] Bitmap memory leaks (Bug 251)? In-Reply-To: <80D02442-1114-41A4-8AA4-9A9AD201F20E@gmail.com> References: <46385297.6060901@pressure.to> <46399E88.5090305@pressure.to> <7DA19BC4-D3A7-4178-A524-5DD46D38B4D0@gmail.com> <463B92D3.5020908@pressure.to> <2564FADB-0EBD-458C-8243-327AC18E44BC@gmail.com> <463C438E.7090808@pressure.to> <80D02442-1114-41A4-8AA4-9A9AD201F20E@gmail.com> Message-ID: <463F902A.2080801@pressure.to> Evan Light wrote: > If it's coming in a few days, I can wait. Glad to hear that you may > have found it, though. The source tarball for 0.0.40 is available now; binary builds to follow - I'll make an announce when they're all up. The compile toolkit's not so hard to install, just quite a lot of compiling the first time around. > While I may have to write more code for Wx, I prefer the result over Tk. Have you tried using WxSugar - it's intended to reduce the verbosity of wxRuby code - I find it takes about 30% fewer lines to do the same thing. alex From sleight42 at gmail.com Mon May 7 17:33:17 2007 From: sleight42 at gmail.com (Evan Light) Date: Mon, 7 May 2007 17:33:17 -0400 Subject: [Wxruby-users] Bitmap memory leaks (Bug 251)? In-Reply-To: <463F902A.2080801@pressure.to> References: <46385297.6060901@pressure.to> <46399E88.5090305@pressure.to> <7DA19BC4-D3A7-4178-A524-5DD46D38B4D0@gmail.com> <463B92D3.5020908@pressure.to> <2564FADB-0EBD-458C-8243-327AC18E44BC@gmail.com> <463C438E.7090808@pressure.to> <80D02442-1114-41A4-8AA4-9A9AD201F20E@gmail.com> <463F902A.2080801@pressure.to> Message-ID: <520F8BEB-8D0A-46AF-A035-3B26C11B51DF@gmail.com> On May 7, 2007, at 4:46 PM, Alex Fenton wrote: >> While I may have to write more code for Wx, I prefer the result >> over Tk. > Have you tried using WxSugar - it's intended to reduce the > verbosity of > wxRuby code - I find it takes about 30% fewer lines to do the same > thing. That's what I get for not RTFMing enough on the main page of the site! Indeed, no, I have not! Evan Light IMs (all): sleight42 http://evan.tiggerpalace.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-users/attachments/20070507/284387ce/attachment-0001.html From mario at ruby-im.net Tue May 8 03:11:38 2007 From: mario at ruby-im.net (Mario Steele) Date: Tue, 08 May 2007 02:11:38 -0500 Subject: [Wxruby-users] Is there any IDE (event driven) for wxRuby? In-Reply-To: <8d87eafc0705070748t265e9f2as7b9c4feec8249e07@mail.gmail.com> References: <8d87eafc0705070748t265e9f2as7b9c4feec8249e07@mail.gmail.com> Message-ID: <464022AA.3040207@ruby-im.net> Christian Cruz wrote: > Hello, I'm completely newbie to wxRuby, in fact to Ruby language as > well, but I'm completely in love with it!! > > I'm not a programmer, dunno maaaaaaaaany "technical things" but I'm > doing my best. > > I Installed wxWidgets and wxRuby, the samples files run perfect, I was > wondering... > > IS THERE ANY IDE FOR WXRUBY? something like REALbasic or Xcode > Interface Builder, I mean, something EVENT DRIVEN, something in which > you could drag and drop visual components of a graphic interface and > then deal JUST with the code that a button, for example, executes. > > By the way, I'm using Mac OSX 10.4.9 (PPC) > > Thanks in advance!!!. > Hey Christian, Let me be the first to welcome you to wxRuby and Ruby in general. It's going to take you a bit to learn all the things involved with wxRuby and Ruby, but as you go along, you will get the hang of it. My personal suggestion, on an IDE that's easy, intuitve, and works fairly well, is wxGlade. It's not built in Ruby (Booo on that), but it is very easy to work with. May take a bit to learn, but you should be able to get the hang of it easily enough. My suggestion (as that's what I do), is to create the project, and have it export the "Code" to an XRC File. And XRC File is an XML Resource File, which is used by wxRuby to create your windows from the file. You can create the entire window, or just a portion of that window if you want. It's my personal pick for anyone who's starting out learning wxWidgets in general. Plus, it is cross-platform, and should work on any platform that Python and wxPython can be installed on. With Mac OS X 10.4.9, you should have a repository manager, or installer system, that allows you to install packages from the internet. Try searching in that for Python and wxPython. Then you can grab the wxGlade from here: http://wxglade.sourceforge.net Good luck in your search, and may the Ruby be with you! Mario Steele From gcarcass at gmail.com Tue May 8 03:29:58 2007 From: gcarcass at gmail.com (Christian Cruz) Date: Tue, 8 May 2007 16:29:58 +0900 Subject: [Wxruby-users] Is there any IDE (event driven) for wxRuby? In-Reply-To: <464022AA.3040207@ruby-im.net> References: <8d87eafc0705070748t265e9f2as7b9c4feec8249e07@mail.gmail.com> <464022AA.3040207@ruby-im.net> Message-ID: <8d87eafc0705080029s483c5a0amc68ee4e78a09cb5f@mail.gmail.com> Hey Mario, Finally I understood the whole concept of what wxWidgets are, I thought it was an IDE in itself I didn't understand the concept of libraries and that stuff, but now I have it clear... I think, je je je. I'm using OSX 10.4.9(PPC), I already installed wxWidgets, wxRuby and wxPython, everything is working smoothly. Just as you pointed out, I downloaded wxPython so I can use wxGlade(is up and running!!) Can you tell me a little more about ruby scripts and wxGlade use? (please in simple language, until last week computers where a magical box for me, je je je, I dunno how da' hell my computer is still running after compiling, building, installing...ing, things I didn't know before at all! je je je) Are there any tutorials somewhere to study from and follow step by step explanations? On 5/8/07, Mario Steele wrote: > Christian Cruz wrote: > > Hello, I'm completely newbie to wxRuby, in fact to Ruby language as > > well, but I'm completely in love with it!! > > > > I'm not a programmer, dunno maaaaaaaaany "technical things" but I'm > > doing my best. > > > > I Installed wxWidgets and wxRuby, the samples files run perfect, I was > > wondering... > > > > IS THERE ANY IDE FOR WXRUBY? something like REALbasic or Xcode > > Interface Builder, I mean, something EVENT DRIVEN, something in which > > you could drag and drop visual components of a graphic interface and > > then deal JUST with the code that a button, for example, executes. > > > > By the way, I'm using Mac OSX 10.4.9 (PPC) > > > > Thanks in advance!!!. > > > > Hey Christian, > > Let me be the first to welcome you to wxRuby and Ruby in general. It's > going to take you a bit to learn all the things involved with wxRuby and > Ruby, but as you go along, you will get the hang of it. My personal > suggestion, on an IDE that's easy, intuitve, and works fairly well, is > wxGlade. It's not built in Ruby (Booo on that), but it is very easy to > work with. May take a bit to learn, but you should be able to get the > hang of it easily enough. My suggestion (as that's what I do), is to > create the project, and have it export the "Code" to an XRC File. And > XRC File is an XML Resource File, which is used by wxRuby to create your > windows from the file. You can create the entire window, or just a > portion of that window if you want. It's my personal pick for anyone > who's starting out learning wxWidgets in general. > > Plus, it is cross-platform, and should work on any platform that Python > and wxPython can be installed on. With Mac OS X 10.4.9, you should have > a repository manager, or installer system, that allows you to install > packages from the internet. Try searching in that for Python and > wxPython. Then you can grab the wxGlade from here: > http://wxglade.sourceforge.net > > Good luck in your search, and may the Ruby be with you! > > Mario Steele > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > -- ------------------------------ Watanabe Carcass ------------------------------ gcarcass at gmail.com ........................................ "Consciousness . . . is the phenomenon whereby the universe's very existence is made known."(Roger Penrose) From mario at ruby-im.net Wed May 9 01:55:31 2007 From: mario at ruby-im.net (Mario Steele) Date: Wed, 09 May 2007 00:55:31 -0500 Subject: [Wxruby-users] Is there any IDE (event driven) for wxRuby? In-Reply-To: <8d87eafc0705080029s483c5a0amc68ee4e78a09cb5f@mail.gmail.com> References: <8d87eafc0705070748t265e9f2as7b9c4feec8249e07@mail.gmail.com> <464022AA.3040207@ruby-im.net> <8d87eafc0705080029s483c5a0amc68ee4e78a09cb5f@mail.gmail.com> Message-ID: <46416253.7040102@ruby-im.net> Christian Cruz wrote: > Hey Mario, > > Finally I understood the whole concept of what wxWidgets are, I > thought it was an IDE in itself I didn't understand the concept of > libraries and that stuff, but now I have it clear... I think, je je > je. > > I'm using OSX 10.4.9(PPC), I already installed wxWidgets, wxRuby and > wxPython, everything is working smoothly. > > Just as you pointed out, I downloaded wxPython so I can use wxGlade(is > up and running!!) Can you tell me a little more about ruby scripts and > wxGlade use? (please in simple language, until last week computers > where a magical box for me, je je je, I dunno how da' hell my computer > is still running after compiling, building, installing...ing, things I > didn't know before at all! je je je) > > Are there any tutorials somewhere to study from and follow step by > step explanations? > Hey Christian, Glad to see your learning things as you go. You'll be surprised as you move along in learning programming, that compiling, building and installing will come naturally. OS X and Linux are great platforms to learn how to program on. (Especially since OS X is a Hybrid of FreeBSD / Linux and MacOS) As for the explinations of Ruby Scripts and such, I'll email you off list about. The examples, though, would be the ones that are provided with wxRuby. If you installed wxRuby through a gem, like is the natural cause and effect to do the installation for it is, you simply have to look to where Ruby drops it libraries. Normally, this is under '/usr/lib/ruby/'. Gems, on the other hand, fall under a different structure then the normal Ruby includes. These usually fall under '/usr/lib/ruby/gems/1.8/gems/' where the actual package is installed to. Those are paths that I refer to, and it's time for you to learn a programmer's best friend. A Terminal / Console. It's a bit late for me right now to give you some information, but I'm going to send you an email, and give you some more insight into Ruby Scripts, and using wxGlade. It'll proabbly be tomorrow before I'll get anything to you. So, keep an eye out. Mario Steele From carcass.dev at gmail.com Wed May 9 04:21:24 2007 From: carcass.dev at gmail.com (dev carcass) Date: Wed, 9 May 2007 17:21:24 +0900 Subject: [Wxruby-users] Is there any IDE (event driven) for wxRuby? In-Reply-To: <46416253.7040102@ruby-im.net> References: <8d87eafc0705070748t265e9f2as7b9c4feec8249e07@mail.gmail.com> <464022AA.3040207@ruby-im.net> <8d87eafc0705080029s483c5a0amc68ee4e78a09cb5f@mail.gmail.com> <46416253.7040102@ruby-im.net> Message-ID: Hey Mario! Thanks a lot!! I will be waiting for your mail. Best regards, Chris. On 5/9/07, Mario Steele wrote: > Christian Cruz wrote: > > Hey Mario, > > > > Finally I understood the whole concept of what wxWidgets are, I > > thought it was an IDE in itself I didn't understand the concept of > > libraries and that stuff, but now I have it clear... I think, je je > > je. > > > > I'm using OSX 10.4.9(PPC), I already installed wxWidgets, wxRuby and > > wxPython, everything is working smoothly. > > > > Just as you pointed out, I downloaded wxPython so I can use wxGlade(is > > up and running!!) Can you tell me a little more about ruby scripts and > > wxGlade use? (please in simple language, until last week computers > > where a magical box for me, je je je, I dunno how da' hell my computer > > is still running after compiling, building, installing...ing, things I > > didn't know before at all! je je je) > > > > Are there any tutorials somewhere to study from and follow step by > > step explanations? > > > > Hey Christian, > > Glad to see your learning things as you go. You'll be surprised as you > move along in learning programming, that compiling, building and > installing will come naturally. OS X and Linux are great platforms to > learn how to program on. (Especially since OS X is a Hybrid of FreeBSD / > Linux and MacOS) As for the explinations of Ruby Scripts and such, I'll > email you off list about. The examples, though, would be the ones that > are provided with wxRuby. If you installed wxRuby through a gem, like is > the natural cause and effect to do the installation for it is, you > simply have to look to where Ruby drops it libraries. Normally, this is > under '/usr/lib/ruby/'. Gems, on the other hand, fall under a different > structure then the normal Ruby includes. These usually fall under > '/usr/lib/ruby/gems/1.8/gems/' where the actual package is installed to. > Those are paths that I refer to, and it's time for you to learn a > programmer's best friend. A Terminal / Console. > > It's a bit late for me right now to give you some information, but I'm > going to send you an email, and give you some more insight into Ruby > Scripts, and using wxGlade. It'll proabbly be tomorrow before I'll get > anything to you. So, keep an eye out. > > Mario Steele > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > From alex at pressure.to Wed May 9 04:47:50 2007 From: alex at pressure.to (Alex Fenton) Date: Wed, 09 May 2007 09:47:50 +0100 Subject: [Wxruby-users] Is there any IDE (event driven) for wxRuby? In-Reply-To: <46416253.7040102@ruby-im.net> References: <8d87eafc0705070748t265e9f2as7b9c4feec8249e07@mail.gmail.com> <464022AA.3040207@ruby-im.net> <8d87eafc0705080029s483c5a0amc68ee4e78a09cb5f@mail.gmail.com> <46416253.7040102@ruby-im.net> Message-ID: <46418AB6.3020404@pressure.to> Mario Steele wrote: > It's a bit late for me right now to give you some information, but I'm > going to send you an email, and give you some more insight into Ruby > Scripts, and using wxGlade. Mario - if you wanted to post on this list about using wxGlade and ruby, I'd certainly read it with great interest. alex From auguusstt at gmail.com Wed May 9 20:50:28 2007 From: auguusstt at gmail.com (peng.chen) Date: Thu, 10 May 2007 08:50:28 +0800 Subject: [Wxruby-users] wxRuby2 0.0.40 Message-ID: Congratulations, wxRuby2 0.0.40 but,where is 0.0.40 mswin32.gem? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-users/attachments/20070510/49cb1816/attachment.html From sleight42 at gmail.com Wed May 9 21:48:42 2007 From: sleight42 at gmail.com (Evan Light) Date: Wed, 9 May 2007 21:48:42 -0400 Subject: [Wxruby-users] wxRuby2 0.0.40 bitmap memory leak In-Reply-To: References: Message-ID: Sorry, Alex, but it looks like it's still there. Evan Light IMs (all): sleight42 http://evan.tiggerpalace.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-users/attachments/20070509/e8bc14f7/attachment.html From sean.m.long at gmail.com Wed May 9 23:57:31 2007 From: sean.m.long at gmail.com (Sean Long) Date: Wed, 9 May 2007 20:57:31 -0700 Subject: [Wxruby-users] wxRuby2 0.0.40 In-Reply-To: References: Message-ID: Peng, I just uploaded the windows gem. The problem is that the guy who normally makes that gem seems to be unavailable right now. So I fixed-up my Windows install and created the gem. Sean On 5/9/07, peng. chen wrote: > Congratulations, wxRuby2 0.0.40 > but,where is 0.0.40 mswin32.gem? > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > From auguusstt at gmail.com Thu May 10 03:30:54 2007 From: auguusstt at gmail.com (peng.chen) Date: Thu, 10 May 2007 15:30:54 +0800 Subject: [Wxruby-users] wxRuby2 0.0.40 In-Reply-To: References: Message-ID: thanks , wxWidgets 2.8 ,aui ,cool !!! ^_^ ** On 5/10/07, Sean Long wrote: > > Peng, > > I just uploaded the windows gem. The problem is that the guy who > normally makes that gem seems to be unavailable right now. So I > fixed-up my Windows install and created the gem. > > Sean > > On 5/9/07, peng. chen wrote: > > Congratulations, wxRuby2 0.0.40 > > but,where is 0.0.40 mswin32.gem? > > > > _______________________________________________ > > 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 -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-users/attachments/20070510/26d311e8/attachment-0001.html From alex at pressure.to Thu May 10 04:06:34 2007 From: alex at pressure.to (Alex Fenton) Date: Thu, 10 May 2007 09:06:34 +0100 Subject: [Wxruby-users] wxRuby2 0.0.40 bitmap memory leak In-Reply-To: References: Message-ID: <4642D28A.90404@pressure.to> Evan Light wrote: > Sorry, Alex, but it looks like it's still there. OK - did you apply the patch I sent to 0.0.40 and recompile? I didn't try and fix the leak in 0.0.40 because we were too close to the release to test it thoroughly enough for regressions. alex From sleight42 at gmail.com Thu May 10 07:29:09 2007 From: sleight42 at gmail.com (Evan Light) Date: Thu, 10 May 2007 07:29:09 -0400 Subject: [Wxruby-users] wxRuby2 0.0.40 bitmap memory leak In-Reply-To: <4642D28A.90404@pressure.to> References: <4642D28A.90404@pressure.to> Message-ID: No, I hadn't. I thought that the fix would be in 0.40 as you had mentioned earlier. Guess I'll have to try a build. Are there definitive notes anywhere regarding what I need to download to do a build? I assume that there are dependencies outside of just wxRuby or am I incorrect? Evan Light IMs (all): sleight42 http://evan.tiggerpalace.com On May 10, 2007, at 4:06 AM, Alex Fenton wrote: > Evan Light wrote: >> Sorry, Alex, but it looks like it's still there. > OK - did you apply the patch I sent to 0.0.40 and recompile? > > I didn't try and fix the leak in 0.0.40 because we were too close to > the release to test it thoroughly enough for regressions. > > 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: http://rubyforge.org/pipermail/wxruby-users/attachments/20070510/fc72b022/attachment.html From alex at pressure.to Thu May 10 07:54:30 2007 From: alex at pressure.to (Alex Fenton) Date: Thu, 10 May 2007 12:54:30 +0100 Subject: [Wxruby-users] wxRuby2 0.0.40 bitmap memory leak In-Reply-To: References: <4642D28A.90404@pressure.to> Message-ID: <464307F6.9060801@pressure.to> Evan Light wrote: > No, I hadn't. I thought that the fix would be in 0.40 as you had > mentioned earlier. Sorry that wasn't clear. I just suggested waiting for 0.0.40 so you didn't have to build wxWidgets twice. It's a reasonably risky patch that I didn't want to apply just before releasing. > Guess I'll have to try a build. Are there definitive notes anywhere > regarding what I need to download to do a build? I assume that there > are dependencies outside of just wxRuby or am I incorrect? This page is pretty comprehensive - scroll down to 'building from source' http://wxruby.rubyforge.org/wiki/wiki.pl?Installation http://wxruby.rubyforge.org/wiki/wiki.pl?HowToBuildWxWidgets alex From alex at pressure.to Thu May 10 14:23:55 2007 From: alex at pressure.to (Alex Fenton) Date: Thu, 10 May 2007 19:23:55 +0100 Subject: [Wxruby-users] wxRuby2 preview 0.0.40 released Message-ID: <4643633B.3040801@pressure.to> Hi I'm pleased to announce that wxruby2 preview 0.0.40 is now available as source and binary gems for four platforms from https://rubyforge.org/frs/?group_id=35 CHANGES - upgrade to 2.8.3 - added the AUI (Advanced User Interface) classes and a sample - fixed some serious bugs with using paint() / DCs on Windows - lots of other important bugfixes - updates to sample and docs - See Changelog for full details - one of our longest lists yet... The biggest change in this release is that wxRuby is now based on 2.8.3, the latest version of wxWidgets. This version has new classes, and extends the capabilities of existing ones. It also fixes a number of bugs on various platforms. We haven't added all the new features yet - but hopefully enough to whet your appetite and provide a solid platform for ongoing development. API CHANGES There are a small number of incompatible API changes. - ClientDC.new and PaintDC.new cannot now be called directly - always use the paint() method to get a DC for drawing on a window - A number of deprecated methods have been removed - evt_destroy and evt_create are now evt_window_destroy and evt_window_create, and accept zero arguments - ComboBox#get_selection_range is now ComboBox#get_text_selection_range CREDITS Many thanks to Sean Long for providing binary builds for OS X/i686 and Windows, as well as many code patches, and improvements for docs and samples, and to Artur Kuptel whose major patch kickstarted the upgrade to 2.8.3, as well as pinning down the spectacular (in a bad way) paint bugs on Windows. Also thanks to everyone who contributed bug reports - these are a really important contribution to wxRuby. NEXT STEPS The plan for the next release is to get to something we can call beta quality. We'll be looking at improving memory management to plug some leaks, and some other changes that should slightly improve speed and reduce binary size. Because of the upgrade to 2.8, there are once again quite a lot of new classes and methods that are available but not yet ported, but which could be done with minimal knowledge of C++/SWIG. These include RichTextCtrl - a sophisticated "WordPad"-style text editor, and various Pickers and Hyperlink controls. cheers alex From sleight42 at gmail.com Thu May 10 22:32:52 2007 From: sleight42 at gmail.com (Evan Light) Date: Thu, 10 May 2007 22:32:52 -0400 Subject: [Wxruby-users] wxRuby2 0.0.40 bitmap memory leak In-Reply-To: <464307F6.9060801@pressure.to> References: <4642D28A.90404@pressure.to> <464307F6.9060801@pressure.to> Message-ID: <2DC00ED3-99DC-4D3C-972E-2EEFFEE0790F@gmail.com> When I copied the wxMac source to my machine and did a ./configure (with all of the parameters listed on the wx site for OS X), it said that I was missing wx-config.in. I copied configure.in to that name and ran configure with some success -- except that it said that I was missing "wx-config-inplace.in". Help me, Obi-wan Kenobi. You're my only hope. Evan Light IMs (all): sleight42 http://evan.tiggerpalace.com On May 10, 2007, at 7:54 AM, Alex Fenton wrote: > Evan Light wrote: >> No, I hadn't. I thought that the fix would be in 0.40 as you had >> mentioned earlier. > Sorry that wasn't clear. I just suggested waiting for 0.0.40 so you > didn't have to build wxWidgets twice. It's a reasonably risky patch > that > I didn't want to apply just before releasing. >> Guess I'll have to try a build. Are there definitive notes anywhere >> regarding what I need to download to do a build? I assume that there >> are dependencies outside of just wxRuby or am I incorrect? > This page is pretty comprehensive - scroll down to 'building from > source' > > http://wxruby.rubyforge.org/wiki/wiki.pl?Installation > > http://wxruby.rubyforge.org/wiki/wiki.pl?HowToBuildWxWidgets > > 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: http://rubyforge.org/pipermail/wxruby-users/attachments/20070510/eecf31be/attachment.html From sleight42 at gmail.com Thu May 10 22:44:54 2007 From: sleight42 at gmail.com (Evan Light) Date: Thu, 10 May 2007 22:44:54 -0400 Subject: [Wxruby-users] wxRuby2 0.0.40 bitmap memory leak In-Reply-To: <2DC00ED3-99DC-4D3C-972E-2EEFFEE0790F@gmail.com> References: <4642D28A.90404@pressure.to> <464307F6.9060801@pressure.to> <2DC00ED3-99DC-4D3C-972E-2EEFFEE0790F@gmail.com> Message-ID: <98DD065E-0E6D-4AD2-92A6-DF42867A43CC@gmail.com> On May 10, 2007, at 10:32 PM, Evan Light wrote: > When I copied the wxMac source to my machine and did a ./configure > (with all of the parameters listed on the wx site for OS X), it > said that I was missing wx-config.in. I copied configure.in to > that name and ran configure with some success -- except that it > said that I was missing "wx-config-inplace.in". > > Help me, Obi-wan Kenobi. You're my only hope. FYI, I'm building it through DarwinPorts instead. Will see if that works. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-users/attachments/20070510/6330a232/attachment.html From mario at ruby-im.net Thu May 10 23:42:26 2007 From: mario at ruby-im.net (Mario Steele) Date: Thu, 10 May 2007 22:42:26 -0500 Subject: [Wxruby-users] Is there any IDE (event driven) for wxRuby? In-Reply-To: <46418AB6.3020404@pressure.to> References: <8d87eafc0705070748t265e9f2as7b9c4feec8249e07@mail.gmail.com> <464022AA.3040207@ruby-im.net> <8d87eafc0705080029s483c5a0amc68ee4e78a09cb5f@mail.gmail.com> <46416253.7040102@ruby-im.net> <46418AB6.3020404@pressure.to> Message-ID: <4643E622.8010400@ruby-im.net> Alex Fenton wrote: > Mario Steele wrote: > >> It's a bit late for me right now to give you some information, but I'm >> going to send you an email, and give you some more insight into Ruby >> Scripts, and using wxGlade. >> > Mario - if you wanted to post on this list about using wxGlade and ruby, > I'd certainly read it with great interest. > > alex I'll cover the part on wxGlade here, compared to covering the part about Ruby Scripts with Chris, as I'm pretty sure, most people here know how to program in Ruby. As for a Guide to wxGlade, I'm going to write a Introduction tutorial, for everyone to look over, and put it on my website. I'm working on this as I write this, and hopefully will be able to have something preliminary up. Mario Steele -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-users/attachments/20070510/a0c8adec/attachment-0001.html From carcass.dev at gmail.com Fri May 11 00:07:32 2007 From: carcass.dev at gmail.com (dev carcass) Date: Fri, 11 May 2007 13:07:32 +0900 Subject: [Wxruby-users] Is there any IDE (event driven) for wxRuby? In-Reply-To: <4643E622.8010400@ruby-im.net> References: <8d87eafc0705070748t265e9f2as7b9c4feec8249e07@mail.gmail.com> <464022AA.3040207@ruby-im.net> <8d87eafc0705080029s483c5a0amc68ee4e78a09cb5f@mail.gmail.com> <46416253.7040102@ruby-im.net> <46418AB6.3020404@pressure.to> <4643E622.8010400@ruby-im.net> Message-ID: Thanks Mario, looking forward for that tutorial! ... I just started with Ruby, so dunno much about it, but I'll do my best. By the way, what's your website? On 5/11/07, Mario Steele wrote: > > Alex Fenton wrote: > Mario Steele wrote: > > > It's a bit late for me right now to give you some information, but I'm > going to send you an email, and give you some more insight into Ruby > Scripts, and using wxGlade. > > Mario - if you wanted to post on this list about using wxGlade and ruby, > I'd certainly read it with great interest. > > alex > I'll cover the part on wxGlade here, compared to covering the part about > Ruby Scripts with Chris, as I'm pretty sure, most people here know how to > program in Ruby. > > As for a Guide to wxGlade, I'm going to write a Introduction tutorial, for > everyone to look over, and put it on my website. I'm working on this as I > write this, and hopefully will be able to have something preliminary up. > > Mario Steele > > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > From sleight42 at gmail.com Fri May 11 00:33:27 2007 From: sleight42 at gmail.com (Evan Light) Date: Fri, 11 May 2007 00:33:27 -0400 Subject: [Wxruby-users] wxRuby2 0.0.40 bitmap memory leak In-Reply-To: <464307F6.9060801@pressure.to> References: <4642D28A.90404@pressure.to> <464307F6.9060801@pressure.to> Message-ID: <231F5005-37F3-4D8F-AAAB-2F84DA196F71@gmail.com> Built and installed. My memory leak is a bit better but it's still there. If it helps at all, below is the code that gets kicked off when my timer executes (infinite loop executing every 5 seconds). In short, I create the following items on each loop: X many buttons (destroyed at the beginning of each loop) 1 Bitmap per button 1 Size object per button And that's basically it. See code below if that helps at all. Is it PEBKAC or is there still a memory leak in WxRuby to be ironed out yet? If so, feel free to pitch me more fixes. I'm more than willing to rebuild and test. def create_bitmap_text_button(labels, parent, color=:green, params = {}) size = params.has_key?(:size) ? params[:size] : size=Size.new ($BTN_WIDTH,$BTN_HEIGHT) pos = params.has_key?(:pos) ? params[:pos] : DEFAULT_POSITION font = params.has_key?(:font) ? params[:font] : DEFAULT_FONT bitmap = case color when :green: Bitmap.new(GREEN_IMG, BITMAP_TYPE_GIF) when :yellow: Bitmap.new(YELLOW_IMG, BITMAP_TYPE_GIF) when :red: Bitmap.new(RED_IMG, BITMAP_TYPE_GIF) end bitmap.draw do |dc| dc.set_font font dc.set_background_mode TRANSPARENT dc.set_text_foreground BLACK extent = dc.get_text_extent(labels[0]) extent_y = extent[1] * labels.size label_no = 0 labels.each do |label| extent = dc.get_text_extent(label) text_x = (size.get_width - extent[0]) / 2 text_y = (size.get_height - extent_y) / 2 + extent[1] * label_no dc.draw_text label, text_x, text_y label_no += 1 end end btn = BitmapButton.new(parent, -1, bitmap, pos) end def create_button_per_friend @friends.map do |f| labels = [] labels << f.name color = case f.onlinestatus when "DND": :red when "ONLINE": :green else :yellow end btn = create_bitmap_text_button labels, @frame, color btn.set_min_size Size.new(150,150) evt_button(btn.get_id) do call = Skype.call f proc = Proc.new { |parent| handle_hangup call, parent } ButtonDialog.new(:parent =>@frame, :title => "Hang up call?", :label => "Hang up call", :command => proc, :color => :red).show_modal end btn end end # Adds one button per online Skype contact to the frame def redraw_friends_buttons @friend_btns.each { |b| b.destroy} if @friend_btns sizer = BoxSizer.new(VERTICAL) if (sizer = @frame.get_sizer).nil? @frame.set_sizer(sizer) if @frame.get_sizer.nil? @friends = Skype.online_friends.sort @frame.set_client_size($BTN_WIDTH, $BTN_HEIGHT * @friends.size) @friend_btns = create_button_per_friend @friend_btns.each { |b| sizer.add(b, 1, GROW|ALL, 2) } sizer.layout @frame.show end Evan Light IMs (all): sleight42 http://evan.tiggerpalace.com On May 10, 2007, at 7:54 AM, Alex Fenton wrote: > Evan Light wrote: >> No, I hadn't. I thought that the fix would be in 0.40 as you had >> mentioned earlier. > Sorry that wasn't clear. I just suggested waiting for 0.0.40 so you > didn't have to build wxWidgets twice. It's a reasonably risky patch > that > I didn't want to apply just before releasing. >> Guess I'll have to try a build. Are there definitive notes anywhere >> regarding what I need to download to do a build? I assume that there >> are dependencies outside of just wxRuby or am I incorrect? > This page is pretty comprehensive - scroll down to 'building from > source' > > http://wxruby.rubyforge.org/wiki/wiki.pl?Installation > > http://wxruby.rubyforge.org/wiki/wiki.pl?HowToBuildWxWidgets > > 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: http://rubyforge.org/pipermail/wxruby-users/attachments/20070511/e5d6f4e4/attachment.html From mario at ruby-im.net Fri May 11 01:26:29 2007 From: mario at ruby-im.net (Mario Steele) Date: Fri, 11 May 2007 00:26:29 -0500 Subject: [Wxruby-users] Is there any IDE (event driven) for wxRuby? In-Reply-To: References: <8d87eafc0705070748t265e9f2as7b9c4feec8249e07@mail.gmail.com> <464022AA.3040207@ruby-im.net> <8d87eafc0705080029s483c5a0amc68ee4e78a09cb5f@mail.gmail.com> <46416253.7040102@ruby-im.net> <46418AB6.3020404@pressure.to> <4643E622.8010400@ruby-im.net> Message-ID: <4643FE85.50206@ruby-im.net> dev carcass wrote: > Thanks Mario, looking forward for that tutorial! > ... I just started with Ruby, so dunno much about it, but I'll do my best. > > By the way, what's your website? > I have two websites that I run. I kinda store stuff on both, so depends on what I do. LOL But I have it setup here: http://www.trilake.net/wxGladeTut/ This is what I have so far, just a basic introduction, and explanation of each part of the wxGlade interface. Nothing that really shows how wxRuby interfaces with XRC. I'm going to work on that next, and probably end up doing something like what Ruby-Gnome2 does for Glade, only for wxRuby, so that we can generate some wrappers automatically for generated XRC files. Anyways, enjoy, feedback welcomed. And remember, this is just an initial version. From carcass.dev at gmail.com Sun May 13 04:07:08 2007 From: carcass.dev at gmail.com (dev carcass) Date: Sun, 13 May 2007 17:07:08 +0900 Subject: [Wxruby-users] Is there any IDE (event driven) for wxRuby? In-Reply-To: <4643FE85.50206@ruby-im.net> References: <8d87eafc0705070748t265e9f2as7b9c4feec8249e07@mail.gmail.com> <464022AA.3040207@ruby-im.net> <8d87eafc0705080029s483c5a0amc68ee4e78a09cb5f@mail.gmail.com> <46416253.7040102@ruby-im.net> <46418AB6.3020404@pressure.to> <4643E622.8010400@ruby-im.net> <4643FE85.50206@ruby-im.net> Message-ID: Hey Mario! I really appreaciate what you are doing with the Tutorial for wxGlade, thanks. Also, I wanted yo ask you, is there any difference between wxGlade and GLADE? I mean, of course they are different pieces of software, but regarding the use of RUBY aren't they pretty much the same? I downloaded Glade for my Notebook with UBUNTU Linux(now I'm trying to run it on my desktop G5 via MACPORTS) and did some practices, it seems to be more "intuitive" than wxGlade. Maybe I'm mistaking completely, but just wanted to know. Best regards, Chris. From alex at pressure.to Mon May 14 18:21:52 2007 From: alex at pressure.to (Alex Fenton) Date: Mon, 14 May 2007 23:21:52 +0100 Subject: [Wxruby-users] wxRuby2 0.0.40 bitmap memory leak In-Reply-To: <231F5005-37F3-4D8F-AAAB-2F84DA196F71@gmail.com> References: <4642D28A.90404@pressure.to> <464307F6.9060801@pressure.to> <231F5005-37F3-4D8F-AAAB-2F84DA196F71@gmail.com> Message-ID: <4648E100.9000900@pressure.to> Hi Evan Light wrote: > My memory leak is a bit better but it's still there. What I sent will fix Wx::Bitmap but it is likely still leaking on other classes. I'm working on a proper fix for the next release. > If it helps at all, below is the code that gets kicked off when my > timer executes (infinite loop executing every 5 seconds). In short, I > create the following items on each loop: If there's any way of re- using some of the key variables here, it might reduce memory consumption in the interim. This might be a good idea anyway - creating new buttons willl probably always be slower than hiding them and showing them within in a sizer. > X many buttons (destroyed at the beginning of each loop) > 1 Bitmap per button > 1 Size object per button > > And that's basically it. See code below if that helps at all. Is it > PEBKAC or is there still a memory leak in WxRuby to be ironed out yet? No I think it's wxRuby ;) alwz From sleight42 at gmail.com Mon May 14 18:30:12 2007 From: sleight42 at gmail.com (Evan Light) Date: Mon, 14 May 2007 18:30:12 -0400 Subject: [Wxruby-users] wxRuby2 0.0.40 bitmap memory leak In-Reply-To: <4648E100.9000900@pressure.to> References: <4642D28A.90404@pressure.to> <464307F6.9060801@pressure.to> <231F5005-37F3-4D8F-AAAB-2F84DA196F71@gmail.com> <4648E100.9000900@pressure.to> Message-ID: <7087E3E7-B4EF-4875-909E-D63CA2B36368@gmail.com> Yeah. I was originally contemplating caching the WxButtons internally but then you offered to try to fix it. ;-) I'm going to go with the caching mechanism. It's a minor nuisance but I should be able to do it in a few lines of code. Evan Light IMs (all): sleight42 http://evan.tiggerpalace.com On May 14, 2007, at 6:21 PM, Alex Fenton wrote: > Hi > > Evan Light wrote: >> My memory leak is a bit better but it's still there. > What I sent will fix Wx::Bitmap but it is likely still leaking on > other > classes. I'm working on a proper fix for the next release. >> If it helps at all, below is the code that gets kicked off when my >> timer executes (infinite loop executing every 5 seconds). In >> short, I >> create the following items on each loop: > If there's any way of re- using some of the key variables here, it > might > reduce memory consumption in the interim. This might be a good idea > anyway - creating new buttons willl probably always be slower than > hiding them and showing them within in a sizer. >> X many buttons (destroyed at the beginning of each loop) >> 1 Bitmap per button >> 1 Size object per button >> >> And that's basically it. See code below if that helps at all. Is it >> PEBKAC or is there still a memory leak in WxRuby to be ironed out >> yet? > No I think it's wxRuby ;) > > alwz > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-users/attachments/20070514/89712a39/attachment-0001.html From mario at ruby-im.net Tue May 15 22:18:47 2007 From: mario at ruby-im.net (Mario Steele) Date: Tue, 15 May 2007 21:18:47 -0500 Subject: [Wxruby-users] Is there any IDE (event driven) for wxRuby? In-Reply-To: References: <8d87eafc0705070748t265e9f2as7b9c4feec8249e07@mail.gmail.com> <464022AA.3040207@ruby-im.net> <8d87eafc0705080029s483c5a0amc68ee4e78a09cb5f@mail.gmail.com> <46416253.7040102@ruby-im.net> <46418AB6.3020404@pressure.to> <4643E622.8010400@ruby-im.net> <4643FE85.50206@ruby-im.net> Message-ID: <464A6A07.5050909@ruby-im.net> dev carcass wrote: > Hey Mario! > > I really appreaciate what you are doing with the Tutorial for wxGlade, thanks. > > Also, I wanted yo ask you, is there any difference between wxGlade and > GLADE? I mean, of course they are different pieces of software, but > regarding the use of RUBY aren't they pretty much the same? > > I downloaded Glade for my Notebook with UBUNTU Linux(now I'm trying to > run it on my desktop G5 via MACPORTS) and did some practices, it seems > to be more "intuitive" than wxGlade. Maybe I'm mistaking completely, > but just wanted to know. > > Best regards, Chris. > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > > Hey Chris, The Concept between the two is the same. Yes they are two different pieces of software, and add to that, one is meant for GTK+ 2.x, where as the other is meant for wxGTK. Glade may seem a bit more intuitive, but in all honesty, they both perform the same. There's slight differences between the two, but they are very slight. I'm planning to add more to the tutorial, that'll go more into depth on how to interface between the XRC generated files, at least how I do it, and how to get the GUI to work. Which is actually quite easy as you learn more. But for those starting out, I'll will outline how that works, so that they can learn, and also for those who want a reference to it. Any comments on what I've written up so far Alex? Talk to you guys later, Mario Steele From carcass.dev at gmail.com Sat May 19 01:42:26 2007 From: carcass.dev at gmail.com (dev carcass) Date: Sat, 19 May 2007 14:42:26 +0900 Subject: [Wxruby-users] Is there any IDE (event driven) for wxRuby? In-Reply-To: <464A6A07.5050909@ruby-im.net> References: <8d87eafc0705070748t265e9f2as7b9c4feec8249e07@mail.gmail.com> <464022AA.3040207@ruby-im.net> <8d87eafc0705080029s483c5a0amc68ee4e78a09cb5f@mail.gmail.com> <46416253.7040102@ruby-im.net> <46418AB6.3020404@pressure.to> <4643E622.8010400@ruby-im.net> <4643FE85.50206@ruby-im.net> <464A6A07.5050909@ruby-im.net> Message-ID: Hey Mario! Thanks for the tutorial, so far everything clear, keep up with it! On 5/16/07, Mario Steele wrote: > dev carcass wrote: > > Hey Mario! > > > > I really appreaciate what you are doing with the Tutorial for wxGlade, thanks. > > > > Also, I wanted yo ask you, is there any difference between wxGlade and > > GLADE? I mean, of course they are different pieces of software, but > > regarding the use of RUBY aren't they pretty much the same? > > > > I downloaded Glade for my Notebook with UBUNTU Linux(now I'm trying to > > run it on my desktop G5 via MACPORTS) and did some practices, it seems > > to be more "intuitive" than wxGlade. Maybe I'm mistaking completely, > > but just wanted to know. > > > > Best regards, Chris. > > _______________________________________________ > > wxruby-users mailing list > > wxruby-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/wxruby-users > > > > > Hey Chris, > > The Concept between the two is the same. Yes they are two different > pieces of software, and add to that, one is meant for GTK+ 2.x, where as > the other is meant for wxGTK. Glade may seem a bit more intuitive, but > in all honesty, they both perform the same. There's slight differences > between the two, but they are very slight. I'm planning to add more to > the tutorial, that'll go more into depth on how to interface between the > XRC generated files, at least how I do it, and how to get the GUI to > work. Which is actually quite easy as you learn more. But for those > starting out, I'll will outline how that works, so that they can learn, > and also for those who want a reference to it. Any comments on what I've > written up so far Alex? > > Talk to you guys later, > Mario Steele > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > From tricksterguy at hotmail.com Sat May 19 17:04:09 2007 From: tricksterguy at hotmail.com (Brandon W.) Date: Sat, 19 May 2007 17:04:09 -0400 Subject: [Wxruby-users] Wx::FileDialog Styles are not working Message-ID: The Constants for the Styles for FileDialog are not initialized to a value and the class will not work without those, the Dialog will come up when you call the show_modal method but the filenames are not showing up I specifically need the values for FD_OPEN FD_SAVE FD_OVERWRITE_PROMPT FD_FILE_MUST_EXIST but if I can't get those then I'll find a workaround so far this has been the best GUI toolkit I have played with, alot easier and more function than... java (eek!) thank you for all of your hard work on wxruby I am looking forward to further updates to this _________________________________________________________________ PC Magazine?s 2007 editors? choice for best Web mail?award-winning Windows Live Hotmail. http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_pcmag_0507 From alex at pressure.to Sat May 19 18:44:52 2007 From: alex at pressure.to (Alex Fenton) Date: Sat, 19 May 2007 23:44:52 +0100 Subject: [Wxruby-users] Wx::FileDialog Styles are not working In-Reply-To: References: Message-ID: <464F7DE4.2020102@pressure.to> Brandon W. wrote: > The Constants for the Styles for FileDialog are not initialized to a > value and the class will not work without those, the Dialog will come > up when you call the show_modal method but the filenames are not > showing up Oops seems we lost the FileDialog constants in wxRuby2. Thanks for the spot - I've committed a patch to fix that. In the meantime, the values for the FD_ constants are: Wx::FD_OPEN = 1 Wx::FD_SAVE = 2 Wx::FD_OVERWRITE_PROMPT = 4 Wx::FD_FILE_MUST_EXIST = 16 Wx::FD_MULTIPLE = 32 Wx::FD_CHANGE_DIR = 128 Wx::FD_PREVIEW = 256 cheers alex From bureaux.sebastien at neuf.fr Sun May 20 08:44:04 2007 From: bureaux.sebastien at neuf.fr (Sebastien) Date: Sun, 20 May 2007 14:44:04 +0200 Subject: [Wxruby-users] bouton de fermeture Message-ID: <000501c79adc$8db8ce50$0201a8c0@SN111194970311> Bonjour, je voudrais savoir si il est possible de d?sactiver le bouton de fermeture en haut a droite (le bouton rouge avec une croix blanche), sans se servir de "FRAME_NO_WINDOW_MENU", car j'ai besoin des autres boutons. Merci. Sebastien -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-users/attachments/20070520/0fce80ff/attachment.html From alex at pressure.to Sun May 20 09:53:57 2007 From: alex at pressure.to (Alex Fenton) Date: Sun, 20 May 2007 14:53:57 +0100 Subject: [Wxruby-users] bouton de fermeture In-Reply-To: <000501c79adc$8db8ce50$0201a8c0@SN111194970311> References: <000501c79adc$8db8ce50$0201a8c0@SN111194970311> Message-ID: <465052F5.8090103@pressure.to> Sebastien wrote: > Bonjour, je voudrais savoir si il est possible de d?sactiver le bouton > de fermeture en haut a droite (le bouton rouge avec une croix > blanche), sans se servir de "FRAME_NO_WINDOW_MENU", car j'ai besoin > des autres boutons. Bonjour. Peut-?tre comme ?i-dessus? my_style = Wx::DEFAULT_FRAME_STYLE ^ Wx::CLOSE_BOX my_frame = Wx::Frame.new(nil, -1, 'title', Wx::DEFAULT_POSITION, Wx::DEFAULT_SIZE, my_style) alex From bureaux.sebastien at neuf.fr Sun May 20 12:18:08 2007 From: bureaux.sebastien at neuf.fr (Sebastien) Date: Sun, 20 May 2007 18:18:08 +0200 Subject: [Wxruby-users] bouton de fermeture Message-ID: <000501c79afa$76d9df80$0201a8c0@SN111194970311> Merci pour le bout de code, ?a marche. A propos de ConfigBase, quand comptez-vous le mettre en place dans wxruby2, car la derni?re fois, vous m'avez dirig? vers un fichier qui s'appelle 'pr?f?rence', mais je n'ai pas r?ussi ? m'en servir. Je suis toujours bloqu? au niveau de ConfigBase. Existe t'il un moyen de remplac? Configbase sans avoir besoin de rajout? d'autre fichiers?, car c'est le seul probl?me qu'il me reste ? r?soudre. Merci Sebastien -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-users/attachments/20070520/055301af/attachment.html From tricksterguy at hotmail.com Mon May 21 17:18:52 2007 From: tricksterguy at hotmail.com (Brandon W.) Date: Mon, 21 May 2007 17:18:52 -0400 Subject: [Wxruby-users] Wx::Scintilla class not defined Message-ID: I'm posting this for a friend who is having trouble with this and here is his message. "Heya! I'm working on a script editor application, but it's missing one key feature: Syntax highlighting. Seeing this, I looked around in the sample directory and came across scintilla.rb. I attempted a run, however Ruby reported Wxruby2::Scintilla as an uninitialized constant! So now, I'm wondering what happened to the class. Is there an external file workaround for this, or will I have to set_style many times in a TextCtrl object?" _________________________________________________________________ Like the way Microsoft Office Outlook works? You?ll love Windows Live Hotmail. http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_outlook_0507 From sean.m.long at gmail.com Mon May 21 17:38:12 2007 From: sean.m.long at gmail.com (Sean Long) Date: Mon, 21 May 2007 14:38:12 -0700 Subject: [Wxruby-users] Wx::Scintilla class not defined In-Reply-To: References: Message-ID: Brandon, Scintilla is an optional component that has to be turned on when the WxRuby library is compiled. I do not think it is being compiled into any of the recent releases, I can tell you for a fact that it is not compiled into the OS X Intel and Windows build because I compiled those. As for the OS X PPC and Linux you will have to ask Alex. Your friend may want to build his own version using the instructions at the wiki: (see section Building and installing from source) http://wxruby.rubyforge.org/wiki/wiki.pl?Installation (see section How to make a wxRuby binary gem on linking in scintilla during build process) http://wxruby.rubyforge.org/wiki/wiki.pl?Release_HowTo I hope that is helpful for him Sean On 5/21/07, Brandon W. wrote: > I'm posting this for a friend who is having trouble with this and here is > his message. > > "Heya! I'm working on a script editor application, but it's missing one key > feature: Syntax highlighting. Seeing this, I looked around in the sample > directory and came across scintilla.rb. I attempted a run, however Ruby > reported Wxruby2::Scintilla as an uninitialized constant! > So now, I'm wondering what happened to the class. Is there an external file > workaround for this, or will I have to set_style many times in a TextCtrl > object?" > > _________________________________________________________________ > Like the way Microsoft Office Outlook works? You'll love Windows Live > Hotmail. > http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_outlook_0507 > > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > From alex at pressure.to Mon May 21 18:17:41 2007 From: alex at pressure.to (Alex Fenton) Date: Mon, 21 May 2007 23:17:41 +0100 Subject: [Wxruby-users] Wx::Scintilla class not defined In-Reply-To: References: Message-ID: <46521A85.6050703@pressure.to> Sean Long wrote: > Brandon, > > Scintilla is an optional component that has to be turned on when the > WxRuby library is compiled. I do not think it is being compiled into > any of the recent releases, I can tell you for a fact that it is not > compiled into the OS X Intel and Windows build because I compiled > those. As for the OS X PPC and Linux you will have to ask Alex. > No they don't either. It has been down to the hassle of compiling them because wxRuby was targetting an extra download. > Your friend may want to build his own version using the instructions > at the wiki: > (see section Building and installing from source) > http://wxruby.rubyforge.org/wiki/wiki.pl?Installation > Now we've upgraded to wxWidgets 2.8.3 there's a much more recent and better maintained version of Scintilla shipped with the wxWidgets to build against. When building wxWidgets you can do cd contrib/src/stc make sudo make install There's also SWIG code in wxRuby to make Wx::Scintilla work but it would need a little tweaking to make it work with the 2.8.3 wxWidgets - tweaking build params etc. I don't have time to look into right away but ultimately I'd like to make Wx::Scintilla a core class. alex From mario at ruby-im.net Tue May 22 01:46:41 2007 From: mario at ruby-im.net (Mario Steele) Date: Tue, 22 May 2007 00:46:41 -0500 Subject: [Wxruby-users] Wx::Scintilla class not defined In-Reply-To: <46521A85.6050703@pressure.to> References: <46521A85.6050703@pressure.to> Message-ID: <465283C1.1070704@ruby-im.net> Alex Fenton wrote: > Sean Long wrote: > >> Brandon, >> >> Scintilla is an optional component that has to be turned on when the >> WxRuby library is compiled. I do not think it is being compiled into >> any of the recent releases, I can tell you for a fact that it is not >> compiled into the OS X Intel and Windows build because I compiled >> those. As for the OS X PPC and Linux you will have to ask Alex. >> >> > No they don't either. It has been down to the hassle of compiling them > because wxRuby was targetting an extra download. > >> Your friend may want to build his own version using the instructions >> at the wiki: >> (see section Building and installing from source) >> http://wxruby.rubyforge.org/wiki/wiki.pl?Installation >> >> > Now we've upgraded to wxWidgets 2.8.3 there's a much more recent and > better maintained version of Scintilla shipped with the wxWidgets to > build against. > > When building wxWidgets you can do > > cd contrib/src/stc > make > sudo make install > > There's also SWIG code in wxRuby to make Wx::Scintilla work but it would > need a little tweaking to make it work with the 2.8.3 wxWidgets - > tweaking build params etc. > > I don't have time to look into right away but ultimately I'd like to > make Wx::Scintilla a core class. > > alex > Hey Alex, Just kinda curious about this, not really a big deal per say, but has any idea been thought about, setting up the ability to choose which extensions to include for wxRuby2, and kinda make it modular? Example being, having the Core GUI Controls in the main wxRuby2.so file, then wxSocket, wxHTML, wxScintilla, etc, etc, being compiled into separate extensions so that way, the programmer can decide on which controls to include, and which not to? Just thought I'd ask, see what ya think. Mario -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-users/attachments/20070522/939eedba/attachment.html From alex at pressure.to Tue May 22 02:37:17 2007 From: alex at pressure.to (Alex Fenton) Date: Tue, 22 May 2007 07:37:17 +0100 Subject: [Wxruby-users] Wx::Scintilla class not defined In-Reply-To: <465283C1.1070704@ruby-im.net> References: <46521A85.6050703@pressure.to> <465283C1.1070704@ruby-im.net> Message-ID: <46528F9D.9020303@pressure.to> Mario Steele wrote: > Just kinda curious about this, not really a big deal per say, but has > any idea been thought about, setting up the ability to choose which > extensions to include for wxRuby2, and kinda make it modular? Example > being, having the Core GUI Controls in the main wxRuby2.so file, then > wxSocket, wxHTML, wxScintilla, etc, etc, being compiled into separate > extensions so that way, the programmer can decide on which controls to > include, and which not to? Yes, it's been talked about on the dev mailing list before and I'm keen on the idea. It would make wxruby2 library load a bit faster (because few people are going to need to use HTML and Scintilla and Socket and AUI in the same app) and a bit lighter when bundling eg with rubyscript2exe. But I don't think anyone's tried implementing yet cheers a From alex at pressure.to Wed May 23 14:04:02 2007 From: alex at pressure.to (Alex Fenton) Date: Wed, 23 May 2007 19:04:02 +0100 Subject: [Wxruby-users] bouton de fermeture In-Reply-To: <000501c79afa$76d9df80$0201a8c0@SN111194970311> References: <000501c79afa$76d9df80$0201a8c0@SN111194970311> Message-ID: <46548212.5010000@pressure.to> Sebastien wrote: > Merci pour le bout de code, ?a marche. Excellent. > A propos de ConfigBase, quand comptez-vous le mettre en place dans > wxruby2, car la derni?re fois, vous m'avez dirig? vers un fichier qui > s'appelle 'pr?f?rence', mais je n'ai pas r?ussi ? m'en servir. > Je suis toujours bloqu? au niveau de ConfigBase. Nous avions decid? de ne le mettre pas en place, parce que nous pensions qu'il vaut mieux d'offrir les m?mes fonctions en ruby pur. Mais, j'ai lu quelques documents sur WxWidgets qui dirent que cette classe est necessaire pour co-op?rer avec autres, HTMLWindow par exemple. Ainsi, je vais essayer le mettre en place en wxRuby2. Mais il a une priorit? moins haute qu'autres t?ches. Cependant, il ne serait pas difficile de cr?er une syst?me en Ruby qui enregistrer les pr?ferences. On pouvait se servir de YAML, ou Marshal, et enregistrer un petit fichier des pr?ferences dans ENV['HOME']. alex From mario at ruby-im.net Fri May 25 01:48:19 2007 From: mario at ruby-im.net (Mario Steele) Date: Fri, 25 May 2007 00:48:19 -0500 Subject: [Wxruby-users] Wx::Scintilla class not defined In-Reply-To: <46528F9D.9020303@pressure.to> References: <46521A85.6050703@pressure.to> <465283C1.1070704@ruby-im.net> <46528F9D.9020303@pressure.to> Message-ID: <465678A3.5060700@ruby-im.net> Alex Fenton wrote: > Yes, it's been talked about on the dev mailing list before and I'm keen > on the idea. It would make wxruby2 library load a bit faster (because > few people are going to need to use HTML and Scintilla and Socket and > AUI in the same app) and a bit lighter when bundling eg with > rubyscript2exe. > > But I don't think anyone's tried implementing yet > > cheers > a > I would start, but I have yet to understand how it's built, so I wouldn't have the foggiest of where to go, to begin decoupling all the advance features into seperate so/dll files to be packaged. From sleight42 at gmail.com Fri May 25 14:52:33 2007 From: sleight42 at gmail.com (Evan Light) Date: Fri, 25 May 2007 14:52:33 -0400 Subject: [Wxruby-users] Bitmap memory leaks (Bug 251)? In-Reply-To: <46385297.6060901@pressure.to> References: <46385297.6060901@pressure.to> Message-ID: <379745F4-CBB9-46BE-BF7B-A018B36D2D60@gmail.com> Confirmed that it is a memory leak with Bitmap or BitmapButton. Now that I'm caching the buttons as I create them, no more leak. Evan Light IMs (all): sleight42 http://evan.tiggerpalace.com On May 2, 2007, at 4:57 AM, Alex Fenton wrote: > Evan Light wrote: >> I see that this problem was noted a while ago >> (http://rubyforge.org/tracker/index.php? >> func=detail&aid=251&group_id=35&atid=218 >> > func=detail&aid=251&group_id=35&atid=218>) >> but it seems not to have received much attention. > Don't know about the other devs, but I'd forgotten this bug mentioned > any specific issue rather than 'we should check for memory leaks'. > > Bugs related to over-eager SWIG/Ruby memory management have had higher > priority because they cause segfaults. SWIG/Ruby was pretty > underdeveloped when this bug was created, but features added since > should make it a lot easier to reclaim objects that have fallen out of > scope. >> Any chance that it will be looked at anytime soon? > Yes. Thanks for the report. Since Bitmap is such a widely used class > that we should try and fix this specific one for the upcoming 0.40 > release. > > Generally, please do file leaking classes as specific bugs, ideally > with > code samples. >> Unfortunately, I cannot merely load and cache bitmaps easily as I am >> modifying them (drawing text on them) at run time. While I could >> cache the unique bitmaps with the drawn text, it seemed more of a >> nuisance than it was worth. > wxRuby should definitely be doing the work, not you. > > Are you using MemoryDC? > > 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: http://rubyforge.org/pipermail/wxruby-users/attachments/20070525/29c5192a/attachment.html From timmy2000 at t-n-p.org Sun May 27 21:59:05 2007 From: timmy2000 at t-n-p.org (timmy2000 at t-n-p.org) Date: Mon, 28 May 2007 02:59:05 +0100 Subject: [Wxruby-users] sash position problem Message-ID: <20070528015905.GA14298@larissa.t-n-p.org> Hi, I've written a small app implementing SplitterWindow and have a problem with specifying the sash position on Windows. At the moment, I call split_vertically and pass it a positive integer for position. This works as expected on FreeBSD and Linux (Ubuntu and Debian), but seems to have no effect on Windows. Is there something particular I need to be doing to get this to work on Windows? Thank you From alex at pressure.to Mon May 28 16:26:30 2007 From: alex at pressure.to (Alex Fenton) Date: Mon, 28 May 2007 21:26:30 +0100 Subject: [Wxruby-users] sash position problem In-Reply-To: <20070528015905.GA14298@larissa.t-n-p.org> References: <20070528015905.GA14298@larissa.t-n-p.org> Message-ID: <465B3AF6.4000103@pressure.to> timmy2000 at t-n-p.org wrote: > At the moment, I call split_vertically and pass it a positive integer for > position. This works as expected on FreeBSD and Linux (Ubuntu and > Debian), but seems to have no effect on Windows. > I just tried the following on Win XP and it seems to work as expected with a positive integer as the third arg to split_vertically (also with 0 or a negative integer) spliitter = Wx::SplitterWindow.new(self, -1) window1 = Wx::Window.new(splitter, -1) window1.set_background_colour(Wx::RED) window2 = Wx::Window.new(splitter, -1) window2.set_background_colour(Wx::GREEN) splitter.split_vertically(window1, window2, 50) Perhaps you could show us some code if it's still not working for you? cheers alex