From bjorn.bergqvist at gmail.com Thu Oct 1 13:35:39 2009 From: bjorn.bergqvist at gmail.com (=?ISO-8859-1?Q?Bj=F6rn_Bergqvist?=) Date: Thu, 1 Oct 2009 19:35:39 +0200 Subject: [fxruby-users] no clean exit In-Reply-To: <2EC28B773AF39E47850AC45765483C2C0DB7F1A4@AEROMSG2.AERO.BALL.COM> References: <44936e730909251100j67c5c7ebmebe63d6a28932031@mail.gmail.com> <4DE43FA5-CA69-403D-98C3-D96E8D70B068@lylejohnson.name> <2EC28B773AF39E47850AC45765483C2C0DB7F1A4@AEROMSG2.AERO.BALL.COM> Message-ID: <44936e730910011035p720e21b2s4a1c352f4d020a08@mail.gmail.com> Hello, I just thought about it and found a quick way of "solving" the problem. I just pipe the errors to a file and look at the first rows of that file: ruby application.rb 2> err.txt; head -n 10 err.txt Works for me. Thanks for the help anyway. Regards Bj?rn Bergqvist 2009/9/25 Melton, Ryan : > Fox doesn't handle accelerators correctly at shutdown and it causes lots of crashes: > > Try calling this function in a SEL_CLOSE handler for your main window: > > ?def initialize > ? ?... > ? ?self.connect(SEL_CLOSE, method(:cleanup_menu_panes)) > ?end > > ?def cleanup_menu_panes |sender, sel, data| > ? ?ObjectSpace.each_object(FXMenuPane) do |object| > ? ? ?children = [] > ? ? ?object.each_child do |child| > ? ? ? ?children << child > ? ? ?end > ? ? ?children.each do |child| > ? ? ? ?object.removeChild(child) > ? ? ?end > ? ?end > ? ?0 > ?end > > -----Original Message----- > From: fxruby-users-bounces at rubyforge.org [mailto:fxruby-users-bounces at rubyforge.org] On Behalf Of James Johnson > Sent: Friday, September 25, 2009 12:52 PM > To: fxruby-users at rubyforge.org > Subject: Re: [fxruby-users] no clean exit > > > On Sep 25, 2009, at 1:00 PM, Bj?rn Bergqvist wrote: > >> when I quit the application I'm currently developing there is a lot of >> messages popping up (see below). I've not discovered any problems when >> running the application, but have I done something wrong? > > I don't think you're doing anything wrong. It doesn't seem to happen on every FXRuby app, but I too have seen it crash on exit (from Ruby > 1.9.1) in several cases, e.g. > > ? ? ? ?http://rubyforge.org/tracker/index.php?func=detail&aid=24073&group_id=300&atid=1223 > > It's been awhile since I've had time to look into this (or much else FXRuby related), but IIRC the problem boils down to the more or less random way that garbage collection occurs during finalization on exit. > While your program's running, if you (for example) destroy a parent object, FOX will subsequently destroy the child object(s), and the Ruby objects associated with them get cleaned up in an orderly fashion. When the Ruby interpreter is exiting, however, it is possible that the child object will be GC'd before the parent, leaving dangling pointers lying around. I'm not really sure how to fix it at this point. > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users > > > > This message and any enclosures are intended only for the addressee. ?Please > notify the sender by email if you are not the intended recipient. ?If you are > not the intended recipient, you may not use, copy, disclose, or distribute this > message or its contents or enclosures to any other person and any such actions > may be unlawful. ?Ball reserves the right to monitor and review all messages > and enclosures sent to or from this email address. > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users > From matma.rex at gmail.com Thu Oct 8 12:28:41 2009 From: matma.rex at gmail.com (Bartosz Dz.) Date: Thu, 8 Oct 2009 18:28:41 +0200 Subject: [fxruby-users] Dynamic creation of a tabbed book of tables In-Reply-To: <2626f2640910080843h2bae6577wdabd588a29f01c5@mail.gmail.com> References: <2626f2640910071456w40cd9f7fh7086aa4262ea98fa@mail.gmail.com> <2626f2640910080843h2bae6577wdabd588a29f01c5@mail.gmail.com> Message-ID: Maybe just use instance_variable_set/instance_variable_get to set/get variables? -- Matma Rex - http://matma-rex.prv.pl/ From bjorn.bergqvist at gmail.com Fri Oct 9 13:58:01 2009 From: bjorn.bergqvist at gmail.com (=?ISO-8859-1?Q?Bj=F6rn_Bergqvist?=) Date: Fri, 9 Oct 2009 19:58:01 +0200 Subject: [fxruby-users] FXDataTarget & widget value update delay In-Reply-To: <20D80241-297F-4F7E-A271-536CC51EC834@knology.net> References: <6C0CF58A187DA5479245E0830AF84F421D130E@poweredge.attiksystem.ch> <20D80241-297F-4F7E-A271-536CC51EC834@knology.net> Message-ID: <44936e730910091058j21cbd9f2pf30c1462d5fa112e@mail.gmail.com> Hello, this was an old thread but I noticed a significant speedup with "app.disableThreads" Ruby version 1.9.1p243, fxruby (1.6.19), Linux 32-bit (ArchLinux). Thanks! Bj?rn Bergqvist http://www.discretizer.org 2006/10/3 Lyle Johnson : > > On Oct 3, 2006, at 10:34 AM, Philippe Lang wrote: > >> When assigning a new value to an FXDataTarget programmatically, it >> takes a certain time for the widget linked to this FXDataTarget to >> be updated, just as if there was some sort of "polling" inside the >> framework. Delay can be as long as 1 second sometimes. Why aren't >> the widgets updated straight away? > > The update of a widget's settings due to a change in a data target's > value is handled by FOX's GUI update mechanism, described here: > > ? ? ? ?http://www.fox-toolkit.org/guiupdate.html > > This process only kicks in during idle time in the GUI, so there's > inevitably going to be some small delay. The problem is compounded in > FXRuby due to the overhead required for converting back and forth > between C++ objects and Ruby objects, as well as scheduling Ruby > threads. If your FXRuby application doesn't use any threads, you can > try turning off FXRuby's support for scheduling Ruby threads by > calling the FXApp's disableThreads() method: > > ? ? ? ?app.disableThreads > > Yet another option, but one which sort-of defeats the purpose of the > GUI update process, is to call forceRefresh() directly whenever you > make a change to the data target's value, e.g. > > ? ? ? ?datatarget.value = "Foo" > ? ? ? ?app.forceRefresh > > Calling forceRefresh() causes the application to immediately start > the GUI update process without waiting for idle time. > > Hope this helps, > > Lyle > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users > From lyle at lylejohnson.name Sat Oct 10 11:11:29 2009 From: lyle at lylejohnson.name (James Johnson) Date: Sat, 10 Oct 2009 10:11:29 -0500 Subject: [fxruby-users] Dynamic creation of a tabbed book of tables In-Reply-To: <2626f2640910080843h2bae6577wdabd588a29f01c5@mail.gmail.com> References: <2626f2640910071456w40cd9f7fh7086aa4262ea98fa@mail.gmail.com> <2626f2640910080843h2bae6577wdabd588a29f01c5@mail.gmail.com> Message-ID: <62A4995F-E1FF-4A48-9E89-CCA4C797A364@lylejohnson.name> On Oct 8, 2009, at 10:43 AM, Eric Hutton wrote: > Hmm, no, got that wrong, so this will create each of the tabbed > tables, but the problem is that the instance variable names will be > only associated with the last objects created, so there is no way to > reference and update values in the earlier tables (without removing > and recreating them of course). > > I guess what I need is to be able to use some sort of hash of the > object ids for the individual tabs and tables created? ummm maybe > using something like eachChildRecursive to nab the object ids? Sorry for the delayed response, but I've been on vacation. Technically, you can always "get to" these widgets by navigating through the widget hierarchy using methods like FXWindow#each_child, but that can be a little tricky. Why don't you just store them in arrays or hashes, e.g. customs_summary_year_tabs = [] customs_summary_tables = [] years_on_file.each do |year| customs_summary_year_tabs << FXTabItem.new(...) ... customs_summary_year_tables << FXTable.new(...) end Hope this helps, Lyle From lyle at lylejohnson.name Wed Oct 14 15:18:50 2009 From: lyle at lylejohnson.name (James Johnson) Date: Wed, 14 Oct 2009 14:18:50 -0500 Subject: [fxruby-users] fxruby installation woes... In-Reply-To: <2eff69210910141152x5cc5c902l5700d71310410745@mail.gmail.com> References: <2eff69210910141130p7185efe0o8561db90808d9edc@mail.gmail.com> <2eff69210910141152x5cc5c902l5700d71310410745@mail.gmail.com> Message-ID: On Oct 14, 2009, at 1:52 PM, Allen A. Harper wrote: > I am having trouble getting fxruby going again. I used to have it > running fine on Leopard. Then, I upgraded to Snow Leopard and also > upgraded ruby... and broke everything... This seems to be a common theme (and not just for FXRuby). I did get it to build just the other day using MacPorts 1.8.1 (the latest release) by basically blowing away my previous MacPorts installation completely and starting over from scratch, e.g. sudo rm -rf /opt/local <... download and install MacPorts 1.8.1 for Snow Leopard... > sudo port -d sync sudo port install rb-fxruby However, I'm not entirely confident that it would work again if I tried it right this moment. This is one of those times that I would kill to be able to run OS X in a virtual machine, so that I could experiment without breaking my own machine in the process. > Also, is there a one stop gem install for fx-ruby or dmg install in > the works? I built a binary gem for FXRuby 1.6.19 on Leopard (back when I was running Leopard). It was compatible with the version of Ruby that shipped with Leopard. Unfortunately, the tricks I used to build Universal libraries under Leopard don't seem to work under Snow Leopard (and again, I'm not the only one running into this problem). --- "FXRuby: Create Lean and Mean GUIs with Ruby" Now available from the Pragmatic Bookshelf! http://www.pragprog.com/titles/fxruby From lyle at lylejohnson.name Thu Oct 15 10:48:22 2009 From: lyle at lylejohnson.name (Lyle Johnson) Date: Thu, 15 Oct 2009 09:48:22 -0500 Subject: [fxruby-users] FXRuby on Gemcutter.org Message-ID: <38FF80FF-FF6C-4217-982E-E4FB2BDE7AE2@lylejohnson.name> All, It has come to my attention that there's a bot out there somewhere that's downloading the FXRuby binary gems for Windows from Gemcutter.org, and doing it a lot. It seems to be ignoring the source gems, but it is mirroring every FXRuby Win32 gem that's ever been published (even ones that are 5+ years old). This is artificially inflating the "popularity" of FXRuby in Gemcutter's statistics, which isn't helpful to anyone. So, if this is you, please knock it off! That is all. ;) Thanks, Lyle --- "FXRuby: Create Lean and Mean GUIs with Ruby" Now available from the Pragmatic Bookshelf! http://www.pragprog.com/titles/fxruby From dglnz at yahoo.com Sat Oct 17 07:23:34 2009 From: dglnz at yahoo.com (dave L) Date: Sat, 17 Oct 2009 04:23:34 -0700 (PDT) Subject: [fxruby-users] combox action issue Message-ID: <963206.10244.qm@web30003.mail.mud.yahoo.com> Got a problem that i am unsure about how to tackle. What I would like to have happen is this.... user move off a textbox and clicks on a combobox. IF the textbox is empty then popup a dialogbox to alert the user of the error then return focus back to that control. what I am getting is... textbox empty user clicks on a combobox it's pane appears and then the dialogbox appears. it is a two click action (1 to close the pane and 1 to close the dialogbox. And the focus has not been returned to the textbox. I've search the fxruby api docs for help but not getting much. can someone point to a URL for more explainations on the SEL_ commands? as i think this will help me no end. thanks, Dave. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dglnz at yahoo.com Sat Oct 17 08:08:56 2009 From: dglnz at yahoo.com (dave L) Date: Sat, 17 Oct 2009 05:08:56 -0700 (PDT) Subject: [fxruby-users] howto generate an event action in code? Message-ID: <540179.15304.qm@web30005.mail.mud.yahoo.com> In my search to try and solve my curent problem with the combobox pane being visible and having to put focus back onto another control how could I within a combo.connect(SEL_FOCUSIN) call get a SEL-CLICK event to fire? my thinking here is that currently i need TWO clicks 1 for the closing of the dropped down pane and another to click on the dialogbox. this so the other control (namely a textbox) gets the focus back. cheers, dave. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lyle at lylejohnson.name Sat Oct 17 14:12:38 2009 From: lyle at lylejohnson.name (Lyle Johnson) Date: Sat, 17 Oct 2009 13:12:38 -0500 Subject: [fxruby-users] In-Reply-To: <1436198387@web.de> References: <1436198387@web.de> Message-ID: On Oct 17, 2009, at 6:02 AM, Helmut Hagemann wrote: > Have a Probelm with @image.crop > > why the picture use not the new border by creat crop command? > > with width and height i see old values a used I'm having trouble understanding exactly what is your question, but looking at your code, I think you may have misinterpreted the arguments for the FXImage#crop method. Here is the documentation: http://www.fxruby.org/doc/api/classes/Fox/FXImage.html The first two arguments to crop() are the (x, y) coordinates for the top left corner of the crop rectangle, and the 3rd and 4th arguments are the width and height. In your code, you call crop() like this: @mywidth = 0.5*@image.width @myheight = 0.5*@image.height @image.crop(@mywidth, @myheight, @image.width, @image.height, FXRGBA (236, 233, 215, 255)) So this says that it should start cropping in the middle of the (original) image, but the resulting image should have the same height and width as the original image. Can you maybe say what it is that you expected to see, or what is your desired end result? Hope this helps, Lyle --- "FXRuby: Create Lean and Mean GUIs with Ruby" Now available from the Pragmatic Bookshelf! http://www.pragprog.com/titles/fxruby From lyle at lylejohnson.name Mon Oct 19 11:57:32 2009 From: lyle at lylejohnson.name (Lyle Johnson) Date: Mon, 19 Oct 2009 10:57:32 -0500 Subject: [fxruby-users] Help in request In-Reply-To: <1437060009@web.de> References: <1437060009@web.de> Message-ID: <26EE3A4D-D189-4342-923B-66AFB45182AC@lylejohnson.name> On Oct 18, 2009, at 3:26 AM, Helmut Hagemann wrote: > this is my problem the whole picture with the background color is > stored > see Bird.jpg > > however, I would like to have Birdwanted.jpg OK, so you want to make sure that the new width and height are half of the original width and height, e.g. x, y = 0.5*@image.width, 0.5*@image.height new_width, new_height = 0.5*@image.width, 0.5*@image.height @image.crop(x, y, new_width, new_height, FXRGBA(236,233,216,255)) > another question > In the Tutorial Example 7 imageviewer... What "tutorial" are you referring to here? > ... if is there a problem with rotate > because picture is not indicated anew > if one presses View and > File list checkButton presses then the change is indicated I doubt there's a bug in the FXImage#rotate method, but yes, there does seem to be a bug in the imageviewer.rb example program. I'll add it to the bug list for future investigation. --- "FXRuby: Create Lean and Mean GUIs with Ruby" Now available from the Pragmatic Bookshelf! http://www.pragprog.com/titles/fxruby From lyle at lylejohnson.name Tue Oct 20 16:42:52 2009 From: lyle at lylejohnson.name (Lyle Johnson) Date: Tue, 20 Oct 2009 15:42:52 -0500 Subject: [fxruby-users] Pre-release FXRuby binary gems for testing Message-ID: <9D2C9BAC-BD52-4AA7-B0C8-0CC81585AD08@lylejohnson.name> All, A couple of new build platforms have come into the picture since the last FXRuby release and I'm trying to make sure they're supported. That is to say, I want to be able to provide precompiled binary gems so that users on those platforms don't have to build everything from source. I think I'm there, but I could use your help testing if you have access to either (1) the new, still under development MinGW-based Ruby installer or (2) Mac OS X Snow Leopard. Here is a binary installer for FXRuby 1.6 on Ruby 1.8.6, the MinGW edition (the one being developed by Luis Lavena and co.): http://dl.getdropbox.com/u/60906/FXRuby-1.6.20-x86-mingw32.gem And here is a binary gem for FXRuby 1.6 on Ruby 1.8.7, the one that comes with Snow Leopard: http://dl.getdropbox.com/u/60906/FXRuby-1.6.20-universal-darwin-10.gem If you have the time and are willing to be a guinea pig, please download and give it a short (and let me know how it goes). Remember, the goal here is that the end-user doesn't have to have any of FOX's numerous dependencies preinstalled to use these. Thanks, Lyle From dglnz at yahoo.com Wed Oct 21 02:18:34 2009 From: dglnz at yahoo.com (dave L) Date: Tue, 20 Oct 2009 23:18:34 -0700 (PDT) Subject: [fxruby-users] Pre-release FXRuby binary gems for testing In-Reply-To: <9D2C9BAC-BD52-4AA7-B0C8-0CC81585AD08@lylejohnson.name> References: <9D2C9BAC-BD52-4AA7-B0C8-0CC81585AD08@lylejohnson.name> Message-ID: <658291.85516.qm@web30003.mail.mud.yahoo.com> Lyle, If you have something for linux then i'd be happy to test it. You may have figured I'm not the brightest light bulb in the pack when it comes to ruby but I do try to sort issues i have out before posting and then i carry on trying. I use Meinrad's foxGUIb front end and find it BLOOD great as i can easily knock up a GUI front end quicker and get a visual look quicker than i can with FXruby natively (plus i find i get confuse about the FXruby code. personally would love to see foxGUIb worked on some more to make it easier to add controls that someone like me could add to _or_ to add new controls like the fxtable (know this won't happen and i haven't got the skills). I run Kubuntu 9.04 cheers, Dave ________________________________ From: Lyle Johnson To: fxruby-users at rubyforge.org; FOX Users Sent: Wed, October 21, 2009 9:42:52 AM Subject: [fxruby-users] Pre-release FXRuby binary gems for testing All, A couple of new build platforms have come into the picture since the last FXRuby release and I'm trying to make sure they're supported. That is to say, I want to be able to provide precompiled binary gems so that users on those platforms don't have to build everything from source. I think I'm there, but I could use your help testing if you have access to either (1) the new, still under development MinGW-based Ruby installer or (2) Mac OS X Snow Leopard. Here is a binary installer for FXRuby 1.6 on Ruby 1.8.6, the MinGW edition (the one being developed by Luis Lavena and co.): http://dl.getdropbox.com/u/60906/FXRuby-1.6.20-x86-mingw32.gem And here is a binary gem for FXRuby 1.6 on Ruby 1.8.7, the one that comes with Snow Leopard: http://dl.getdropbox.com/u/60906/FXRuby-1.6.20-universal-darwin-10.gem If you have the time and are willing to be a guinea pig, please download and give it a short (and let me know how it goes). Remember, the goal here is that the end-user doesn't have to have any of FOX's numerous dependencies preinstalled to use these. Thanks, Lyle _______________________________________________ fxruby-users mailing list fxruby-users at rubyforge.org http://rubyforge.org/mailman/listinfo/fxruby-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From lyle at lylejohnson.name Wed Oct 21 10:45:32 2009 From: lyle at lylejohnson.name (Lyle Johnson) Date: Wed, 21 Oct 2009 09:45:32 -0500 Subject: [fxruby-users] Pre-release FXRuby binary gems for testing In-Reply-To: <658291.85516.qm@web30003.mail.mud.yahoo.com> References: <9D2C9BAC-BD52-4AA7-B0C8-0CC81585AD08@lylejohnson.name> <658291.85516.qm@web30003.mail.mud.yahoo.com> Message-ID: <1F58B4CB-389E-4886-B16E-BF81E7FDE135@lylejohnson.name> On Oct 21, 2009, at 1:18 AM, dave L wrote: > If you have something for linux then i'd be happy to test it. I don't have anything precompiled for Linux, but I guess I could try to put something together. The problem is that there are so many variables that come into play with Linux, and I'm not sure which ones of them are significant. For example, I know that it matters which version of Ruby you've installed (FXRuby built against Ruby 1.8 won't work with Ruby 1.9, and vice-versa). But I don't know if it matters, for example, if I'm running Linux kernel version X and you're running Linux kernel version Y, etc. > You may have figured I'm not the brightest light bulb in the pack > when it comes to ruby but I do try to sort issues i have out before > posting and then i carry on trying. > > I use Meinrad's foxGUIb front end and find it BLOOD great as i can > easily knock up a GUI front end quicker and get a visual look > quicker than i can with FXruby natively (plus i find i get confuse > about the FXruby code. > > personally would love to see foxGUIb worked on some more to make it > easier to add controls that someone like me could add to _or_ to add > new controls like the fxtable (know this won't happen and i haven't > got the skills). Maybe you don't have the skills right now, but I bet Meinrad would appreciate it if you made an effort to get more involved contribute back to the foxGUIb project (and maybe you already have, I don't know). Have you ever poked around in the foxGUIb source code to try to figure out how it works, and then try making little changes to see how they affect things? That's a good way to start dipping your toes in. ;) > I run Kubuntu 9.04 OK, I do have a virtual machine with Ubuntu 9.04 around here somewhere. I will try to put something together and we'll see if it works. --- "FXRuby: Create Lean and Mean GUIs with Ruby" Now available from the Pragmatic Bookshelf! http://www.pragprog.com/titles/fxruby -------------- next part -------------- An HTML attachment was scrubbed... URL: From lyle at lylejohnson.name Wed Oct 21 11:40:31 2009 From: lyle at lylejohnson.name (Lyle Johnson) Date: Wed, 21 Oct 2009 10:40:31 -0500 Subject: [fxruby-users] Pre-release FXRuby binary gems for testing In-Reply-To: <1F58B4CB-389E-4886-B16E-BF81E7FDE135@lylejohnson.name> References: <9D2C9BAC-BD52-4AA7-B0C8-0CC81585AD08@lylejohnson.name> <658291.85516.qm@web30003.mail.mud.yahoo.com> <1F58B4CB-389E-4886-B16E-BF81E7FDE135@lylejohnson.name> Message-ID: <57cf8f720910210840o2a893d52hbb497959898cc7a5@mail.gmail.com> On Wed, Oct 21, 2009 at 9:45 AM, Lyle Johnson wrote: OK, I do have a virtual machine with Ubuntu 9.04 around here somewhere. I > will try to put something together and we'll see if it works. > Dave, Here is a native gem for Ubuntu 9.04: http://lylejohnson.name/FXRuby-1.6.20-x86-linux.gem Why don't you try downloading that gem, then type sudo gem install FXRuby-1.6.20-x86-linux.gem and let's see what happens. ;) Lyle P.S. This obviously goes for anyone else who's in the mood to help out with testing. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mailing.lists at semigreenpenny.com Wed Oct 21 13:07:21 2009 From: mailing.lists at semigreenpenny.com (Amber Vaesca) Date: Wed, 21 Oct 2009 10:07:21 -0700 Subject: [fxruby-users] Pre-release FXRuby binary gems for testing In-Reply-To: <9D2C9BAC-BD52-4AA7-B0C8-0CC81585AD08@lylejohnson.name> References: <9D2C9BAC-BD52-4AA7-B0C8-0CC81585AD08@lylejohnson.name> Message-ID: <5AF2CEEA-925D-4A44-85EC-069BE1AE222E@semigreenpenny.com> > If you have the time and are willing to be a guinea pig, please > download and give it a short (and let me know how it goes). > Remember, the goal here is that the end-user doesn't have to have > any of FOX's numerous dependencies preinstalled to use these. I gave the new Snow Leopard friendly gem a whirl on my newish MacBook Pro, and an older MacPro tower. Both installations went fine, and I was able to execute my applications and FoxGUIb, without any issues save but one minor thing: The MacPorts installation that I have produces anti-aliased text in all of the widgets, but the gem does not. I'm guessing this has something to do with a FreeType library installation or something, but it if doesn't bloat the gem much, that might be a good thing to include. -- AmberV From lyle at lylejohnson.name Wed Oct 21 13:43:49 2009 From: lyle at lylejohnson.name (Lyle Johnson) Date: Wed, 21 Oct 2009 12:43:49 -0500 Subject: [fxruby-users] Pre-release FXRuby binary gems for testing In-Reply-To: <5AF2CEEA-925D-4A44-85EC-069BE1AE222E@semigreenpenny.com> References: <9D2C9BAC-BD52-4AA7-B0C8-0CC81585AD08@lylejohnson.name> <5AF2CEEA-925D-4A44-85EC-069BE1AE222E@semigreenpenny.com> Message-ID: <64208E97-332A-4958-BEA6-1D084C6EFE38@lylejohnson.name> On Oct 21, 2009, at 12:07 PM, Amber Vaesca wrote: >> If you have the time and are willing to be a guinea pig, please >> download and give it a short (and let me know how it goes). >> Remember, the goal here is that the end-user doesn't have to have >> any of FOX's numerous dependencies preinstalled to use these. > > I gave the new Snow Leopard friendly gem a whirl on my newish > MacBook Pro, and an older MacPro tower. Both installations went > fine, and I was able to execute my applications and FoxGUIb, without > any issues save but one minor thing: > > The MacPorts installation that I have produces anti-aliased text in > all of the widgets, but the gem does not. I'm guessing this has > something to do with a FreeType library installation or something, > but it if doesn't bloat the gem much, that might be a good thing to > include. Ah! This is good information. Yes, I'll check into that and see what needs to be done. Thanks for the feedback, and I'm glad to hear that the gem basically works! From lyle at lylejohnson.name Wed Oct 21 16:19:10 2009 From: lyle at lylejohnson.name (Lyle Johnson) Date: Wed, 21 Oct 2009 15:19:10 -0500 Subject: [fxruby-users] Pre-release FXRuby binary gems for testing In-Reply-To: <5AF2CEEA-925D-4A44-85EC-069BE1AE222E@semigreenpenny.com> References: <9D2C9BAC-BD52-4AA7-B0C8-0CC81585AD08@lylejohnson.name> <5AF2CEEA-925D-4A44-85EC-069BE1AE222E@semigreenpenny.com> Message-ID: <5FDA4590-33BF-4911-90CB-0A12FD8BF334@lylejohnson.name> On Oct 21, 2009, at 12:07 PM, Amber Vaesca wrote: > I gave the new Snow Leopard friendly gem a whirl on my newish > MacBook Pro, and an older MacPro tower. Both installations went > fine, and I was able to execute my applications and FoxGUIb, without > any issues save but one minor thing: > > The MacPorts installation that I have produces anti-aliased text in > all of the widgets, but the gem does not. I'm guessing this has > something to do with a FreeType library installation or something, > but it if doesn't bloat the gem much, that might be a good thing to > include. It took a little experimentation, but I think I've got it working. I replaced the previous copy of the gem in my Dropbox with a new one built with Xft support; for reference, the link is: http://dl.getdropbox.com/u/60906/FXRuby-1.6.20-universal-darwin-10.gem Make sure that you uninstall the gem you previously installed: sudo gem uninstall FXRuby and then download and install this new one. Let me know how it goes! From mailing.lists at semigreenpenny.com Wed Oct 21 17:30:31 2009 From: mailing.lists at semigreenpenny.com (Amber Vaesca) Date: Wed, 21 Oct 2009 14:30:31 -0700 Subject: [fxruby-users] Pre-release FXRuby binary gems for testing In-Reply-To: <5FDA4590-33BF-4911-90CB-0A12FD8BF334@lylejohnson.name> References: <9D2C9BAC-BD52-4AA7-B0C8-0CC81585AD08@lylejohnson.name> <5AF2CEEA-925D-4A44-85EC-069BE1AE222E@semigreenpenny.com> <5FDA4590-33BF-4911-90CB-0A12FD8BF334@lylejohnson.name> Message-ID: Lyle Johnson wrote: >> The MacPorts installation that I have produces anti-aliased text in >> all of the widgets, but the gem does not. I'm guessing this has >> something to do with a FreeType library installation or something, >> but it if doesn't bloat the gem much, that might be a good thing to >> include. > > It took a little experimentation, but I think I've got it working. I > replaced the previous copy of the gem in my Dropbox with a new one > built with Xft support; for reference, the link is... That did the trick; text looks great! Everything seems to be working flawlessly; but I'm not really *trying* to break anything. Thanks for this; you made my week. :) -- AmberV From lyle at lylejohnson.name Wed Oct 21 17:45:35 2009 From: lyle at lylejohnson.name (Lyle Johnson) Date: Wed, 21 Oct 2009 16:45:35 -0500 Subject: [fxruby-users] Pre-release FXRuby binary gems for testing In-Reply-To: References: <9D2C9BAC-BD52-4AA7-B0C8-0CC81585AD08@lylejohnson.name> <5AF2CEEA-925D-4A44-85EC-069BE1AE222E@semigreenpenny.com> <5FDA4590-33BF-4911-90CB-0A12FD8BF334@lylejohnson.name> Message-ID: On Oct 21, 2009, at 4:30 PM, Amber Vaesca wrote: > That did the trick; text looks great! Everything seems to be working > flawlessly; but I'm not really *trying* to break anything. Thanks > for this; you made my week. :) No, thank you! Having independent confirmation that it works is a huge help. Let me know if you spot anything unusual with it. --- "FXRuby: Create Lean and Mean GUIs with Ruby" Now available from the Pragmatic Bookshelf! http://www.pragprog.com/titles/fxruby From dglnz at yahoo.com Sun Oct 25 06:06:13 2009 From: dglnz at yahoo.com (dave L) Date: Sun, 25 Oct 2009 03:06:13 -0700 (PDT) Subject: [fxruby-users] Tabbook tabitem controls Message-ID: <21448.82337.qm@web30006.mail.mud.yahoo.com> Hi, (note - I use foxGUIb for the GUI placement of controls) had a an issue with the tabbed books control - namely after working on the 1st tab for most of the time i am now at a point where i can move onto the 2nd tab. To reduce the amount of code sitting inside init of my event handling program i moved a lot of methods i'd written to another file. I then proceeded to work on my 2nd tab with regards to creating the event hooks, BUT found that event my calls to another file that had worked perfectly failed! plus my calls to methods in my newly created file failed. but when i got back to my 1st tab things worked again - NO PROBLEMS NO CRASHES! even calls to methods within the same file as my event code failed. All these said that there was no method... Tonight i added these lines... #@PStabitem2.shown = true #@PStabitem2.enabled = true #@PStabitem2.visible = true then things started to work, so i uncommented a method i had created and things worked, so i then copied the code and put them in another file (one i created when i started work on the 2nd tab) and the calls passed no problems. So as an exercise I commented each line above to see what the change was but the code worked even with all 4 lines commented as i show then above the code works. what gives? I actually created another file deleting all references the controls etc associated with the 1st tab. Even this didn't help my problems and I'm wondering if there is a "bug" that isn't mentioned in the API? I mean I would have thought that if one clicks on a tab then within the code it would have a method at least to say activate (mean although you see the controls they need some primer work done so they act as expected). If anyone can give me an explanation on why I've had this problem I'd be grateful. I've googled, api'd forumed for a week now any only got it going by a fluke! Also i can't use any of the codes in keys.rb. wanting to use function keys like F11 and F9 but i cannot do this as expected... ACONTROL.connect(SEL_KEYPRESS){ if keycode == KEY_F9 Do know that the keycode is an error but i didn't know at first. do something end } Now i had come across a posting from Lyle saying you used event.code to trap the keypress value. so i tried doing a puts "key pressed = #{event.code} was" type statement but it failed with errors I do understand foxGUIb hasn't got the best documentation but would have thought this would've been somewhere in the fxruby forums before now. Henon has helped be over this problem (but i cannot detect F key presses) in so far as i have this.... ACONTROL.connect(SELKEYPRESS){}a,b,event| if event.code = '97' do something - I cannot trap with KEY_a or any other constant in KEYS.rb F keys - I use theinteger values and use them in code - not the best. end } again WHY? where is the error code when i use KEY_ defined in keys.rb file. I don't require the file in code (and when i did try this earlier in the day it still didn't help - even with using extend statement. >rubyw mymainwin3.rbw mymainwin3.rbw:39:in `init': uninitialized constant Fxwindow_code::KEY_Escape (NameError) from C:/Ruby1.8/lib/ruby/gems/1.8/gems/fxruby-1.6.16-x86-mswin32-60/lib/fox16/responder2.rb:55:in `call' from C:/Ruby1.8/lib/ruby/gems/1.8/gems/fxruby-1.6.16-x86-mswin32-60/lib/fox16/responder2.rb:55:in `onHandleMsg' from mymainwin3.rbw:82:in `run' from mymainwin3.rbw:82 >Exit code: 1 and here is the actual code snippet - I was using the numbers (currently commented out to the left and it worked) @PSlist2.connect(Fox::SEL_KEYPRESS){|a,b,event| case event.code when KEY_Escape #65307 #Escape key pressed change_radio_status 3 when KEY_F9 #65478 # F9 pressed change_radio_status 4 when KEY_F5 #65474 #F5 pressed change_radio_status 2 when KEY_F1 #65470 #F1 pressed change_radio_status 1 end } Rgds, Dave. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lyle at lylejohnson.name Mon Oct 26 17:46:26 2009 From: lyle at lylejohnson.name (Lyle Johnson) Date: Mon, 26 Oct 2009 16:46:26 -0500 Subject: [fxruby-users] On Moving Away from RubyForge Services Message-ID: <8DCC0DB5-7EFD-43F9-ADB8-2266B22D6F0C@lylejohnson.name> All, As some of you may have heard, the default gem hosting repository will soon transition away from RubyForge.org to a new site, RubyGems.org (aka Gemcutter.org). Coincident with this transition will be a gradual (?) phasing out of other RubyForge services, which I've written about here: http://lylejohnson.name/blog/2009/10/26/wait-what-was-that-last-bit/ As I write near the end of that piece, I'm starting to think about where some of these services (namely, FXRuby's bug tracker and mailing list) should land after the dust settles. I list a couple of possibilities in the blog, but I'd like to open up discussion here as well for anyone who has opinions and experiences to offer. So, chime in as you feel led! Thanks, Lyle --- "FXRuby: Create Lean and Mean GUIs with Ruby" Now available from the Pragmatic Bookshelf! http://www.pragprog.com/titles/fxruby