From r.mark.volkmann at gmail.com Sat Apr 1 23:11:54 2006 From: r.mark.volkmann at gmail.com (Mark Volkmann) Date: Sat, 1 Apr 2006 22:11:54 -0600 Subject: [fxruby-users] associating objects with FXTable rows Message-ID: I'd like to associate an arbitrary object with a row in an FXTable. I thought I could do it using FXTableItems for my cells, but that doesn't work. Here is basically what I tried. item = FXTableItem.new(string_value, nil, some_object) table.setItem(row, column, item) some_object is an object from my ToDo class. This fails on the first line with "in `initialize': wrong argument type ToDo (expected Data)". Apparently I can't pass an arbitrary object as the last parameter of the FXTableItem constructor. What does it expect? Is there another way I can associate objects with my table rows? -- R. Mark Volkmann Object Computing, Inc. From scott at butlerpress.com Sat Apr 1 23:20:34 2006 From: scott at butlerpress.com (Scott Willson) Date: Sat, 1 Apr 2006 20:20:34 -0800 Subject: [fxruby-users] associating objects with FXTable rows In-Reply-To: References: Message-ID: <701981E0-B8C9-42F9-AE32-8ACEBF6DD759@butlerpress.com> On Apr 1, 2006, at 8:11 PM, Mark Volkmann wrote: > I'd like to associate an arbitrary object with a row in an FXTable. I > thought I could do it using FXTableItems for my cells, but that > doesn't work. Here is basically what I tried. > > item = FXTableItem.new(string_value, nil, some_object) > table.setItem(row, column, item) > > some_object is an object from my ToDo class. > This fails on the first line with "in `initialize': wrong argument > type ToDo (expected Data)". > Apparently I can't pass an arbitrary object as the last parameter of > the FXTableItem constructor. What does it expect? > > Is there another way I can associate objects with my table rows? > > -- > R. Mark Volkmann > Object Computing, Inc. Try something like this: FXTableItem.new(string_value, nil) { |item| item.data = some_object } From r.mark.volkmann at gmail.com Sun Apr 2 08:30:23 2006 From: r.mark.volkmann at gmail.com (Mark Volkmann) Date: Sun, 2 Apr 2006 07:30:23 -0500 Subject: [fxruby-users] associating objects with FXTable rows In-Reply-To: <701981E0-B8C9-42F9-AE32-8ACEBF6DD759@butlerpress.com> References: <701981E0-B8C9-42F9-AE32-8ACEBF6DD759@butlerpress.com> Message-ID: On 4/1/06, Scott Willson wrote: > > On Apr 1, 2006, at 8:11 PM, Mark Volkmann wrote: > > > I'd like to associate an arbitrary object with a row in an FXTable. I > > thought I could do it using FXTableItems for my cells, but that > > doesn't work. Here is basically what I tried. > > > > item = FXTableItem.new(string_value, nil, some_object) > > table.setItem(row, column, item) > > > > some_object is an object from my ToDo class. > > This fails on the first line with "in `initialize': wrong argument > > type ToDo (expected Data)". > > Apparently I can't pass an arbitrary object as the last parameter of > > the FXTableItem constructor. What does it expect? > > Try something like this: > FXTableItem.new(string_value, nil) { |item| > item.data = some_object > } Wow! That works! But does it make sense? I would have thought your code and mine would do exactly the same thing. Why can I assign to "data" after I've created the FXTableItem object, but I can't pass the same value to the FXTableItem constructor? -- R. Mark Volkmann Object Computing, Inc. From lyle at knology.net Sun Apr 2 09:22:24 2006 From: lyle at knology.net (Lyle Johnson) Date: Sun, 2 Apr 2006 08:22:24 -0500 Subject: [fxruby-users] associating objects with FXTable rows In-Reply-To: References: <701981E0-B8C9-42F9-AE32-8ACEBF6DD759@butlerpress.com> Message-ID: <5c6dbc5afa68d053dc1873ac8f4455e6@knology.net> On Apr 2, 2006, at 7:30 AM, Mark Volkmann wrote: > Wow! That works! But does it make sense? I would have thought your > code and mine would do exactly the same thing. Why can I assign to > "data" after I've created the FXTableItem object, but I can't pass the > same value to the FXTableItem constructor? This sounds like a bug. I've submitted a bug report on your behalf: http://rubyforge.org/tracker/index.php? func=detail&aid=4005&group_id=300&atid=1223 Thanks, Lyle From scott at butlerpress.com Sun Apr 2 14:21:39 2006 From: scott at butlerpress.com (Scott Willson) Date: Sun, 2 Apr 2006 11:21:39 -0700 Subject: [fxruby-users] associating objects with FXTable rows In-Reply-To: References: <701981E0-B8C9-42F9-AE32-8ACEBF6DD759@butlerpress.com> Message-ID: <5BD3077B-429C-4A17-8993-54B7574B7B84@butlerpress.com> On Apr 2, 2006, at 5:30 AM, Mark Volkmann wrote: > On 4/1/06, Scott Willson wrote: >> >> On Apr 1, 2006, at 8:11 PM, Mark Volkmann wrote: >> >>> I'd like to associate an arbitrary object with a row in an >>> FXTable. I >>> thought I could do it using FXTableItems for my cells, but that >>> doesn't work. Here is basically what I tried. >>> >>> item = FXTableItem.new(string_value, nil, some_object) >>> table.setItem(row, column, item) >>> >>> some_object is an object from my ToDo class. >>> This fails on the first line with "in `initialize': wrong argument >>> type ToDo (expected Data)". >>> Apparently I can't pass an arbitrary object as the last parameter of >>> the FXTableItem constructor. What does it expect? >> >> Try something like this: >> FXTableItem.new(string_value, nil) { |item| >> item.data = some_object >> } > > Wow! That works! But does it make sense? I would have thought your > code and mine would do exactly the same thing. Why can I assign to > "data" after I've created the FXTableItem object, but I can't pass the > same value to the FXTableItem constructor? > > -- > R. Mark Volkmann > Object Computing, Inc. No, it doesn't make sense. It should do the same thing, though the two approaches could execute different code in slightly different contexts. I should have reported it as a bug, but I just followed the pattern from the examples and forgot about it. Scott From r.mark.volkmann at gmail.com Mon Apr 3 14:50:45 2006 From: r.mark.volkmann at gmail.com (Mark Volkmann) Date: Mon, 3 Apr 2006 13:50:45 -0500 Subject: [fxruby-users] toolbar icons Message-ID: Can someone recommend a site where I can download some free toolbar icons for basic things like open, save, cut, paste, ... Thanks! -- R. Mark Volkmann Object Computing, Inc. From ujb1 at gmx.de Wed Apr 5 10:45:31 2006 From: ujb1 at gmx.de (Dirk Schwendemann) Date: Wed, 5 Apr 2006 16:45:31 +0200 (MEST) Subject: [fxruby-users] intercepting messages from FXScrollBartoFXScrollArea Message-ID: <5011.1144248331@www087.gmx.net> Hello Jeroen, Henon and Lyle, I've tried to overload the layout method of FXText with this: def layout() super() scrollCorner.destroy() verticalScrollBar.resize(verticalScrollBar.width, height) end This works as long as the user doesn't use the keyboard to enter text into the textfield. It seems, as if user actions (e.g entering text with the keyboard)trigger the layout method of FXText directly without calling the overloaded ruby method. I've added a SEL_CHANGED handler to the TextField to catch these events and correct the Scrollbar. This approach works, if notify=true is used in all calls to appendText and appendStyledText. I also tried to put a "next 0" at the end of the SEL_CONFIGURE message handler of my first trial: @scrollArea.verticalScrollBar.connect(SEL_CONFIGURE){ ... next 0 } Unfortunately this doesn't work neither - probably because the original target has been overwritten by the connect command. Nevertheless the scroll down button is now at the place I wanted it to be. Thank you for your time and advice Dirk -- Echte DSL-Flatrate dauerhaft f?r 0,- Euro*! "Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl From r.mark.volkmann at gmail.com Thu Apr 6 12:20:17 2006 From: r.mark.volkmann at gmail.com (Mark Volkmann) Date: Thu, 6 Apr 2006 11:20:17 -0500 Subject: [fxruby-users] automated testing Message-ID: Is there a way to automate testing of fxruby applications ... something like Jemmy for Java Swing? -- R. Mark Volkmann Object Computing, Inc. From meinrad.recheis at gmail.com Thu Apr 6 18:48:14 2006 From: meinrad.recheis at gmail.com (Meinrad Recheis) Date: Fri, 7 Apr 2006 00:48:14 +0200 Subject: [fxruby-users] automated testing In-Reply-To: References: Message-ID: <43d756720604061548x488e5246t1757c06e8a686abe@mail.gmail.com> On 4/6/06, Mark Volkmann wrote: > Is there a way to automate testing of fxruby applications ... > something like Jemmy for Java Swing? > > -- > R. Mark Volkmann > Object Computing, Inc. > > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users > From meinrad.recheis at gmail.com Thu Apr 6 18:54:39 2006 From: meinrad.recheis at gmail.com (Meinrad Recheis) Date: Fri, 7 Apr 2006 00:54:39 +0200 Subject: [fxruby-users] automated testing In-Reply-To: References: Message-ID: <43d756720604061554s3d5abaf7le60cadffc833a6a2@mail.gmail.com> if your application is modularized well you wont need it. there are more clever ways to test an applications. -- henon On 4/6/06, Mark Volkmann wrote: > Is there a way to automate testing of fxruby applications ... > something like Jemmy for Java Swing? > > -- > R. Mark Volkmann > Object Computing, Inc. > > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users > From r.mark.volkmann at gmail.com Thu Apr 6 19:38:19 2006 From: r.mark.volkmann at gmail.com (Mark Volkmann) Date: Thu, 6 Apr 2006 18:38:19 -0500 Subject: [fxruby-users] automated testing In-Reply-To: <43d756720604061554s3d5abaf7le60cadffc833a6a2@mail.gmail.com> References: <43d756720604061554s3d5abaf7le60cadffc833a6a2@mail.gmail.com> Message-ID: On 4/6/06, Meinrad Recheis wrote: > if your application is modularized well you wont need it. there are > more clever ways to test an applications. I know I can test all my business logic separately, but I still think it's useful to have automated tests that verify that my GUI event handling logic stays corrrect as I add more features. > On 4/6/06, Mark Volkmann wrote: > > Is there a way to automate testing of fxruby applications ... > > something like Jemmy for Java Swing? > > > > -- > > R. Mark Volkmann > > Object Computing, Inc. > > > > _______________________________________________ > > fxruby-users mailing list > > fxruby-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/fxruby-users > > > > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users > -- R. Mark Volkmann Object Computing, Inc. From meinrad.recheis at gmail.com Fri Apr 7 04:22:09 2006 From: meinrad.recheis at gmail.com (Meinrad Recheis) Date: Fri, 7 Apr 2006 10:22:09 +0200 Subject: [fxruby-users] Fwd: fxRuby: changing icon in TreeItem crashes In-Reply-To: References: Message-ID: <43d756720604070122k1bbbcbd7nb62791825889c8e4@mail.gmail.com> lyle, this is a common pitfall! (see below msg to ruby-talk). since you asked for ideas for the new fxruby api here is a new one: icons should maintain a @created state and don't crash but either raise an Exception or just call create in such a case. same with fxfonts. also segfaulting constructors that got nil references to their parent are troublesome. just some suggestions, -- henon ---------- Forwarded message ---------- From: Kloubakov Yura Date: Apr 7, 2006 10:14 AM Subject: Re: fxRuby: changing icon in TreeItem crashes To: ruby-talk ML Christer, You have to explicitly call "create" for the new icon to create the server side object. Fox does it automatically for all the objects it can see at the time "create" is called for the FXApp object if I remember correctly. > -----Original Message----- > From: list-bounce at example.com > [mailto:list-bounce at example.com] On Behalf Of Christer Nilsson > Sent: Thursday, April 06, 2006 6:44 PM > > I would like to change the icon used by TreeItem in TreeList. > I'm using > > # Convenience function to load & construct an icon > def makeIcon(filename) > begin > filename = File.join("icons", filename) > icon = nil > File.open(filename, "rb") { |f| > icon = FXPNGIcon.new(getApp(), f.read) > } > icon > rescue > raise RuntimeError, "Couldn't load icon: #{filename}" > end > end > > ... > > doc = makeIcon("minidoc.png") doc.create > @tree.currentItem.text = "new icon coming ..." > @tree.currentItem.closedIcon = doc # crash! > > I had no problem adding icons when the TreeItem was constructed. > > I'm using fox14. > > Christer Yura. From lyle at knology.net Fri Apr 7 08:56:15 2006 From: lyle at knology.net (Lyle Johnson) Date: Fri, 7 Apr 2006 07:56:15 -0500 Subject: [fxruby-users] Fwd: fxRuby: changing icon in TreeItem crashes In-Reply-To: <43d756720604070122k1bbbcbd7nb62791825889c8e4@mail.gmail.com> References: <43d756720604070122k1bbbcbd7nb62791825889c8e4@mail.gmail.com> Message-ID: <9e86d1a9b403cd799b2235735a69381a@knology.net> On Apr 7, 2006, at 3:22 AM, Meinrad Recheis wrote: > this is a common pitfall! (see below msg to ruby-talk). since you > asked for ideas for the new fxruby api here is a new one: icons should > maintain a @created state and don't crash but either raise an > Exception or just call create in such a case. I've added a feature request about this but it's going to be difficult or impossible to do without significant changes to the C++ FOX library. There are numerous places in the C++ code where Jeroen checks to see if an icon has been created, and if it hasn't, he calls the fxerror() function. The fxerror() function prints out an error message (e.g. "Illegal icon specified") and then calls the system's abort() function. Various people have asked for him to change this mechanism to make it more flexible. For example, one approach would be to provide a C++ API to set an error handler function in place of fxerror(), and let FOX call that function instead. Another obvious one is to have FOX throw C++ exceptions instead of calling fxerror(). So far Jeroen has chosen to leave things the way they are. From dylanb at digitalvalence.com Fri Apr 7 11:28:32 2006 From: dylanb at digitalvalence.com (Dylan Bruzenak) Date: Fri, 07 Apr 2006 10:28:32 -0500 Subject: [fxruby-users] Fwd: fxRuby: changing icon in TreeItem crashes -segfault question In-Reply-To: <9e86d1a9b403cd799b2235735a69381a@knology.net> References: <43d756720604070122k1bbbcbd7nb62791825889c8e4@mail.gmail.com> <9e86d1a9b403cd799b2235735a69381a@knology.net> Message-ID: <44368520.8070107@digitalvalence.com> What about the segfaults ? I am assuming that is why I get the 'application asked to be terminated in an unusual way' errors. > On Apr 7, 2006, at 3:22 AM, Meinrad Recheis wrote: > > >> this is a common pitfall! (see below msg to ruby-talk). since you >> asked for ideas for the new fxruby api here is a new one: icons should >> maintain a @created state and don't crash but either raise an >> Exception or just call create in such a case. >> > > I've added a feature request about this but it's going to be difficult > or impossible to do without significant changes to the C++ FOX library. > There are numerous places in the C++ code where Jeroen checks to see if > an icon has been created, and if it hasn't, he calls the fxerror() > function. The fxerror() function prints out an error message (e.g. > "Illegal icon specified") and then calls the system's abort() function. > > Various people have asked for him to change this mechanism to make it > more flexible. For example, one approach would be to provide a C++ API > to set an error handler function in place of fxerror(), and let FOX > call that function instead. Another obvious one is to have FOX throw > C++ exceptions instead of calling fxerror(). So far Jeroen has chosen > to leave things the way they are. > > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users > > From lyle at knology.net Fri Apr 7 11:33:59 2006 From: lyle at knology.net (lyle at knology.net) Date: 7 Apr 2006 15:33:59 -0000 Subject: [fxruby-users] Fwd: fxRuby: changing icon in TreeItem crashes -segfault question In-Reply-To: <> References: <> Message-ID: <20060407153359.31732.qmail@webmail3.knology.net> On Fri, 07 Apr 2006 10:28:32 -0500, Dylan Bruzenak wrote : > What about the segfaults ? I am assuming that is why I get the > 'application asked to be terminated in an unusual way' errors. I'm not sure I understand the question. As I said, FOX calls abort() after it prints its error message, and abort() causes a segmentation fault. From lyle at knology.net Fri Apr 7 17:10:12 2006 From: lyle at knology.net (lyle at knology.net) Date: 7 Apr 2006 21:10:12 -0000 Subject: [fxruby-users] Fwd: fxRuby: changing icon in TreeItem crashes -segfault question In-Reply-To: <> References: <> Message-ID: <20060407211012.31264.qmail@webmail4.knology.net> On Fri, 07 Apr 2006 15:51:59 -0500, Dylan Bruzenak wrote : > Also, besides suggestions to the general API, what is your view on > creating components that extend the Fox toolkit ? Do you want to keep > those in a separate project and keep the FXRuby implementation 'pure'? Well, I suppose the answer is "it depends", but it's probably best to keep those in a separate project. I have enough work as it is developing and maintaining the FXRuby "core". ;) From lyle at knology.net Fri Apr 7 17:15:37 2006 From: lyle at knology.net (lyle at knology.net) Date: 7 Apr 2006 21:15:37 -0000 Subject: [fxruby-users] Fwd: fxRuby: changing icon in TreeItem crashes In-Reply-To: <> References: <> Message-ID: <20060407211537.767.qmail@webmail4.knology.net> On Fri, 7 Apr 2006 22:23:40 +0200, "Meinrad Recheis" wrote : > hmm. are you sure that there is no solution that does not require > changing the c++ code? I am sure that there is no solution that doesn't require changing a lot of someone's C++ code, either Jeroen's or mine. ;) > how about wrapping every method that accepts an icon? the wrapping > code check's if icon.created? and proceeds else raises an exception. It's not always an error to pass a non-created icon to a method that accepts an icon. But I see what you're getting at and that might be a solution that doesn't involve changes to FOX itself. From lyle at knology.net Sat Apr 8 18:01:46 2006 From: lyle at knology.net (Lyle Johnson) Date: Sat, 8 Apr 2006 17:01:46 -0500 Subject: [fxruby-users] [ANN] FXRuby 1.4.5 Now Available Message-ID: <0514076a61b0fd488cee222dbc69773a@knology.net> All, FXRuby version 1.4.5 is now available for download from this page: http://rubyforge.org/frs/?group_id=300&release_id=4843 For a summary of the changes in this release, please see this page: http://www.fxruby.org/doc/changes.html As usual, the code is provided as a Win32 installer or a binary Gem (both compatible with the latest One-Click Installer for Ruby 1.8.4), as a source gem, and as a source tarball. For instructions on compiling FXRuby from source, please see: http://www.fxruby.org/doc/build.html And as always, the FXRuby home page is here: http://www.fxruby.org Enjoy, Lyle From fxrbu1 at gi2.herzkes.de Mon Apr 10 17:35:56 2006 From: fxrbu1 at gi2.herzkes.de (Tobias Herzke) Date: Mon, 10 Apr 2006 23:35:56 +0200 Subject: [fxruby-users] Display an arrow, or transparent image colors Message-ID: <443ACFBC.3010001@gi2.herzkes.de> I want to display an arrow in the user interface between 2 GUI Components. I think I know how I can do it, but I ran into a problem displaying pixel images with transparent background. I describe this image display problem here and ask for advice. but if someone knows of a different and easier way to display arrows, please tell me. Example Problem: I want a FXHorizontalFrame to contain, from left to right, (1) a FXTextField, (2) the arrow, pointing from to the right, (3) a FXDial. I figured I can display the Arrow using a .png image containing a red arrow on transparent background, loading that image using FXPNGIcon, and display it in FXImageFrame. Example code: require "fox14" include Fox app = FXApp.new window = FXMainWindow.new(app, "Demo") window.place(PLACEMENT_SCREEN) hframe = FXHorizontalFrame.new(window) file_display = FXTextField.new(hframe, 40, nil, 0, LAYOUT_CENTER_Y) file_display.text = "SoundFile.wav" arrow_image = File.open("ArrowShortRightRedT.png", "rb") {|f| FXPNGIcon.new(app, f.read) } # arrow_image.options = IMAGE_ALPHACOLOR | IMAGE_ALPHAGUESS arrow = FXImageFrame.new(hframe, arrow_image, FRAME_NONE) dial = FXDial.new(hframe, nil, 0, DIAL_VERTICAL | DIAL_HAS_NOTCH | LAYOUT_FILL_Y) app.create window.show app.mainloop Using this program, my red arrow will display on black background. I had expected the background to be of the same gray as used everywhere else in the fox window. Anyone know how to achieve this? I've tried various combinations of setting the options as in the commented-out line above, and using images without transparent background in .png and .gif format. The result was that the background color that should have been transparent was actually displayed. I know I can use a .png image of my red arrow with grey background already present in the bitmap. But this is calling for trouble: fox uses different shades of gray on linux and windows, and I don't know about other platforms. Please help! Tobias From lyle at knology.net Mon Apr 10 20:29:24 2006 From: lyle at knology.net (Lyle Johnson) Date: Mon, 10 Apr 2006 19:29:24 -0500 Subject: [fxruby-users] Display an arrow, or transparent image colors In-Reply-To: <443ACFBC.3010001@gi2.herzkes.de> References: <443ACFBC.3010001@gi2.herzkes.de> Message-ID: <0294684ae6ce7b9ac57333313aff0a0e@knology.net> On Apr 10, 2006, at 4:35 PM, Tobias Herzke wrote: > Using this program, my red arrow will display on black background. I > had > expected the background to be of the same gray as used everywhere else > in the fox window. Anyone know how to achieve this? I've tried various > combinations of setting the options as in the commented-out line above, > and using images without transparent background in .png and .gif > format. > The result was that the background color that should have been > transparent was actually displayed. The problem, I think, is that the FXImageFrame widget isn't aware of icon transparency. That is, it assumes that whatever you're passing it is a "plain old" image, without a transparency mask. I would recommend replacing the image frame with a label, and assigning your icon to that label, e.g. arrow_image = File.open("ArrowShortRightRedT.png", "rb") {|f| FXPNGIcon.new(app, f.read, 0, IMAGE_ALPHAGUESS) } arrow = FXLabel.new(hframe, "", arrow_image) Hope this helps, Lyle From gerard.menochet at wanadoo.fr Sat Apr 15 11:50:03 2006 From: gerard.menochet at wanadoo.fr (=?iso-8859-1?Q?G=E9rard_M=E9nochet?=) Date: Sat, 15 Apr 2006 17:50:03 +0200 Subject: [fxruby-users] A glitch in setDefaultCursor ? Message-ID: <001301c660a4$42e0f560$b18c7b52@gnwpcpf2pugnix> Hi, my guess is to change the DEF_MOVE_CURSOR 1_ That works ( new cursor by default) FXApp.new() do |app| app.setDefaultCursor(DEF_MOVE_CURSOR,FXCursor.new(app)) ... 2_ A glitch ? FXApp.new() do |app| app.setDefaultCursor(DEF_MOVE_CURSOR,app.getDefaultCursor(DEF_ARROW_CURSOR)) abnormal program termination Kory.rb:1320: [BUG] Segmentation fault ruby 1.8.4 (2005-12-24) [i386-mswin32] G?rard M?nochet -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/fxruby-users/attachments/20060415/585565f9/attachment.htm From lyle at knology.net Sat Apr 15 16:31:24 2006 From: lyle at knology.net (Lyle Johnson) Date: Sat, 15 Apr 2006 15:31:24 -0500 Subject: [fxruby-users] A glitch in setDefaultCursor ? In-Reply-To: <001301c660a4$42e0f560$b18c7b52@gnwpcpf2pugnix> References: <001301c660a4$42e0f560$b18c7b52@gnwpcpf2pugnix> Message-ID: On Apr 15, 2006, at 10:50 AM, G?rard M?nochet wrote: > ?my guess is to change the DEF_MOVE_CURSOR... Thanks, I've filed a bug report on your behalf. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 238 bytes Desc: not available Url : http://rubyforge.org/pipermail/fxruby-users/attachments/20060415/ec79a4f8/attachment.bin From usselmann.m at icg-online.de Sun Apr 16 03:11:42 2006 From: usselmann.m at icg-online.de (Manfred Usselmann) Date: Sun, 16 Apr 2006 09:11:42 +0200 Subject: [fxruby-users] fxruby 1.4 - FXIconDict Message-ID: <20060416091142.aa937499.usselmann.m@icg-online.de> Hi, I'm switching from fxruby 1.2.6 to 1.4.5 The first problem I have is that FXIconDict seems to be no longer working: FXIconDict.new( self, "icons" ) returns wrong number of arguments (2 for 0) (ArgumentError)" If I use FXIconDict.new() I get undefined method `setIconPath' for # (NoMethodError) undefined method `find' for # (NoMethodError) I can't find FXIconDict any longer in the fxruby API doc, but according to the FOX doc it should still work. Manfred From lyle at knology.net Sun Apr 16 08:07:09 2006 From: lyle at knology.net (Lyle Johnson) Date: Sun, 16 Apr 2006 07:07:09 -0500 Subject: [fxruby-users] fxruby 1.4 - FXIconDict In-Reply-To: <20060416091142.aa937499.usselmann.m@icg-online.de> References: <20060416091142.aa937499.usselmann.m@icg-online.de> Message-ID: On Apr 16, 2006, at 2:11 AM, Manfred Usselmann wrote: > Hi, > > I'm switching from fxruby 1.2.6 to 1.4.5 > > The first problem I have is that FXIconDict seems to be no longer > working: Thanks, I've submitted a bug report on your behalf. From usselmann.m at icg-online.de Tue Apr 18 03:23:27 2006 From: usselmann.m at icg-online.de (Manfred Usselmann) Date: Tue, 18 Apr 2006 09:23:27 +0200 Subject: [fxruby-users] FXSwitcher message problem Message-ID: <20060418092327.1fdb78c1.usselmann.m@icg-online.de> Hi, I use @mySwitcher.setCurrent( index ) and have a method connected to my FXSwitcher object: @mySwitcher.connect(SEL_COMMAND, method(:onCmdSwitch)) I would expect that onCmdSwitch(sender, sel, index) would receive the new index as third parameter. At least it should according to the fxruby documentation: "SEL_COMMAND: sent whenever the current (topmost) child window changes; the message data is an integer indicating the new current window?s index." This does not work for me. I get a different number or sometimes even 'false'. As a workaround I now use @mySwitcher.current in onCmdSwitch, which contains the new index... I'm using fxruby 1.4.5. Regards, Manfred From gerard.menochet at wanadoo.fr Tue Apr 18 06:28:12 2006 From: gerard.menochet at wanadoo.fr (=?iso-8859-1?Q?G=E9rard_M=E9nochet?=) Date: Tue, 18 Apr 2006 12:28:12 +0200 Subject: [fxruby-users] PRoblem with FXSeparator Message-ID: <003f01c662d2$cc2949f0$f0997b52@gnwpcpf2pugnix> Hi, No reason to use FXSeparator, but by chance, i did something like that ......... FXHorizontalSeparator.new(self,SEPARATOR_LINE|LAYOUT_FILL_X) # ok ........... FXSeparator.new(self,SEPARATOR_LINE|LAYOUT_FILL_X) # or FXSeparator(self) ......... abnormal program termination Kory.rb:1604: [BUG] Segmentation fault ruby 1.8.4 (2005-12-24) [i386-mswin32] regards G?rard M?nochet -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/fxruby-users/attachments/20060418/5498f939/attachment-0001.htm From lyle at knology.net Tue Apr 18 07:59:00 2006 From: lyle at knology.net (Lyle Johnson) Date: Tue, 18 Apr 2006 06:59:00 -0500 Subject: [fxruby-users] FXSwitcher message problem In-Reply-To: <20060418092327.1fdb78c1.usselmann.m@icg-online.de> References: <20060418092327.1fdb78c1.usselmann.m@icg-online.de> Message-ID: <928e57448b100b78010c7789e6f4c10a@knology.net> On Apr 18, 2006, at 2:23 AM, Manfred Usselmann wrote: > Hi, > > I use @mySwitcher.setCurrent( index ) and have a method connected to my > FXSwitcher object: Thanks, I have submitted a bug report on your behalf. From lyle at knology.net Tue Apr 18 08:02:16 2006 From: lyle at knology.net (Lyle Johnson) Date: Tue, 18 Apr 2006 07:02:16 -0500 Subject: [fxruby-users] PRoblem with FXSeparator In-Reply-To: <003f01c662d2$cc2949f0$f0997b52@gnwpcpf2pugnix> References: <003f01c662d2$cc2949f0$f0997b52@gnwpcpf2pugnix> Message-ID: <51eef3bc10c0eb668003e3a48a159947@knology.net> On Apr 18, 2006, at 5:28 AM, G?rard M?nochet wrote: > Hi, > ? > ?No reason to use FXSeparator, but by chance, i did something like that Thanks, I've submitted a bug report on your behalf. As you noted, the normal practice is to just construct an FXHorizontalSeparator or FXVerticalSeparator. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 443 bytes Desc: not available Url : http://rubyforge.org/pipermail/fxruby-users/attachments/20060418/de92fb7a/attachment.bin From dylanb at digitalvalence.com Wed Apr 19 15:34:23 2006 From: dylanb at digitalvalence.com (Dylan Bruzenak) Date: Wed, 19 Apr 2006 14:34:23 -0500 Subject: [fxruby-users] PRoblem with FXSeparator In-Reply-To: <51eef3bc10c0eb668003e3a48a159947@knology.net> References: <003f01c662d2$cc2949f0$f0997b52@gnwpcpf2pugnix> <51eef3bc10c0eb668003e3a48a159947@knology.net> Message-ID: <444690BF.9010107@digitalvalence.com> I'm looking to get a .avi video playing in the middle of an fxruby window. Anyone had any experience with this ? Dylan From meinrad.recheis at gmail.com Wed Apr 19 15:40:58 2006 From: meinrad.recheis at gmail.com (Meinrad Recheis) Date: Wed, 19 Apr 2006 21:40:58 +0200 Subject: [fxruby-users] PRoblem with FXSeparator In-Reply-To: <444690BF.9010107@digitalvalence.com> References: <003f01c662d2$cc2949f0$f0997b52@gnwpcpf2pugnix> <51eef3bc10c0eb668003e3a48a159947@knology.net> <444690BF.9010107@digitalvalence.com> Message-ID: <43d756720604191240r3ee0549ap2db68bdcf69067f5@mail.gmail.com> wow, please post the solution if you get it to work! i think it will only be possible with FXGLCanvas, FXCanvas is too slow. On 4/19/06, Dylan Bruzenak wrote: > I'm looking to get a .avi video playing in the middle of an fxruby > window. Anyone had any experience with this ? > > Dylan > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users > From jeroen at fox-toolkit.org Wed Apr 19 17:31:11 2006 From: jeroen at fox-toolkit.org (Jeroen van der Zijp) Date: Wed, 19 Apr 2006 16:31:11 -0500 Subject: [fxruby-users] PRoblem with FXSeparator In-Reply-To: <444690BF.9010107@digitalvalence.com> References: <003f01c662d2$cc2949f0$f0997b52@gnwpcpf2pugnix> <51eef3bc10c0eb668003e3a48a159947@knology.net> <444690BF.9010107@digitalvalence.com> Message-ID: <200604191631.15800.jeroen@fox-toolkit.org> On Wednesday 19 April 2006 14:34, Dylan Bruzenak wrote: > I'm looking to get a .avi video playing in the middle of an fxruby > window. Anyone had any experience with this ? Probably, what's needed is a subclass of FXWindow which manages a special window which supports X video extension. You can do this, probably two ways: 1) Subclass FXWindow and set up X video window. This is probably preferred. 2) "Swallow" an existing window from the video player application, using attach(). For example if you fire up mplayer you can attach the mplayer or ogle window inside an FXWindow, after which its geometry is managed by the widget set. My vote would be option (2) since setting up the video window isn't the hard part; its pushing data to it at real-time rates for smooth video playback, not to mention sound. All these problems have been solved in mplayer already. I have to mention that a FOX-based video player already exists; its called Goggles and you can find it here: http://www.fifthplanet.net/goggles.html Hope this helps, - Jeroen -- +----------------------------------------------------------------------------+ | Copyright (C) 16:20 04/19/2006 Jeroen van der Zijp. All Rights Reserved. | +----------------------------------------------------------------------------+ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://rubyforge.org/pipermail/fxruby-users/attachments/20060419/07a3c1b4/attachment.bin From dylanb at digitalvalence.com Wed Apr 19 17:31:30 2006 From: dylanb at digitalvalence.com (Dylan Bruzenak) Date: Wed, 19 Apr 2006 16:31:30 -0500 Subject: [fxruby-users] playing video in the middle of an fxruby window In-Reply-To: <43d756720604191240r3ee0549ap2db68bdcf69067f5@mail.gmail.com> References: <003f01c662d2$cc2949f0$f0997b52@gnwpcpf2pugnix> <51eef3bc10c0eb668003e3a48a159947@knology.net> <444690BF.9010107@digitalvalence.com> <43d756720604191240r3ee0549ap2db68bdcf69067f5@mail.gmail.com> Message-ID: <4446AC32.90604@digitalvalence.com> Oops, forgot to change the subject line. I'll let you know if I get it working. Meinrad Recheis wrote: > wow, please post the solution if you get it to work! i think it will > only be possible with FXGLCanvas, FXCanvas is too slow. > > On 4/19/06, Dylan Bruzenak wrote: > >> I'm looking to get a .avi video playing in the middle of an fxruby >> window. Anyone had any experience with this ? >> >> Dylan >> _______________________________________________ >> fxruby-users mailing list >> fxruby-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/fxruby-users >> >> > > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users > > From gerard.menochet at wanadoo.fr Wed Apr 19 18:29:22 2006 From: gerard.menochet at wanadoo.fr (=?iso-8859-1?Q?G=E9rard_M=E9nochet?=) Date: Thu, 20 Apr 2006 00:29:22 +0200 Subject: [fxruby-users] is there a problem with FXList findItemByData(....) ?????? Message-ID: <001e01c66400$b586dd50$939f7b52@gnwpcpf2pugnix> Hi, I am tackling with FXList ( ruby 1.8.4 (2005-12-24) [i386-mswin32]) ) . The 'data' value is a MDIChild reference afxlist.findItemByData(sender) => return -1 . Always I can turn around it by doing .......... cpt = 0 ; idx=nil afxlist.each do |lista| if lista.data == sender idx=cpt break end cpt+=1 end .......... My concern is : is there a problem or have I done something wrong ? Regards G?rard M?nochet -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/fxruby-users/attachments/20060420/cbb57cdb/attachment.htm From lyle at knology.net Wed Apr 19 20:14:17 2006 From: lyle at knology.net (Lyle Johnson) Date: Wed, 19 Apr 2006 19:14:17 -0500 Subject: [fxruby-users] is there a problem with FXList findItemByData(....) ?????? In-Reply-To: <001e01c66400$b586dd50$939f7b52@gnwpcpf2pugnix> References: <001e01c66400$b586dd50$939f7b52@gnwpcpf2pugnix> Message-ID: <99cdaea8ac1c6f7f1d39fad1f0c6d7c9@knology.net> On Apr 19, 2006, at 5:29 PM, G?rard M?nochet wrote: > ??? afxlist.findItemByData(sender)??? => return? -1?. Always OK, this sounds like a bug. I have filed a bug report on your behalf. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 274 bytes Desc: not available Url : http://rubyforge.org/pipermail/fxruby-users/attachments/20060419/d377d220/attachment.bin From lyle at knology.net Fri Apr 21 08:45:22 2006 From: lyle at knology.net (Lyle Johnson) Date: Fri, 21 Apr 2006 07:45:22 -0500 Subject: [fxruby-users] Planned switch to Subversion Message-ID: As some of you know, RubyForge has recently begun offering Subversion as an option for source code revision control (in addition to CVS). I'm planning to make the switch to Subversion soon, so this is a heads-up for anyone who currently has the code checked out, or is otherwise interested. If there's any reason that you would like for me to put off doing this, speak now or forever hold your peace! From lyle at knology.net Mon Apr 24 09:15:52 2006 From: lyle at knology.net (Lyle Johnson) Date: Mon, 24 Apr 2006 08:15:52 -0500 Subject: [fxruby-users] table.getItem(1,1).icon=ic In-Reply-To: References: Message-ID: <1c1aeff35e682e9597b8608b18f06e1e@knology.net> Helmut, If I understand what you're asking, I think the solution is to call create() on ic2 before using it: ic2.create @table.getItem(1, 1).icon = ic2 If this does not solve your problem, please try to express your question more clearly. Hope this helps, Lyle On Apr 24, 2006, at 1:36 AM, Helmut Hagemann wrote: > High > ? > i have trouble with FXTable > > setItemIcon(row, column, icon) > Modify cell icon, deleting the old icon if it was owned. Raises > IndexError if either row or column is out of bounds. > where is owned find > ? > first Picture > @table.getItem(1,1).icon=ic > the first Picture is displayed > ? > Second Picture > I will change die icon in table > @table.getItem(1,1).icon=ic2? > ? > but ruby send an Error > ? > This application has requested the Runtime to terminate it in an > unusual way. > Please contact the application's support team for more information. > F:/edi/rbB.tmp:241: [BUG] Segmentation fault > ruby 1.8.4 (2005-12-24) [i386-mswin32] > ? > for reading thanks > Helmut Hagemann > ? -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 3786 bytes Desc: not available Url : http://rubyforge.org/pipermail/fxruby-users/attachments/20060424/2e7e12b7/attachment-0001.bin From lyle at knology.net Mon Apr 24 09:56:20 2006 From: lyle at knology.net (lyle at knology.net) Date: 24 Apr 2006 13:56:20 -0000 Subject: [fxruby-users] table.getItem(1,1).icon=ic In-Reply-To: <> References: <> Message-ID: <20060424135620.18437.qmail@webmail2.knology.net> On Mon, 24 Apr 2006 15:29:11 +0200, "Helmut Hagemann" wrote : > I have solve the problem with @table.create() > At this point icon is displayed Good news! > Sorry for my bad English > I forgot all my lections That's OK. Your English is much better than my German. ;) > This there an German Tutorial for fxruby? Not that I'm aware of... From gerard.menochet at wanadoo.fr Tue Apr 25 17:48:19 2006 From: gerard.menochet at wanadoo.fr (=?iso-8859-1?Q?G=E9rard_M=E9nochet?=) Date: Tue, 25 Apr 2006 23:48:19 +0200 Subject: [fxruby-users] FXListBox ...connect(SEL_COMMAND) Message-ID: <001101c668b1$f77c81f0$40847b52@gnwpcpf2pugnix> Hi, I think I got a problem with the FXListBox widget. ( ruby 1.8.4 (2005-12-24) [i386-mswin32]) ) FXListBox.new(parent, nil, 0) do |libo4| libo4.appendItem("0 very weird") libo4.appendItem("1 very weird") libo4.appendItem("2 very weird") libo4.appendItem("3 very weird") libo4.appendItem("4 very weird") libo4.appendItem("5 very weird") libo4.appendItem("6 very weird") libo4.appendItem("7 very weird") libo4.appendItem("8 very weird") libo4.numVisible = 6 libo4.connect(SEL_COMMAND) do |sender,selector,data| puts data end The data value printed is always 1. Not always, sometimes true, false ..... I am amazed. It's a very common widget. I Hope I'm wrong somewhere Regards G?rard M?nochet -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/fxruby-users/attachments/20060425/552409f0/attachment.htm From lyle at knology.net Tue Apr 25 17:56:15 2006 From: lyle at knology.net (lyle at knology.net) Date: 25 Apr 2006 21:56:15 -0000 Subject: [fxruby-users] FXListBox ...connect(SEL_COMMAND) In-Reply-To: <> References: <> Message-ID: <20060425215615.20143.qmail@webmail2.knology.net> On Tue, 25 Apr 2006 23:48:19 +0200, G?rard M?nochet wrote : > I think I got a problem with the FXListBox widget... Gerard, would you please consider submitting a bug report about this? The bug tracker for FXRuby can be found here: http://rubyforge.org/tracker/index.php?group_id=300&atid=1223 Thanks, Lyle From gerard.menochet at wanadoo.fr Tue Apr 25 18:57:57 2006 From: gerard.menochet at wanadoo.fr (=?iso-8859-1?Q?G=E9rard_M=E9nochet?=) Date: Wed, 26 Apr 2006 00:57:57 +0200 Subject: [fxruby-users] FXListBox ...connect(SEL_COMMAND) References: <001101c668b1$f77c81f0$40847b52@gnwpcpf2pugnix> Message-ID: <001401c668bb$b1d817e0$40847b52@gnwpcpf2pugnix> I forgot To turn the problem around : sender.currentItem it's ok ----- Original Message ----- From: G?rard M?nochet To: fxruby-users at rubyforge.org Sent: Tuesday, April 25, 2006 11:48 PM Subject: [fxruby-users] FXListBox ...connect(SEL_COMMAND) Hi, I think I got a problem with the FXListBox widget. ( ruby 1.8.4 (2005-12-24) [i386-mswin32]) ) FXListBox.new(parent, nil, 0) do |libo4| libo4.appendItem("0 very weird") libo4.appendItem("1 very weird") libo4.appendItem("2 very weird") libo4.appendItem("3 very weird") libo4.appendItem("4 very weird") libo4.appendItem("5 very weird") libo4.appendItem("6 very weird") libo4.appendItem("7 very weird") libo4.appendItem("8 very weird") libo4.numVisible = 6 libo4.connect(SEL_COMMAND) do |sender,selector,data| puts data end The data value printed is always 1. Not always, sometimes true, false ..... I am amazed. It's a very common widget. I Hope I'm wrong somewhere Regards G?rard M?nochet ------------------------------------------------------------------------------ _______________________________________________ fxruby-users mailing list fxruby-users at rubyforge.org http://rubyforge.org/mailman/listinfo/fxruby-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/fxruby-users/attachments/20060426/39d6e2f0/attachment.htm From lyle at knology.net Tue Apr 25 21:35:53 2006 From: lyle at knology.net (Lyle Johnson) Date: Tue, 25 Apr 2006 20:35:53 -0500 Subject: [fxruby-users] [ANN] FXRuby 1.4.6 Now Available Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 All, FXRuby version 1.4.6 is now available for download from this page: http://rubyforge.org/frs/?group_id=300&release_id=5146 For a summary of the changes in this release, please see this page: http://www.fxruby.org/doc/changes.html As usual, the code is provided as a Win32 installer or a binary Gem (both compatible with the latest One-Click Installer for Ruby 1.8.4), as a source gem, and as a source tarball. For instructions on compiling FXRuby from source, please see: http://www.fxruby.org/doc/build.html And as always, the FXRuby home page is here: http://www.fxruby.org Enjoy, Lyle -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin) iD8DBQFETs56FXV/hD6oMd0RAqrhAJ4k3Tyju+pwaGDzXhSQRU12x4VcOACdGk7F cN9xocwIWmI6pFZa+w86ZWE= =Pm4w -----END PGP SIGNATURE----- From sander at knology.net Tue Apr 25 22:29:37 2006 From: sander at knology.net (Sander Jansen) Date: Tue, 25 Apr 2006 21:29:37 -0500 Subject: [fxruby-users] [ANN] FXRuby 1.4.6 Now Available In-Reply-To: References: Message-ID: <200604252129.37350.sander@knology.net> You're a little behind with the FOX version. FOX 1.4.33 is the latest one! Cheers, Sander On Tuesday 25 April 2006 20:35, Lyle Johnson wrote: > All, > > FXRuby version 1.4.6 is now available for download from this page: > > http://rubyforge.org/frs/?group_id=300&release_id=5146 > > For a summary of the changes in this release, please see this page: > > http://www.fxruby.org/doc/changes.html > > As usual, the code is provided as a Win32 installer or a binary Gem > (both compatible with the latest One-Click Installer for Ruby 1.8.4), > as a source gem, and as a source tarball. For instructions on compiling > FXRuby from source, please see: > > http://www.fxruby.org/doc/build.html > > And as always, the FXRuby home page is here: > > http://www.fxruby.org > > Enjoy, > > Lyle > > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users From lyle at knology.net Wed Apr 26 08:53:40 2006 From: lyle at knology.net (Lyle Johnson) Date: Wed, 26 Apr 2006 07:53:40 -0500 Subject: [fxruby-users] [ANN] FXRuby 1.4.6 Now Available In-Reply-To: <200604252129.37350.sander@knology.net> References: <200604252129.37350.sander@knology.net> Message-ID: On Apr 25, 2006, at 9:29 PM, Sander Jansen wrote: > You're a little behind with the FOX version. FOX 1.4.33 is the latest > one! Well, you see, with Ruby it doesn't take so many lines of code as it does with C++. ;) From sander at knology.net Wed Apr 26 09:11:24 2006 From: sander at knology.net (Sander Jansen) Date: Wed, 26 Apr 2006 08:11:24 -0500 Subject: [fxruby-users] [ANN] FXRuby 1.4.6 Now Available In-Reply-To: References: <200604252129.37350.sander@knology.net> Message-ID: <200604260811.24571.sander@knology.net> Yes you were always the smarter one :P I meant, the gem is still build against FOX 1.4.29... so you're a little behind.... Cheers, Sander On Wednesday 26 April 2006 07:53, Lyle Johnson wrote: > On Apr 25, 2006, at 9:29 PM, Sander Jansen wrote: > > You're a little behind with the FOX version. FOX 1.4.33 is the latest > > one! > > Well, you see, with Ruby it doesn't take so many lines of code as it > does with C++. ;) From lyle at knology.net Wed Apr 26 09:14:09 2006 From: lyle at knology.net (Lyle Johnson) Date: Wed, 26 Apr 2006 08:14:09 -0500 Subject: [fxruby-users] [ANN] FXRuby 1.4.6 Now Available In-Reply-To: <200604260811.24571.sander@knology.net> References: <200604252129.37350.sander@knology.net> <200604260811.24571.sander@knology.net> Message-ID: <4692fd2ce17e04c4517cad0e44141da9@knology.net> On Apr 26, 2006, at 8:11 AM, Sander Jansen wrote: > Yes you were always the smarter one :P > I meant, the gem is still build against FOX 1.4.29... so you're a > little > behind.... Ah, OK. The FOX News (no, not *that* FOX news) page only reports a FOX version 1.4.32 with "back-ported fixes for GCC 4.1 C++ language changes", which doesn't sound too compelling. If there have been some actual bug fixes that would matter for Windows users, I'll consider updating the binary gem for Windows. From lyle at knology.net Wed Apr 26 20:29:06 2006 From: lyle at knology.net (Lyle Johnson) Date: Wed, 26 Apr 2006 19:29:06 -0500 Subject: [fxruby-users] FXListBox makeItemVisible In-Reply-To: <000c01c66985$876ea4e0$c2177b52@gnwpcpf2pugnix> References: <> <20060425215615.20143.qmail@webmail2.knology.net> <000c01c66985$876ea4e0$c2177b52@gnwpcpf2pugnix> Message-ID: <27a9cb1016672eaa8eb6656a04a4348f@knology.net> On Apr 26, 2006, at 6:02 PM, G?rard M?nochet wrote: > I have the same problem. I tried to use the currentItem, > setCurrentItem() method (i guess the same thing that currentItem= ), > that > works but apparently, no call to > makeItemVisible(). (fxruby version 1.4.4 - ruby 1.8.4 - win32) I just checked the source code for FXListBox in FOX 1.4.29, and calling setCurrentItem() on an FXListBox does in fact call makeItemVisible() on the embedded FXList: // Change current item void FXListBox::setCurrentItem(FXint index){ list->setCurrentItem(index); list->makeItemVisible(index); if(0<=index){ field->setIcon(list->getItemIcon(index)); field->setText(list->getItemText(index)); } else { field->setIcon(NULL); field->setText(" "); } } Do you have an example program that demonstrates the problem? Lyle From gerard.menochet at wanadoo.fr Wed Apr 26 21:35:49 2006 From: gerard.menochet at wanadoo.fr (=?iso-8859-1?Q?G=E9rard_M=E9nochet?=) Date: Thu, 27 Apr 2006 03:35:49 +0200 Subject: [fxruby-users] FXListBox makeItemVisible References: <> <20060425215615.20143.qmail@webmail2.knology.net> <000c01c66985$876ea4e0$c2177b52@gnwpcpf2pugnix> <27a9cb1016672eaa8eb6656a04a4348f@knology.net> Message-ID: <000701c6699a$ea2b63b0$da827b52@gnwpcpf2pugnix> An example libo = FXListBox.new(parent, nil, 0) libo.numVisible = 6 (1980..2050).each do |i| libo.appendItem(i.to_s) end libo.currentItem=26 No 'makeItemVisible' at the first show. If you click one year, it will always do it . To workaround, I do that libo.connect(SEL_CONFIGURE) do |sender,selector,data| begin ; libo.currentItem = libo.currentItem ; rescue ; end # force the makeItemVisible end Thanks G?rard M?nochet ----- Original Message ----- From: "Lyle Johnson" To: "G?rard M?nochet" Cc: Sent: Thursday, April 27, 2006 2:29 AM Subject: Re: FXListBox makeItemVisible On Apr 26, 2006, at 6:02 PM, G?rard M?nochet wrote: > I have the same problem. I tried to use the currentItem, > setCurrentItem() method (i guess the same thing that currentItem= ), > that > works but apparently, no call to > makeItemVisible(). (fxruby version 1.4.4 - ruby 1.8.4 - win32) I just checked the source code for FXListBox in FOX 1.4.29, and calling setCurrentItem() on an FXListBox does in fact call makeItemVisible() on the embedded FXList: // Change current item void FXListBox::setCurrentItem(FXint index){ list->setCurrentItem(index); list->makeItemVisible(index); if(0<=index){ field->setIcon(list->getItemIcon(index)); field->setText(list->getItemText(index)); } else { field->setIcon(NULL); field->setText(" "); } } Do you have an example program that demonstrates the problem? Lyle From lyle at knology.net Wed Apr 26 22:17:50 2006 From: lyle at knology.net (Lyle Johnson) Date: Wed, 26 Apr 2006 21:17:50 -0500 Subject: [fxruby-users] FXListBox makeItemVisible In-Reply-To: <000701c6699a$ea2b63b0$da827b52@gnwpcpf2pugnix> References: <> <20060425215615.20143.qmail@webmail2.knology.net> <000c01c66985$876ea4e0$c2177b52@gnwpcpf2pugnix> <27a9cb1016672eaa8eb6656a04a4348f@knology.net> <000701c6699a$ea2b63b0$da827b52@gnwpcpf2pugnix> Message-ID: <806c9d3af2b4e91ff45bae68cef1011f@knology.net> On Apr 26, 2006, at 8:35 PM, G?rard M?nochet wrote: > An example > > libo = FXListBox.new(parent, nil, 0) > libo.numVisible = 6 > (1980..2050).each do |i| libo.appendItem(i.to_s) end > libo.currentItem=26 > > No 'makeItemVisible' at the first show. If you click one year, it > will > always do it . Ah, OK. Yes, I can believe that calling makeItemVisible() before the list (or list box) is actually shown probably doesn't have any effect. I think your workaround is probably the best bet. From sdruby at onlinehome.de Thu Apr 27 03:07:39 2006 From: sdruby at onlinehome.de (=?us-ascii?Q?Sascha_Dordelmann?=) Date: Thu, 27 Apr 2006 09:07:39 +0200 Subject: [fxruby-users] German tutorial for fxruby In-Reply-To: <20060424135620.18437.qmail@webmail2.knology.net> Message-ID: Helmut, you wrote: > This there an German Tutorial for fxruby? The german ruby community provides several german ruby sites and tutorials, have a look at http://www.rubywiki.de, http://www.rubywiki.de/wiki/Links and http://www.rubywiki.de/wiki/FXRuby. Cheers Sascha From alexander.panich at intel.com Thu Apr 27 08:42:29 2006 From: alexander.panich at intel.com (Panich, Alexander) Date: Thu, 27 Apr 2006 15:42:29 +0300 Subject: [fxruby-users] FXRuby installation Message-ID: I have fox 1.4.33 installed. All installation steps of FXRuby (config,setup,install) passed successfully, but when I try to load fox14 (require 'fox14') it gives me an error: LoadError: /usr/local/lib/ruby/site_ruby/1.8/i686-linux/fox14.so: undefined symbol: removeTimeout__Q22FX5FXAppPQ22FX7FXTimer - /usr/local/lib/ruby/site_ruby/1.8/i686-linux/fox14.so I use ruby version: ruby 1.8.4 (2005-12-24) [i686-linux] Any ideas? Thanks, Alex. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/fxruby-users/attachments/20060427/820b230e/attachment.htm From lyle at knology.net Thu Apr 27 08:50:29 2006 From: lyle at knology.net (Lyle Johnson) Date: Thu, 27 Apr 2006 07:50:29 -0500 Subject: [fxruby-users] FXRuby installation In-Reply-To: References: Message-ID: On Apr 27, 2006, at 7:42 AM, Panich, Alexander wrote: > I have fox 1.4.33 installed. All installation steps of FXRuby > (config,setup,install) passed successfully, but when I > try to load fox14 (require 'fox14') it gives me an error: > ? > LoadError: /usr/local/lib/ruby/site_ruby/1.8/i686-linux/fox14.so: > undefined symbol: removeTimeout__Q22FX5FXAppPQ22FX7FXTimer > - /usr/local/lib/ruby/site_ruby/1.8/i686-linux/fox14.so > ? > I use ruby version: ruby 1.8.4 (2005-12-24) [i686-linux] > ? > Any ideas? Alex, This sounds somewhat like one of the problems described under the heading "Things That Can Go Wrong", in the build instructions: http://www.fxruby.org/doc/build.html Have you checked out those fixes yet? Thanks, Lyle -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1713 bytes Desc: not available Url : http://rubyforge.org/pipermail/fxruby-users/attachments/20060427/cc76425a/attachment.bin From alexander.panich at intel.com Thu Apr 27 08:59:05 2006 From: alexander.panich at intel.com (Panich, Alexander) Date: Thu, 27 Apr 2006 15:59:05 +0300 Subject: [fxruby-users] FXRuby installation Message-ID: Hi Lyle, Thanks for quick response. There was no solution for such problem. Indeed, these was another problem with linker, but at libstdc++.so object file. To be sure, I tried suggested solution (added -lgcc flag at linkage stage), but it did not help. Thanks, Alex. ________________________________ From: Lyle Johnson [mailto:lyle at knology.net] Sent: Thursday, April 27, 2006 3:50 PM To: Panich, Alexander Cc: fxruby-users at rubyforge.org Subject: Re: [fxruby-users] FXRuby installation On Apr 27, 2006, at 7:42 AM, Panich, Alexander wrote: I have fox 1.4.33 installed. All installation steps of FXRuby (config,setup,install) passed successfully, but when I try to load fox14 (require 'fox14') it gives me an error: LoadError: /usr/local/lib/ruby/site_ruby/1.8/i686-linux/fox14.so: undefined symbol: removeTimeout__Q22FX5FXAppPQ22FX7FXTimer - /usr/local/lib/ruby/site_ruby/1.8/i686-linux/fox14.so I use ruby version: ruby 1.8.4 (2005-12-24) [i686-linux] Any ideas? Alex, This sounds somewhat like one of the problems described under the heading "Things That Can Go Wrong", in the build instructions: http://www.fxruby.org/doc/build.html Have you checked out those fixes yet? Thanks, Lyle -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/fxruby-users/attachments/20060427/a3b81f0a/attachment.htm From thomas.vanier at gmail.com Thu Apr 27 09:44:05 2006 From: thomas.vanier at gmail.com (Thomas Vanier) Date: Thu, 27 Apr 2006 09:44:05 -0400 Subject: [fxruby-users] FXRuby and FOX versions Message-ID: Hi, Is there an easy way to get the FXRuby and FOX versions used by the program ? Something like the RUBY_VERSION constant : irb(main):003:0> RUBY_VERSION => "1.8.4" Thanks Thomas From lyle at knology.net Thu Apr 27 09:46:23 2006 From: lyle at knology.net (lyle at knology.net) Date: 27 Apr 2006 13:46:23 -0000 Subject: [fxruby-users] FXRuby installation In-Reply-To: <> References: <> Message-ID: <20060427134623.24557.qmail@webmail4.knology.net> On Thu, 27 Apr 2006 15:59:05 +0300, "Panich, Alexander" wrote : > There was no solution for such problem. Indeed, these was another > problem with linker, but at libstdc++.so object file. To be sure, I > tried suggested solution (added -lgcc flag at linkage stage), but it did > not help. Hmmm. OK, well, let's start with the basics. Have you verified that you have a working FOX installation? I mean, the compile obviously finished, but do the FOX test programs (i.e. those found in the fox-1.4.33/tests directory) run? From lyle at knology.net Thu Apr 27 09:49:16 2006 From: lyle at knology.net (lyle at knology.net) Date: 27 Apr 2006 13:49:16 -0000 Subject: [fxruby-users] FXRuby and FOX versions In-Reply-To: <> References: <> Message-ID: <20060427134916.26640.qmail@webmail4.knology.net> On Thu, 27 Apr 2006 09:44:05 -0400, "Thomas Vanier" wrote : > Is there an easy way to get the FXRuby and FOX versions used by the > program ? > Something like the RUBY_VERSION constant : > irb(main):003:0> RUBY_VERSION > => "1.8.4" Yes. The fxrubyversion module method returns the FXRuby version: Fox.fxrubyversion ==> "1.4.6" and the fxversion method returns the version number of the FOX library that you've linked against: Fox.fxversion ==> "1.4.29" Hope this helps, Lyle From dylanb at digitalvalence.com Thu Apr 27 10:46:56 2006 From: dylanb at digitalvalence.com (Dylan Bruzenak) Date: Thu, 27 Apr 2006 09:46:56 -0500 Subject: [fxruby-users] positioning by percentage In-Reply-To: <20060427134916.26640.qmail@webmail4.knology.net> References: <> <20060427134916.26640.qmail@webmail4.knology.net> Message-ID: <4450D960.5000707@digitalvalence.com> Is there an easy way to position components by percentage of their container/layout manager ? Barring that, what is the best class to do just xy layouts so that I can build my own layout managers ? FXComposite ? thanks, Dylan > On Thu, 27 Apr 2006 09:44:05 -0400, "Thomas Vanier" > wrote : > > >> Is there an easy way to get the FXRuby and FOX versions used by the >> program ? >> Something like the RUBY_VERSION constant : >> irb(main):003:0> RUBY_VERSION >> => "1.8.4" >> > > Yes. The fxrubyversion module method returns the FXRuby version: > > Fox.fxrubyversion ==> "1.4.6" > > and the fxversion method returns the version number of the FOX library that > you've linked against: > > Fox.fxversion ==> "1.4.29" > > Hope this helps, > > Lyle > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users > > From lyle at knology.net Thu Apr 27 10:55:40 2006 From: lyle at knology.net (lyle at knology.net) Date: 27 Apr 2006 14:55:40 -0000 Subject: [fxruby-users] positioning by percentage In-Reply-To: <> References: <> Message-ID: <20060427145540.20700.qmail@webmail2.knology.net> On Thu, 27 Apr 2006 09:46:56 -0500, Dylan Bruzenak wrote : > Is there an easy way to position components by percentage of their > container/layout manager? The spring layout manager (http://www.fxruby.org/doc/api/classes/Fox/FXSpring.html) is one you might look at, although I don't think it's exactly what you're looking for. AFAIK, there aren't any FOX layouts that work in terms of percentages. > Barring that, what is the best class to do just xy layouts so that > I can build my own layout managers? FXComposite? Yup, I think that's what I'd go with if I were going to "roll my own" kind of layout manager. From dylanb at digitalvalence.com Thu Apr 27 12:12:38 2006 From: dylanb at digitalvalence.com (Dylan Bruzenak) Date: Thu, 27 Apr 2006 11:12:38 -0500 Subject: [fxruby-users] html widget In-Reply-To: <20060427145540.20700.qmail@webmail2.knology.net> References: <> <20060427145540.20700.qmail@webmail2.knology.net> Message-ID: <4450ED76.5060406@digitalvalence.com> In the continuing saga of questions, are there any good html widgets for fxruby ? Any ideas on building one if not ? From lyle at knology.net Thu Apr 27 13:51:01 2006 From: lyle at knology.net (lyle at knology.net) Date: 27 Apr 2006 17:51:01 -0000 Subject: [fxruby-users] html widget In-Reply-To: <> References: <> Message-ID: <20060427175101.24801.qmail@webmail1.knology.net> On Thu, 27 Apr 2006 11:12:38 -0500, Dylan Bruzenak wrote : > In the continuing saga of questions, are there any good html widgets for > fxruby ? Any ideas on building one if not ? I'm not aware of an HTML widget for FXRuby, much less a really well-established one for FOX. I think the best bet for someone (not me) would be to try to wrap Gecko (Mozilla's HTML rendering component) in a FOX window. Or if not Gecko, some other existing HTML widget. It won't be pretty, and will take some dedication on someone's part, but it seems like the quickest path to a working HTML widget in my mind. A more interesting, but even less feasible, solution would be to write the widget in Ruby itself. There are already HTML parsers for Ruby, obviously. The big challenge would be working out the rendering side of it, i.e. how to lay out and "draw" the web page into a FOX window. From lyle at knology.net Thu Apr 27 13:54:55 2006 From: lyle at knology.net (lyle at knology.net) Date: 27 Apr 2006 17:54:55 -0000 Subject: [fxruby-users] html widget In-Reply-To: <> References: <> Message-ID: <20060427175455.26356.qmail@webmail1.knology.net> I forgot to mention this in my previous response: http://swtfox.sourceforge.net/ It's Ivan Markov's of the SWT to FOX, and includes some kind of HTML widget for FOX. This might also be a good starting point for someone interested in developing an HTML widget for FXRuby. From dylanb at digitalvalence.com Thu Apr 27 14:15:22 2006 From: dylanb at digitalvalence.com (Dylan Bruzenak) Date: Thu, 27 Apr 2006 13:15:22 -0500 Subject: [fxruby-users] html widget and a mouseover event question In-Reply-To: <20060427175101.24801.qmail@webmail1.knology.net> References: <> <20060427175101.24801.qmail@webmail1.knology.net> Message-ID: <44510A3A.1050704@digitalvalence.com> Hmmmmm. I'll give it some think time. Another question: is it possible to change the background of a menu title on roll over ? I'm changing the borders, but I want the entire background color to change. Is there are mouseover event that is triggered on a control on mouse entry ? I see some stuff for DND in FXWindow, but no other references. > On Thu, 27 Apr 2006 11:12:38 -0500, Dylan Bruzenak > wrote : > > >> In the continuing saga of questions, are there any good html widgets for >> fxruby ? Any ideas on building one if not ? >> > > I'm not aware of an HTML widget for FXRuby, much less a really > well-established one for FOX. > > I think the best bet for someone (not me) would be to try to wrap Gecko > (Mozilla's HTML rendering component) in a FOX window. Or if not Gecko, some > other existing HTML widget. It won't be pretty, and will take some > dedication on someone's part, but it seems like the quickest path to a > working HTML widget in my mind. > > A more interesting, but even less feasible, solution would be to write the > widget in Ruby itself. There are already HTML parsers for Ruby, obviously. > The big challenge would be working out the rendering side of it, i.e. how to > lay out and "draw" the web page into a FOX window. > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users > > From lyle at knology.net Thu Apr 27 22:32:46 2006 From: lyle at knology.net (Lyle Johnson) Date: Thu, 27 Apr 2006 21:32:46 -0500 Subject: [fxruby-users] html widget and a mouseover event question In-Reply-To: <44510A3A.1050704@digitalvalence.com> References: <> <20060427175101.24801.qmail@webmail1.knology.net> <44510A3A.1050704@digitalvalence.com> Message-ID: <9461e67e9d8569da7c855e3579541183@knology.net> On Apr 27, 2006, at 1:15 PM, Dylan Bruzenak wrote: > Another question: is it possible to change the background of a menu > title on roll over ? I'm changing the borders, but I want the entire > background color to change. > > Is there are mouseover event that is triggered on a control on mouse > entry ? I see some stuff for DND in FXWindow, but no other references. You might be able to accomplish this by catching the SEL_ENTER and SEL_LEAVE messages. The main things to remember are that your message handlers should return false (or zero) so that FOX goes ahead with the normal processing for those messages: menuTitle = FXMenuTitle.new(...) menuTitle.connect(SEL_ENTER) { puts "enter" false } menuTitle.connect(SEL_LEAVE) { puts "leave" false } Hope this helps, Lyle From dylanb at digitalvalence.com Fri Apr 28 03:00:42 2006 From: dylanb at digitalvalence.com (Dylan Bruzenak) Date: Fri, 28 Apr 2006 02:00:42 -0500 Subject: [fxruby-users] html widget and a mouseover event question In-Reply-To: <9461e67e9d8569da7c855e3579541183@knology.net> References: <> <20060427175101.24801.qmail@webmail1.knology.net> <44510A3A.1050704@digitalvalence.com> <9461e67e9d8569da7c855e3579541183@knology.net> Message-ID: <4451BD9A.5040104@digitalvalence.com> Thanks, exactly what I was looking for. > On Apr 27, 2006, at 1:15 PM, Dylan Bruzenak wrote: > > >> Another question: is it possible to change the background of a menu >> title on roll over ? I'm changing the borders, but I want the entire >> background color to change. >> >> Is there are mouseover event that is triggered on a control on mouse >> entry ? I see some stuff for DND in FXWindow, but no other references. >> > > You might be able to accomplish this by catching the SEL_ENTER and > SEL_LEAVE messages. The main things to remember are that your message > handlers should return false (or zero) so that FOX goes ahead with the > normal processing for those messages: > > menuTitle = FXMenuTitle.new(...) > menuTitle.connect(SEL_ENTER) { > puts "enter" > false > } > menuTitle.connect(SEL_LEAVE) { > puts "leave" > false > } > > Hope this helps, > > Lyle > > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users > > From meinrad.recheis at gmail.com Fri Apr 28 13:05:58 2006 From: meinrad.recheis at gmail.com (Meinrad Recheis) Date: Fri, 28 Apr 2006 19:05:58 +0200 Subject: [fxruby-users] html widget In-Reply-To: <4450ED76.5060406@digitalvalence.com> References: <20060427145540.20700.qmail@webmail2.knology.net> <4450ED76.5060406@digitalvalence.com> Message-ID: <43d756720604281005r200be44bt2ccbbb84efa0f9f6@mail.gmail.com> On 4/27/06, Dylan Bruzenak wrote: > In the continuing saga of questions, are there any good html widgets for > fxruby ? Any ideas on building one if not ? > i did one some time ago in ruby, but it is not finished and i considered it only a prove of concept project for me. but if you are interested i may give you what i have so far. -- henon From dylanb at digitalvalence.com Fri Apr 28 18:01:54 2006 From: dylanb at digitalvalence.com (Dylan Bruzenak) Date: Fri, 28 Apr 2006 17:01:54 -0500 Subject: [fxruby-users] html widget In-Reply-To: <43d756720604281005r200be44bt2ccbbb84efa0f9f6@mail.gmail.com> References: <20060427145540.20700.qmail@webmail2.knology.net> <4450ED76.5060406@digitalvalence.com> <43d756720604281005r200be44bt2ccbbb84efa0f9f6@mail.gmail.com> Message-ID: <445290D2.4020908@digitalvalence.com> It can't hurt to have a look. Please send it along :) > On 4/27/06, Dylan Bruzenak wrote: > >> In the continuing saga of questions, are there any good html widgets for >> fxruby ? Any ideas on building one if not ? >> >> > > i did one some time ago in ruby, but it is not finished and i > considered it only a prove of concept project for me. but if you are > interested i may give you what i have so far. > -- henon > > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users > > From alexander.panich at intel.com Sun Apr 30 01:32:53 2006 From: alexander.panich at intel.com (Panich, Alexander) Date: Sun, 30 Apr 2006 08:32:53 +0300 Subject: [fxruby-users] FXRuby installation Message-ID: Yes, I did. I also verified that binaries such as FOX calculator, PathFinder, Adie editor work. -----Original Message----- From: fxruby-users-bounces at rubyforge.org [mailto:fxruby-users-bounces at rubyforge.org] On Behalf Of lyle at knology.net Sent: Thursday, April 27, 2006 4:46 PM To: fxruby-users at rubyforge.org Subject: Re: [fxruby-users] FXRuby installation On Thu, 27 Apr 2006 15:59:05 +0300, "Panich, Alexander" wrote : > There was no solution for such problem. Indeed, these was another > problem with linker, but at libstdc++.so object file. To be sure, I > tried suggested solution (added -lgcc flag at linkage stage), but it did > not help. Hmmm. OK, well, let's start with the basics. Have you verified that you have a working FOX installation? I mean, the compile obviously finished, but do the FOX test programs (i.e. those found in the fox-1.4.33/tests directory) run? _______________________________________________ fxruby-users mailing list fxruby-users at rubyforge.org http://rubyforge.org/mailman/listinfo/fxruby-users