From meinrad.recheis at gmail.com Sun Jun 4 02:32:40 2006 From: meinrad.recheis at gmail.com (Meinrad Recheis) Date: Sun, 4 Jun 2006 08:32:40 +0200 Subject: [fxruby-users] [ANN] FXRuby 1.6.0 Now Available In-Reply-To: References: Message-ID: <43d756720606032332t155ebe16y3d00c82a2450b73b@mail.gmail.com> On 5/29/06, Lyle Johnson wrote: > All, > > FXRuby version 1.6.0 is now available for download from this page: > > http://rubyforge.org/frs/?group_id=300&release_id=5497 > lyle, i have a problem installing fxruby 1.6 gem on linux. the fox16.so compiled fine. everything seems to be in its place but require "fox16" doesn't seem to work. henon at golem:~$ irb irb(main):001:0> require "fox16" => false irb(main):002:0> Fox NameError: uninitialized constant Fox from (irb):2 irb(main):003:0> VERSION => "1.8.3" irb(main):004:0> here are the last lines of the gem installation process. it says that there is nothing to do for make install. is this ok? ... gcc -shared -L"/usr/local/lib" -L"/usr/lib" -o fox16.so librb.o ui_wrap.o layou t_wrap.o FXRuby.o iconlist_wrap.o core_wrap.o dc_wrap.o fx3d_wrap.o list_wrap.o label_wrap.o text_wrap.o unregisterOwnedObjects.o table_wrap.o frames_wrap.o FXR bApp.o icons_wrap.o impl.o mdi_wrap.o dialogs_wrap.o FXRbGLViewer.o image_wrap.o menu_wrap.o FXRbDataTarget.o markfuncs.o treelist_wrap.o -lruby1.8 -lFOX-1.6 - lGLU -lGL -lX11 -lXext -ltiff -ljpeg -lz -lpng -lstdc++ -lpthread -ldl -lcrypt -lm -lc make install make: Nothing to be done for `install'. Successfully installed fxruby-1.6.0 Installing RDoc documentation for fxruby-1.6.0... rdoc-sources/FXPPMImage.rb:14:27: Couldn't find FXPNGImage. Assuming it's a modu le henon at golem:~$ gem --version 0.8.11 summary: fox 1.6.5 compiled fine and examples worked. fxruby 1.6 compiled without errors too. just the require fails to load the library somehow... any clues? best wishes, -- henon From charleshixsn at earthlink.net Sun Jun 4 04:15:12 2006 From: charleshixsn at earthlink.net (Charles D Hixson) Date: Sun, 04 Jun 2006 01:15:12 -0700 Subject: [fxruby-users] wrt FXRuby 1.6.0 Message-ID: <44829690.4030308@earthlink.net> *>Meinrad Recheis* meinrad.recheis at gmail.com />Sun Jun 4 02:32:40 EDT 2006/ * *>Messages sorted by:* [ date ] [ thread ] [ subject ] [ author ] ------------------------------------------------------------------------ >On 5/29/06, Lyle Johnson > wrote: >>/ All, />>/ />>/ FXRuby version 1.6.0 is now available for download from this page: />>/ />>/ http://rubyforge.org/frs/?group_id=300&release_id=5497 />>/ /> >lyle, > >i have a problem installing fxruby 1.6 gem on linux. the fox16.so >compiled fine. everything seems to be in its place but require "fox16" >doesn't seem to work. > >henon at golem :~$ irb >irb(main):001:0> require "fox16" >=> false >irb(main):002:0> Fox >NameError: uninitialized constant Fox > from (irb):2 >irb(main):003:0> VERSION >=> "1.8.3" >irb(main):004:0> I'm experiencing a closely analogous error on a Debian Etch system. It doesn't matter whether the file is installed via gem or via compiling the tarball. The symbol Fox is still undefined. test.rb:3: uninitialized constant Fox (NameError) Where does one find the documentation for fox14? That gem appears to be working flawlessly, (Well, there's a strange error in the unicode example, but perhaps that wasn't expected to work until fox16.), but the only api documentation I've found has been for fox16. From meinrad.recheis at gmail.com Sun Jun 4 06:05:20 2006 From: meinrad.recheis at gmail.com (Meinrad Recheis) Date: Sun, 4 Jun 2006 12:05:20 +0200 Subject: [fxruby-users] wrt FXRuby 1.6.0 In-Reply-To: <44829690.4030308@earthlink.net> References: <44829690.4030308@earthlink.net> Message-ID: <43d756720606040305v174608cgbf5f57f0335ab46@mail.gmail.com> On 6/4/06, Charles D Hixson wrote: > *>Meinrad Recheis* meinrad.recheis at gmail.com [,,,] > > I'm experiencing a closely analogous error on a Debian Etch system. It doesn't matter whether the file is installed via gem or via compiling the tarball. The symbol Fox is still undefined. > test.rb:3: uninitialized constant Fox (NameError) > > Where does one find the documentation for fox14? That gem appears to be working flawlessly, (Well, there's a strange error in the unicode example, but perhaps that wasn't expected to work until fox16.), but the only api documentation I've found has been for fox16. all previous api docs: http://fxruby.rubyforge.org/1.0/doc/api/ http://fxruby.rubyforge.org/1.2/doc/api/ http://fxruby.rubyforge.org/1.4/doc/api/ From lyle at knology.net Sun Jun 4 15:51:21 2006 From: lyle at knology.net (Lyle Johnson) Date: Sun, 4 Jun 2006 14:51:21 -0500 Subject: [fxruby-users] [ANN] FXRuby 1.6.0 Now Available In-Reply-To: <43d756720606032332t155ebe16y3d00c82a2450b73b@mail.gmail.com> References: <43d756720606032332t155ebe16y3d00c82a2450b73b@mail.gmail.com> Message-ID: <853bdcb96e0b319502c3cfb2d46322d0@knology.net> On Jun 4, 2006, at 1:32 AM, Meinrad Recheis wrote: > i have a problem installing fxruby 1.6 gem on linux. the fox16.so > compiled fine. everything seems to be in its place but require "fox16" > doesn't seem to work. I just did a fresh install on Fedora Core 4 and everything works as expected. Could you send me a copy of the file: /usr/local/lib/ruby/gems/1.8/gems/fxruby-1.6.0/ext/fox16/gem_make.out It may be in a slightly different location, depending on where you've installed Ruby. I'm not sure what I'm looking for, but I can at least see if there are any obvious differences between my copy of gem_make.out and yours. Thanks, Lyle From meinrad.recheis at gmail.com Sun Jun 4 16:58:21 2006 From: meinrad.recheis at gmail.com (Meinrad Recheis) Date: Sun, 4 Jun 2006 22:58:21 +0200 Subject: [fxruby-users] [ANN] foxGUIb v0.7 (for FXRuby 1.6) Message-ID: <43d756720606041358q1d287c37hfd69e1ea84ae5226@mail.gmail.com> dear (FX)Ruby hackers, lyle has released FXRuby 1.6.0 some days ago. so it was a good opportunity for me to fix some more bugs and release annother version of foxGUIb which is tested against FXRuby 1.6.0. the most interesting feature Fox1.6 brings to you is unicode support. (see foxGUIb/test/unicode_test_japanese.rbin) thanks for all the feedback and the bug reports. enjoy ;) -- henon ========================== foxGUIb v0.7 Release Notes ========================== == What is foxGUIb? == foxGUIb is a GUI creator and code generator for FXRuby. It's a convenient tool that makes it easy to quickly build complex and good looking graphical user interfaces for Ruby. == Whom is foxGUIb for? == * FXRuby newbies who want to experiment with the widgets and layouts. * FXRuby experts who want to prototype parts of their GUI components rapidly. ... ok, lets say everyone who wants to create a GUI with FXRuby ;) == What has changed? == * Fixed the bug that allowed to change properties of a deleted widget (caused a crash) * Fixed several bugs that led to crashes when typing improper values into the property manipulators. e.g.: backColor="bad input" instead of "200,255,255" * on startup foxGUIb logs important version infos to the log file. the log file is appended instead of replaced. in case of a problem you can send me your logfile. * some minor convenience fixes. == Links: == Homepage: http://fox-tool.rubyforge.org Mike Parr's User Guide: http://www.mikeparr.info/rubyguib/foxguibhome.htm Download: http://rubyforge.org/frs/?group_id=88 == Copyright and License == foxGUIb is free software. Copyright (c) by Meinrad Recheis aka Henon foxGUIb: Artistic License libGUIb: lgpl Boring Disclaimer: THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. From charleshixsn at earthlink.net Sun Jun 4 17:30:09 2006 From: charleshixsn at earthlink.net (Charles D Hixson) Date: Sun, 04 Jun 2006 14:30:09 -0700 Subject: [fxruby-users] wrt FXRuby 1.6.0 In-Reply-To: <43d756720606040305v174608cgbf5f57f0335ab46@mail.gmail.com> References: <44829690.4030308@earthlink.net> <43d756720606040305v174608cgbf5f57f0335ab46@mail.gmail.com> Message-ID: <448350E1.4010504@earthlink.net> Meinrad Recheis wrote: > On 6/4/06, Charles D Hixson wrote: > > ... >> Where does one find the documentation for fox14? That gem appears to be working flawlessly, (Well, there's a strange error in the unicode example, but perhaps that wasn't expected to work until fox16.), but the only api documentation I've found has been for fox16. >> > > all previous api docs: > http://fxruby.rubyforge.org/1.0/doc/api/ > http://fxruby.rubyforge.org/1.2/doc/api/ > http://fxruby.rubyforge.org/1.4/doc/api/ Thanks. I'll bookmark that immediately. From lyle at knology.net Sun Jun 4 21:25:50 2006 From: lyle at knology.net (Lyle Johnson) Date: Sun, 4 Jun 2006 20:25:50 -0500 Subject: [fxruby-users] [ANN] FXRuby 1.6.0 Now Available In-Reply-To: <44834FB9.6060204@earthlink.net> References: <43d756720606032332t155ebe16y3d00c82a2450b73b@mail.gmail.com> <853bdcb96e0b319502c3cfb2d46322d0@knology.net> <44834FB9.6060204@earthlink.net> Message-ID: On Jun 4, 2006, at 4:25 PM, Charles D Hixson wrote: > Note the location: > /usr/lib/ruby/gems/1.8/gems/fxruby-1.6.0/ext/fox16/gem_make.out > Perhaps this is significant? Charles, I don't think this difference is significant; it just indicates that your Ruby is installed under /usr instead of /usr/local. I've compared both yours and Henon's gem_make.out files to mine (which was for a build under FC4) and the only obvious differences are: + For the Debian builds, the "platform" part is "i486-linux" instead of "i686-linux" + For the Debian builds, "-lruby1.8" is included in the final link step (the one that builds fox16.so). It's not included in mine. Neither of these differences are ringing any bells for me, and so I don't know what to tell you to do. I suspect that there's something "interesting" about how the version of Ruby that's bundled with Debian is built, but I don't have access to that operating system. Are any other Debian users reading this? Any clues? Lyle From lyle at knology.net Mon Jun 5 09:47:21 2006 From: lyle at knology.net (Lyle Johnson) Date: Mon, 5 Jun 2006 08:47:21 -0500 Subject: [fxruby-users] [ANN] FXRuby 1.6.0 Now Available In-Reply-To: <43d756720606042232t53e83759v2b96423004088926@mail.gmail.com> References: <43d756720606032332t155ebe16y3d00c82a2450b73b@mail.gmail.com> <853bdcb96e0b319502c3cfb2d46322d0@knology.net> <44834FB9.6060204@earthlink.net> <43d756720606042232t53e83759v2b96423004088926@mail.gmail.com> Message-ID: <4aa3bb5d9c555f8305537a4324f7f50b@knology.net> On Jun 5, 2006, at 12:32 AM, Meinrad Recheis wrote: > henon at golem:/usr/local/fox-1.6.4$ ls /usr/lib/libFOX* > /usr/lib/libFOX-1.4.so.0 /usr/lib/libFOX-1.4.so.0.0.16 > > now i got a clue what is happening, but i don't know why fox' make did > not build a libFOX-1.6.so > do i have to set any flags before fox compilation? Well, if you just did "configure; make; make install", then FOX got installed in /usr/local/lib and not /usr/lib. If that's the case, the solution to your problem can be found on this page from the FXRuby User's Guide: http://www.fxruby.org/doc/gems.html Hope this helps, Lyle From lyle.johnson at gmail.com Mon Jun 5 11:25:43 2006 From: lyle.johnson at gmail.com (Lyle Johnson) Date: Mon, 5 Jun 2006 10:25:43 -0500 Subject: [fxruby-users] FXRuby: updating a text label/positioning question In-Reply-To: <488.22983d4.31b58489@aol.com> References: <488.22983d4.31b58489@aol.com> Message-ID: On 6/5/06, Nuralanur at aol.com wrote: > I've searched the archive of the mailing lists, and found > a way to add a label , to recalc everything and to create the > whole frame anew... > but I can't change the content of @header in its original place. How could > that be done ? I didn't follow all of that very well, but I think your question boils down to, "How do I change the text of a label?" If that's the question, you change it using the text accessor method, e.g. @header.text = "Contents of file " + new_filename Note that you don't have to create a new label every time, and in fact that's sort-of a wasteful thing to do. Better to just change the text of the existing label widget (as shown here). P.S. Please consider subscribing to the fxruby-users mailing list and posting questions there instead. From meinrad.recheis at gmail.com Mon Jun 5 13:22:17 2006 From: meinrad.recheis at gmail.com (Meinrad Recheis) Date: Mon, 5 Jun 2006 19:22:17 +0200 Subject: [fxruby-users] [ANN] foxGUIb v0.7 (for FXRuby 1.6) In-Reply-To: <43d756720606041358q1d287c37hfd69e1ea84ae5226@mail.gmail.com> References: <43d756720606041358q1d287c37hfd69e1ea84ae5226@mail.gmail.com> Message-ID: <43d756720606051022m1a91d00by958cdbf23bdf4af2@mail.gmail.com> On 6/4/06, Meinrad Recheis wrote: > dear (FX)Ruby hackers, > > lyle has released FXRuby 1.6.0 some days ago. so it was a good > opportunity for me to fix some more bugs and release annother version > of foxGUIb which is tested against FXRuby 1.6.0. > the most interesting feature Fox1.6 brings to you is unicode support. > (see foxGUIb/test/unicode_test_japanese.rbin) > > thanks for all the feedback and the bug reports. > > enjoy ;) > -- henon > if you have downloaded version 0.7 please upgrade to 0.7.1. while fixing a minor bug i have been inserting a major one that could result in data loss. it's really time to build a testsuite for foxGUIb ... i know, but i don't really have the time. hope this one is stable. cheers, -- henon > ========================== > foxGUIb v0.7 Release Notes > ========================== > > == What is foxGUIb? == > foxGUIb is a GUI creator and code generator for FXRuby. It's a > convenient tool that makes it easy to quickly build complex and > good looking graphical user interfaces for Ruby. > > == Whom is foxGUIb for? == > * FXRuby newbies who want to experiment with the widgets and layouts. > * FXRuby experts who want to prototype parts of their GUI components rapidly. > ... ok, lets say everyone who wants to create a GUI with FXRuby ;) > > == What has changed? == > * Fixed the bug that allowed to change properties of a > deleted widget (caused a crash) > * Fixed several bugs that led to crashes when typing > improper values into the property manipulators. e.g.: > backColor="bad input" instead of "200,255,255" > * on startup foxGUIb logs important version infos to the > log file. the log file is appended instead of replaced. > in case of a problem you can send me your logfile. > * some minor convenience fixes. > > == Links: == > Homepage: > http://fox-tool.rubyforge.org > Mike Parr's User Guide: > http://www.mikeparr.info/rubyguib/foxguibhome.htm > Download: > http://rubyforge.org/frs/?group_id=88 > > == Copyright and License == > foxGUIb is free software. Copyright (c) by Meinrad Recheis aka Henon > foxGUIb: Artistic License > libGUIb: lgpl > > > > Boring Disclaimer: > > THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, > INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND > FITNESS FOR A PARTICULAR PURPOSE. > > From charleshixsn at earthlink.net Mon Jun 5 14:37:43 2006 From: charleshixsn at earthlink.net (Charles D Hixson) Date: Mon, 05 Jun 2006 11:37:43 -0700 Subject: [fxruby-users] [ANN] FXRuby 1.6.0 Now Available In-Reply-To: <4aa3bb5d9c555f8305537a4324f7f50b@knology.net> References: <43d756720606032332t155ebe16y3d00c82a2450b73b@mail.gmail.com> <853bdcb96e0b319502c3cfb2d46322d0@knology.net> <44834FB9.6060204@earthlink.net> <43d756720606042232t53e83759v2b96423004088926@mail.gmail.com> <4aa3bb5d9c555f8305537a4324f7f50b@knology.net> Message-ID: <448479F7.6090700@earthlink.net> Lyle Johnson wrote: > On Jun 5, 2006, at 12:32 AM, Meinrad Recheis wrote: > > >> henon at golem:/usr/local/fox-1.6.4$ ls /usr/lib/libFOX* >> /usr/lib/libFOX-1.4.so.0 /usr/lib/libFOX-1.4.so.0.0.16 >> >> now i got a clue what is happening, but i don't know why fox' make did >> not build a libFOX-1.6.so >> do i have to set any flags before fox compilation? >> > > Well, if you just did "configure; make; make install", then FOX got > installed in /usr/local/lib and not /usr/lib. > > If that's the case, the solution to your problem can be found on this > page from the FXRuby User's Guide: > > http://www.fxruby.org/doc/gems.html > > Hope this helps, > > Lyle > Let me be sure I understand this (I also did a "make intall"). The files are in: /usr/local/lib/libFOX-1.6.a /usr/local/lib/libFOX-1.6.la /usr/local/lib/libFOX-1.6.so /usr/local/lib/libFOX-1.6.so.0 /usr/local/lib/libFOX-1.6.so.0.0.4 Isn't this one of the "few standard places"? From lyle at knology.net Mon Jun 5 14:55:28 2006 From: lyle at knology.net (lyle at knology.net) Date: 5 Jun 2006 18:55:28 -0000 Subject: [fxruby-users] [ANN] FXRuby 1.6.0 Now Available In-Reply-To: <> References: <> Message-ID: <20060605185528.9896.qmail@webmail2.knology.net> On Mon, 05 Jun 2006 11:37:43 -0700, Charles D Hixson wrote : > Let me be sure I understand this (I also did a "make intall"). > The files are in: > /usr/local/lib/libFOX-1.6.a > /usr/local/lib/libFOX-1.6.la > /usr/local/lib/libFOX-1.6.so > /usr/local/lib/libFOX-1.6.so.0 > /usr/local/lib/libFOX-1.6.so.0.0.4 > Isn't this one of the "few standard places"? I'm sorry, I don't understand the question. A "standard place" for what? From AEtzold at gmx.de Mon Jun 5 16:14:05 2006 From: AEtzold at gmx.de (Axel Etzold) Date: Mon, 05 Jun 2006 22:14:05 +0200 Subject: [fxruby-users] Q about combining behaviour of foursplit.rb and shutter.rb Message-ID: <20060605201405.273160@gmx.net> I have a window that is split into four, like in foursplit.rb, where there are four buttons. Using a menu command, one can expand any of these, so that only this button takes the whole space. Now, I want to add a shutter button bar, as there is one in shutter.rb to the left of the main window. The user should have the possibility to "expand" any of the four windows, both from the menu (as in foursplit.rb), and from one set of Shutterbuttons. So far, I've tried to change the {}-block of the ShutterButtons to achieve that: shutterItem = ShutterItem.new(@shutter, "Files, data, and pictures", nil, LAYOUT_FILL_Y) ShutterButton.new(shutterItem.content, "Expand dirlist", fatBot).connect(SEL_COMMAND) { FX4Splitter::ID_EXPAND_TOPLEFT} ShutterButton.new(shutterItem.content, "Expand cell file editor", angryGuy).connect(SEL_COMMAND) { FX4Splitter::ID_EXPAND_BOTTOMLEFT} ShutterButton.new(shutterItem.content, "Expand tuning curve plot", sawBlade).connect(SEL_COMMAND) { FX4Splitter::ID_EXPAND_TOPRIGHT} ShutterButton.new(shutterItem.content, "Expand reconstruction plot", redMacOS).connect(SEL_COMMAND) {FX4Splitter::ID_EXPAND_BOTTOMRIGHT} ShutterButton.new(shutterItem.content, "Show all four", redMacOS).connect(SEL_COMMAND) { FX4Splitter::ID_EXPAND_ALL } But nothing happens. What should I do ? Thank you very much, Best regards, Axel -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer From lyle at knology.net Mon Jun 5 16:24:21 2006 From: lyle at knology.net (lyle at knology.net) Date: 5 Jun 2006 20:24:21 -0000 Subject: [fxruby-users] Q about combining behaviour of foursplit.rb and shutter.rb In-Reply-To: <> References: <> Message-ID: <20060605202421.7759.qmail@webmail1.knology.net> On Mon, 05 Jun 2006 22:14:05 +0200, Axel Etzold wrote : > So far, I've tried to change the {}-block of the ShutterButtons > to achieve that: > > shutterItem = ShutterItem.new(@shutter, "Files, data, and pictures", nil, LAYOUT_FILL_Y) > ShutterButton.new(shutterItem.content, "Expand dirlist", fatBot).connect(SEL_COMMAND) { FX4Splitter::ID_EXPAND_TOPLEFT} > ShutterButton.new(shutterItem.content, "Expand cell file editor", angryGuy).connect(SEL_COMMAND) { FX4Splitter::ID_EXPAND_BOTTOMLEFT} > ShutterButton.new(shutterItem.content, "Expand tuning curve plot", sawBlade).connect(SEL_COMMAND) { FX4Splitter::ID_EXPAND_TOPRIGHT} > ShutterButton.new(shutterItem.content, "Expand reconstruction plot", redMacOS).connect(SEL_COMMAND) {FX4Splitter::ID_EXPAND_BOTTOMRIGHT} > ShutterButton.new(shutterItem.content, "Show all four", redMacOS).connect(SEL_COMMAND) { FX4Splitter::ID_EXPAND_ALL } > > But nothing happens. > What should I do ? Well, your message-handler blocks don't *do* anything (other than evaluate the value of a constant like FX4Splitter::ID_EXPAND_TOPLEFT). I think you want to modify them to call a function on the splitter, for example: ShutterButton.new(shutterItem.content, "Expand dirlist", fatBot).connect(SEL_COMMAND) { four_splitter.expanded = FX4Splitter::ExpandTopLeft } Hope this helps, Lyle From AEtzold at gmx.de Mon Jun 5 16:53:04 2006 From: AEtzold at gmx.de (Axel Etzold) Date: Mon, 05 Jun 2006 22:53:04 +0200 Subject: [fxruby-users] Q about combining behaviour of foursplit.rb and shutter.rb In-Reply-To: <20060605202421.7759.qmail@webmail1.knology.net> References: <> <20060605202421.7759.qmail@webmail1.knology.net> Message-ID: <20060605205304.89040@gmx.net> Dear Lyle, thanks for that. I have yet another *stupid* question. In the beginning of my script, I call include Fox, so the code you gave me now produces c:/axelhome/ngui/f16.rb:157:in `initialize': uninitialized constant Fox::FX4Splitter::ExpandTopLeft (NameError) How can I get rid of Fox:: in there ? - I still need it in another place , though. Thank you very much! Best regards, Axel >?-------- Original-Nachricht -------- >?Datum: 5 Jun 2006 20:24:21 -0000 >?Von: "lyle at knology.net" >?An: fxruby-users at rubyforge.org >?Betreff: Re: [fxruby-users] Q about combining behaviour of foursplit.rb and shutter.rb >? > On Mon, 05 Jun 2006 22:14:05 +0200, Axel Etzold wrote : > > > So far, I've tried to change the {}-block of the ShutterButtons > > to achieve that: > > > > shutterItem = ShutterItem.new(@shutter, "Files, data, and pictures", > nil, LAYOUT_FILL_Y) > > ShutterButton.new(shutterItem.content, "Expand dirlist", > fatBot).connect(SEL_COMMAND) { FX4Splitter::ID_EXPAND_TOPLEFT} > > ShutterButton.new(shutterItem.content, "Expand cell file editor", > angryGuy).connect(SEL_COMMAND) { FX4Splitter::ID_EXPAND_BOTTOMLEFT} > > ShutterButton.new(shutterItem.content, "Expand tuning curve plot", > sawBlade).connect(SEL_COMMAND) { FX4Splitter::ID_EXPAND_TOPRIGHT} > > ShutterButton.new(shutterItem.content, "Expand reconstruction plot", > redMacOS).connect(SEL_COMMAND) {FX4Splitter::ID_EXPAND_BOTTOMRIGHT} > > ShutterButton.new(shutterItem.content, "Show all four", > redMacOS).connect(SEL_COMMAND) { FX4Splitter::ID_EXPAND_ALL } > > > > But nothing happens. > > What should I do ? > > Well, your message-handler blocks don't *do* anything (other than evaluate > the value of a constant like FX4Splitter::ID_EXPAND_TOPLEFT). > > I think you want to modify them to call a function on the splitter, for > example: > > ShutterButton.new(shutterItem.content, > "Expand dirlist", > fatBot).connect(SEL_COMMAND) { > four_splitter.expanded = FX4Splitter::ExpandTopLeft > } > > Hope this helps, > > Lyle > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer From lyle at knology.net Mon Jun 5 17:12:06 2006 From: lyle at knology.net (lyle at knology.net) Date: 5 Jun 2006 21:12:06 -0000 Subject: [fxruby-users] Q about combining behaviour of foursplit.rb and shutter.rb In-Reply-To: <> References: <> Message-ID: <20060605211206.6229.qmail@webmail3.knology.net> On Mon, 05 Jun 2006 22:53:04 +0200, Axel Etzold wrote : > the code you gave me now produces > > c:/axelhome/ngui/f16.rb:157:in `initialize': uninitialized constant Fox::FX4Splitter::ExpandTopLeft (NameError) You must be using FXRuby 1.4; the code I showed was for FXRuby 1.6. Try this instead: foursplitter.handle(self, FXSEL(SEL_COMMAND, FX4Splitter::ID_EXPAND_TOPLEFT), nil) Hope this helps, Lyle From lyle at knology.net Mon Jun 5 20:55:37 2006 From: lyle at knology.net (Lyle Johnson) Date: Mon, 5 Jun 2006 19:55:37 -0500 Subject: [fxruby-users] [ANN] FXRuby 1.6.0 Now Available In-Reply-To: <4484BABF.5020303@earthlink.net> References: <> <20060605185528.9896.qmail@webmail2.knology.net> <4484BABF.5020303@earthlink.net> Message-ID: <9d835192c321a7af5c362828d11d30f7@knology.net> On Jun 5, 2006, at 6:14 PM, Charles D Hixson wrote: > Sorry, I was quoting from http://www.fxruby.org/doc/gems.html where it > says: > "By default, the source gem will look for your FOX (and optionally, > FXScintilla) installation in a few standard places, such as the /usr, > /usr/local and /sw directories." Yeah, that's talking about looking for the include files (e.g. in /usr/include/fox-1.6, /usr/local/include/fox-1.6, etc.) so that it can build the FXRuby extension. > I had understood that to imply that it looked in /usr/local/lib, and I > had understood you to be implying that it didn't. (I was wrong...you > were talking about setting: > export LD_LIBRARY_PATH=/usr/local/lib > which occurs towards the bottom of the document. This did solve that > problem, and now I'm back to the segmentation fault error that I was > hoping fox16 would fix. Right, the FXRuby installation process doesn't attempt to automatically "fix" your ld.so.conf file settings that control how shared libraries are loaded. > Guess I'll need to try an new version of Ruby or Fox. Ruby first, I > think, since the new error message looks more like it was caught by > Ruby: > gui.rb:53: [BUG] Segmentation fault > ruby 1.8.4 (2005-12-24) [i486-linux] Have you filed a bug report about this yet? I'm not remembering this one and I don't (think) I see it in the list at: http://rubyforge.org/tracker/?atid=1223&group_id=300&func=browse If you're pretty sure it's some kind of FXRuby bug, please do go ahead and file a bug report for it. Thanks, Lyle From AEtzold at gmx.de Tue Jun 6 03:49:56 2006 From: AEtzold at gmx.de (Axel Etzold) Date: Tue, 06 Jun 2006 09:49:56 +0200 Subject: [fxruby-users] setCurrent switcher index out of bounds problem In-Reply-To: <9d835192c321a7af5c362828d11d30f7@knology.net> References: <> <20060605185528.9896.qmail@webmail2.knology.net> <4484BABF.5020303@earthlink.net> <9d835192c321a7af5c362828d11d30f7@knology.net> Message-ID: <20060606074956.265430@gmx.net> I'm trying to develop a GUI that combines features of the foursplit.rb and shutter.rb examples. So there is a bar of ShutterButtons to the left, and a set of four FX4Splitter elements to the right of the screen. Thanks to expert help from Lyle, it's now possible to 'expand' any of these elements to full size of the right pane. Now, I need to add the possibility to switch between different layers of the right pane, just like in the shutter.rb application, where you press one of the ShutterButtons on the left to have that behaviour. In my code, I set a variable @shutter.current =0, etc.., like this ... big_splitter = FXSplitter.new(self, (LAYOUT_SIDE_TOP|LAYOUT_FILL_X| LAYOUT_FILL_Y|SPLITTER_TRACKING)) ... @shutter = FXShutter.new(big_splitter, nil, 0, FRAME_SUNKEN|LAYOUT_FILL_X|LAYOUT_FILL_Y, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) ... @switcher = FXSwitcher.new(big_splitter, FRAME_SUNKEN|LAYOUT_FILL_X|LAYOUT_FILL_Y, 0, 0, 0, 0, 0, 0, 0, 0) splitter = FX4Splitter.new(@switcher, LAYOUT_SIDE_TOP|LAYOUT_FILL_X|LAYOUT_FILL_Y|FOURSPLITTER_TRACKING) shutterItem = ShutterItem.new(@shutter, "Files, data, and pictures", nil, LAYOUT_FILL_Y) ShutterButton.new(shutterItem.content, "Expand dirlist", big_folder).connect(SEL_COMMAND){ @switcher.current=0 splitter.handle(self,FXSEL(SEL_COMMAND, FX4Splitter::ID_EXPAND_TOPLEFT), nil)} ShutterButton.new(shutterItem.content, "Expand cell file editor", pens).connect(SEL_COMMAND){ @switcher.current=0 splitter.handle(self,FXSEL(SEL_COMMAND, FX4Splitter::ID_EXPAND_BOTTOMLEFT), nil)} ShutterButton.new(shutterItem.content, "Expand tuning curve plot", messypaint).connect(SEL_COMMAND){ @switcher.current=1 splitter.handle(self,FXSEL(SEL_COMMAND, FX4Splitter::ID_EXPAND_TOPRIGHT), nil)} ShutterButton.new(shutterItem.content, "Expand reconstruction plot", drawing).connect(SEL_COMMAND){ @switcher.current=2 splitter.handle(self,FXSEL(SEL_COMMAND, FX4Splitter::ID_EXPAND_BOTTOMRIGHT), nil)} ShutterButton.new(shutterItem.content, "Show all four", monitor).connect(SEL_COMMAND){ @switcher.current=3 splitter.handle(self,FXSEL(SEL_COMMAND, FX4Splitter::ID_EXPAND_ALL), nil)} Then, I get the error below. What is the problem here ? Thank you very much in advance, Axel Error message: c:/ruby/lib/ruby/gems/1.8/gems/fxruby-1.4.6-mswin32/lib/fox14/aliases.rb:4067:in `setCurrent': switcher item index out of bounds (IndexError) from c:/ruby/lib/ruby/gems/1.8/gems/fxruby-1.4.6-mswin32/lib/fox14/aliases.rb:4067:in `current=' from c:/axelhome/ngui/f17.rb:170:in `initialize' from c:/ruby/lib/ruby/gems/1.8/gems/fxruby-1.4.6-mswin32/lib/fox14/responder2.rb:57:in `onHandleMsg' from c:/axelhome/ngui/f17.rb:610:in `runme' from c:/axelhome/ngui/f17.rb:619 -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer From meinrad.recheis at gmail.com Tue Jun 6 05:15:40 2006 From: meinrad.recheis at gmail.com (Meinrad Recheis) Date: Tue, 6 Jun 2006 11:15:40 +0200 Subject: [fxruby-users] setCurrent switcher index out of bounds problem In-Reply-To: <20060606074956.265430@gmx.net> References: <20060605185528.9896.qmail@webmail2.knology.net> <4484BABF.5020303@earthlink.net> <9d835192c321a7af5c362828d11d30f7@knology.net> <20060606074956.265430@gmx.net> Message-ID: <43d756720606060215l5e1b7bf5sb918e34854baf3c9@mail.gmail.com> On 6/6/06, Axel Etzold wrote: > > I'm trying to develop a GUI that combines features of > the foursplit.rb and shutter.rb examples. > So there is a bar of ShutterButtons to the left, > and a set of four FX4Splitter elements to the right > of the screen. > Thanks to expert help from Lyle, it's now possible to > 'expand' any of these elements to full size of the > right pane. > Now, I need to add the possibility to switch between > different layers of the right pane, just like in the > shutter.rb application, where you press one of the > ShutterButtons on the left to have that behaviour. > > In my code, I set a variable @shutter.current =0, etc.., > like this > > ... > big_splitter = FXSplitter.new(self, (LAYOUT_SIDE_TOP|LAYOUT_FILL_X| > LAYOUT_FILL_Y|SPLITTER_TRACKING)) > ... > @shutter = FXShutter.new(big_splitter, nil, 0, > FRAME_SUNKEN|LAYOUT_FILL_X|LAYOUT_FILL_Y, > 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) > ... > @switcher = FXSwitcher.new(big_splitter, > FRAME_SUNKEN|LAYOUT_FILL_X|LAYOUT_FILL_Y, 0, 0, 0, 0, 0, 0, 0, 0) > splitter = FX4Splitter.new(@switcher, > LAYOUT_SIDE_TOP|LAYOUT_FILL_X|LAYOUT_FILL_Y|FOURSPLITTER_TRACKING) > shutterItem = ShutterItem.new(@shutter, "Files, data, and pictures", nil, LAYOUT_FILL_Y) > ShutterButton.new(shutterItem.content, "Expand dirlist", big_folder).connect(SEL_COMMAND){ > @switcher.current=0 > splitter.handle(self,FXSEL(SEL_COMMAND, FX4Splitter::ID_EXPAND_TOPLEFT), nil)} > ShutterButton.new(shutterItem.content, "Expand cell file editor", pens).connect(SEL_COMMAND){ > @switcher.current=0 > splitter.handle(self,FXSEL(SEL_COMMAND, FX4Splitter::ID_EXPAND_BOTTOMLEFT), nil)} > ShutterButton.new(shutterItem.content, "Expand tuning curve plot", messypaint).connect(SEL_COMMAND){ > @switcher.current=1 > splitter.handle(self,FXSEL(SEL_COMMAND, FX4Splitter::ID_EXPAND_TOPRIGHT), nil)} > ShutterButton.new(shutterItem.content, "Expand reconstruction plot", drawing).connect(SEL_COMMAND){ > @switcher.current=2 > splitter.handle(self,FXSEL(SEL_COMMAND, FX4Splitter::ID_EXPAND_BOTTOMRIGHT), nil)} > ShutterButton.new(shutterItem.content, "Show all four", monitor).connect(SEL_COMMAND){ > @switcher.current=3 > splitter.handle(self,FXSEL(SEL_COMMAND, FX4Splitter::ID_EXPAND_ALL), nil)} > > Then, I get the error below. > What is the problem here ? > > Thank you very much in advance, > > Axel > > > Error message: > > c:/ruby/lib/ruby/gems/1.8/gems/fxruby-1.4.6-mswin32/lib/fox14/aliases.rb:4067:in `setCurrent': switcher item index out of bounds (IndexError) > from c:/ruby/lib/ruby/gems/1.8/gems/fxruby-1.4.6-mswin32/lib/fox14/aliases.rb:4067:in `current=' > from c:/axelhome/ngui/f17.rb:170:in `initialize' > from c:/ruby/lib/ruby/gems/1.8/gems/fxruby-1.4.6-mswin32/lib/fox14/responder2.rb:57:in `onHandleMsg' > from c:/axelhome/ngui/f17.rb:610:in `runme' > from c:/axelhome/ngui/f17.rb:619 > it's normal to get some errors when writing a program. but a programmer must know how to deal with them. i give you some help so that you can help yourself in future: have a look at the error msg: it tells you exactly where in your source code the error happened. then add some lines that output the values to see what's going on. in your case you set the current item of the switcher to an index that does not exist. so just output the index with puts to see what is the error in your program. try that first. if you have more questions i will answer them. hope that helps, -- henon From lyle at knology.net Tue Jun 6 10:02:09 2006 From: lyle at knology.net (lyle at knology.net) Date: 6 Jun 2006 14:02:09 -0000 Subject: [fxruby-users] setCurrent switcher index out of bounds problem In-Reply-To: <> References: <> Message-ID: <20060606140209.14740.qmail@webmail4.knology.net> On Tue, 06 Jun 2006 09:49:56 +0200, Axel Etzold wrote : > Now, I need to add the possibility to switch between > different layers of the right pane, just like in the > shutter.rb application, where you press one of the > ShutterButtons on the left to have that behaviour. OK. > Then, I get the error below. > What is the problem here ? Looking at your code example, I don't see where you're actually adding any content to the switcher. It's empty, so when you tell it to switch to a different page (by setting @switcher.current to a new value) you're getting an error. From martin.portman at iptest.com Wed Jun 7 06:22:45 2006 From: martin.portman at iptest.com (Martin Portman) Date: Wed, 07 Jun 2006 11:22:45 +0100 Subject: [fxruby-users] Create fails strangely => Fixed resource limits in FXRuby/Fox? Message-ID: <4486A8F5.2020009@iptest.com> Hi, I've got a problem with my big and sprawling app. The behaviour appears to be related to how many widgets i have in use. (I'm creating 100's and using show/hide at appropriate times.) What happens when i create a new window is code like this: Control.new( owner , ... ) puts 1 control.create puts 2 will work fine, but at some point will display 1, but not 2, and the loop it was in will terminate there and then, but the app. will keep on running, destined to crash oddly later on. If I put all the creates after all the Control.new calls I get exactly the same behaviour. It is completely repeatable. The create call doesn't raise any exception. Can someone shed some light on what's going on, or tell me how I can find out more? I'm using Fox 1.4.2, Ruby 1.8.2. Thanks you, Martin. From lyle at knology.net Wed Jun 7 09:46:13 2006 From: lyle at knology.net (Lyle Johnson) Date: Wed, 7 Jun 2006 08:46:13 -0500 Subject: [fxruby-users] Create fails strangely => Fixed resource limits in FXRuby/Fox? In-Reply-To: <4486A8F5.2020009@iptest.com> References: <4486A8F5.2020009@iptest.com> Message-ID: <93d02f85b6286b6f11dc40b19913018c@knology.net> On Jun 7, 2006, at 5:22 AM, Martin Portman wrote: > I've got a problem with my big and sprawling app. The behaviour > appears to be related to how many widgets i have in use. (I'm creating > 100's and using show/hide at appropriate times.) > > What happens when i create a new window is code like this: > > Control.new( owner , ... ) > puts 1 > control.create > puts 2 > > will work fine, but at some point will display 1, but not 2, and > the loop it was in will terminate there and then, but the app. > will keep on running, destined to crash oddly later on. To address the subject line first: we don't have any fixed resource limits in FOX. The problem that you're describing, however, is almost certainly a GC-related bug in FXRuby. A possible workaround is to add the line: GC.disable somewhere near the beginning of your program's execution. That won't work around all GC-related bugs, but it often does the trick. And I stress that it is just a work-around; we need to identify the actual underlying bug. > If I put all the creates after all the Control.new calls I get > exactly the same behaviour. It is completely repeatable. Repeatable bugs are good things. ;) Can you send me a copy of the program and some instructions on how to reproduce the crash? Even better, if you hit on a way to reproduce the problem in a pared-down version of the application, that will reduce the number of distractions during debugging. From AEtzold at gmx.de Wed Jun 7 10:38:43 2006 From: AEtzold at gmx.de (Axel Etzold) Date: Wed, 07 Jun 2006 16:38:43 +0200 Subject: [fxruby-users] setCurrent switcher index out of bounds problem In-Reply-To: <20060606140209.14740.qmail@webmail4.knology.net> References: <> <20060606140209.14740.qmail@webmail4.knology.net> Message-ID: <20060607143843.99350@gmx.net> Dear Meinrad, Dear Lyle, thank you for your responses. Meinrad: my problem was not so much to identify an error line number, but to get some grasp of what constant actually does what in FXRuby. This generates a lot of silly questions to more experienced people, of course. Sorry for that. So I find that in any learning process, redundancy is a good thing. It may be very nice to have one example for each particular behaviour FXRuby offers, but if you're learning it, this may not be enough to disambiguate the silly things one thinks a program does from those that actually happen. I am just starting FXRuby now, but I use Ruby for command-line things for a longer period of time. It is the first language I feel I can talk about serious things to a computer - otherwise, in university maths studies, you may well acquire computer knowledge like other people learn Old Greek or Sanskrit: not much practical use in today's Greece or India ... So I'd suggest to you FXRuby experts to write a book like Hal Fulton's The Ruby Way - plenty of code for disambiguation ... . There really may be a need for it, as amazon doesn't show me any book entirely about FOX or FXRuby. (I know of Ruby Developer's guide, but here FXRuby is one of many topics.) Then again, I've got another question I couldn't find an answer to : In one field of an FX4Splitter, I want to display a PNG image. I know how to do this (basically) from the imageviewer.rb file. But the image I display needs to be generated first (by Gnuplot ... no problem to output PNG from there, except one: to set the size : I don't know what to tell Gnuplot there: - how do I see what the size of that @imageview_rec = FXImageView.new(@topFrame_rec, nil, nil, 0, LAYOUT_FILL_X|LAYOUT_FILL_Y) is ? I tried p @imageview_rec.getHeight p @imageview_rec.getWidth but that gives me 1 and 1. Thank you and sorry for my annoying questions, Best regards, Axel >?-------- Original-Nachricht -------- >?Datum: 6 Jun 2006 14:02:09 -0000 >?Von: "lyle at knology.net" >?An: fxruby-users at rubyforge.org >?Betreff: Re: [fxruby-users] setCurrent switcher index out of bounds problem >? > On Tue, 06 Jun 2006 09:49:56 +0200, Axel Etzold wrote : > > > Now, I need to add the possibility to switch between > > different layers of the right pane, just like in the > > shutter.rb application, where you press one of the > > ShutterButtons on the left to have that behaviour. > > OK. > > > Then, I get the error below. > > What is the problem here ? > > Looking at your code example, I don't see where you're actually adding any > content to the switcher. It's empty, so when you tell it to switch to a > different page (by setting @switcher.current to a new value) you're > getting > an error. > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer From lyle at knology.net Wed Jun 7 10:49:19 2006 From: lyle at knology.net (lyle at knology.net) Date: 7 Jun 2006 14:49:19 -0000 Subject: [fxruby-users] How to determine width and height of FXImageView? In-Reply-To: <> References: <> Message-ID: <20060607144919.9330.qmail@webmail4.knology.net> On Wed, 07 Jun 2006 16:38:43 +0200, "Axel Etzold" wrote : > In one field of an FX4Splitter, I want to display a PNG > image. > I know how to do this (basically) from the imageviewer.rb > file. > But the image I display needs to be generated first > (by Gnuplot ... no problem to output PNG from there, > except one: to set the size : I don't know what > to tell Gnuplot there: > - how do I see what the size of that > > @imageview_rec = FXImageView.new(@topFrame_rec, nil, nil, 0, > LAYOUT_FILL_X|LAYOUT_FILL_Y) > > is ? > I tried > p @imageview_rec.getHeight > p @imageview_rec.getWidth > > but that gives me 1 and 1. The FXImageView widget isn't going to have a known size until it's created, and I'm guessing you're calling getHeight() and getWidth() before that happens. From meinrad.recheis at gmail.com Wed Jun 7 16:19:01 2006 From: meinrad.recheis at gmail.com (Meinrad Recheis) Date: Wed, 7 Jun 2006 22:19:01 +0200 Subject: [fxruby-users] setCurrent switcher index out of bounds problem In-Reply-To: <20060607143843.99350@gmx.net> References: <20060606140209.14740.qmail@webmail4.knology.net> <20060607143843.99350@gmx.net> Message-ID: <43d756720606071319v4ce29acejeb510dbb839847e1@mail.gmail.com> On 6/7/06, Axel Etzold wrote: > Dear Meinrad, > Dear Lyle, > > thank you for your responses. > Meinrad: my problem was not so much to identify > an error line number, but to get some grasp > of what constant actually does what in FXRuby. > This generates a lot of silly questions to more > experienced people, of course. Sorry for that. i'm sorry because i did not understand your question right and therefore gave a answer that was not helpful. Anyway, I am not an expert in FXRuby. lyle is the real expert. i am just trying my best to give my experience to people who are new to FXRuby. [...] > > Then again, I've got another question I couldn't find > an answer to : > In one field of an FX4Splitter, I want to display a PNG > image. > I know how to do this (basically) from the imageviewer.rb > file. > But the image I display needs to be generated first > (by Gnuplot ... no problem to output PNG from there, > except one: to set the size : I don't know what > to tell Gnuplot there: > - how do I see what the size of that > > @imageview_rec = FXImageView.new(@topFrame_rec, nil, nil, 0, > LAYOUT_FILL_X|LAYOUT_FILL_Y) > > is ? > I tried > p @imageview_rec.getHeight > p @imageview_rec.getWidth > > but that gives me 1 and 1. i also often had the problem that a widget did not give back it's real size but 1x1 instead. maybe making a layoutcontainer (verticalframe or packer) around the imageview might help. then you can get the containers width and height. > > Thank you and sorry for my annoying questions, they are not at all annoying. ;) -- henon From AEtzold at gmx.de Fri Jun 9 14:58:00 2006 From: AEtzold at gmx.de (Axel Etzold) Date: Fri, 09 Jun 2006 20:58:00 +0200 Subject: [fxruby-users] Showing a window, closing it, showing it again - error In-Reply-To: <43d756720606071319v4ce29acejeb510dbb839847e1@mail.gmail.com> References: <20060606140209.14740.qmail@webmail4.knology.net> <20060607143843.99350@gmx.net> <43d756720606071319v4ce29acejeb510dbb839847e1@mail.gmail.com> Message-ID: <20060609185800.310010@gmx.net> Dear all, in a GUI, I have a help window with some text and a Menu toolbar button quite similar to that of textedit.rb: a help window of class FXDialog appears, displays a help text, and if you don't need it anymore, there is a button to close it. This works :) But when the user wants to see the help window again, and re-presses the menubar help button, the whole program exits saying: c:/axelhome/ngui/f30.rb:686:in `show': This FXDialogBox * already released (RuntimeError) from c:/axelhome/ngui/f30.rb:686:in `onCmdShowHelp' from c:/axelhome/ngui/f30.rb:893:in `runme' from c:/axelhome/ngui/f30.rb:902 This is the function I used : class MainWindow def initialize ... # Help window # init HelpWindow as in helpwindow.rb required by textedit.rb @helpwindow = HelpWindow.new(self) end # Show help window def onCmdShowHelp(sender, sel, ptr) @helpwindow.show(PLACEMENT_CURSOR) # line that generated the error. return 1 end end How can I make help re-accessible ? In textedit.rb this works, but I don't know why. Thank you, Best regards, Axel -- Echte DSL-Flatrate dauerhaft f?r 0,- Euro*! "Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl From meinrad.recheis at gmail.com Fri Jun 9 15:35:19 2006 From: meinrad.recheis at gmail.com (Meinrad Recheis) Date: Fri, 9 Jun 2006 21:35:19 +0200 Subject: [fxruby-users] Showing a window, closing it, showing it again - error In-Reply-To: <20060609185800.310010@gmx.net> References: <20060606140209.14740.qmail@webmail4.knology.net> <20060607143843.99350@gmx.net> <43d756720606071319v4ce29acejeb510dbb839847e1@mail.gmail.com> <20060609185800.310010@gmx.net> Message-ID: <43d756720606091235u4c10fcbbjeb73d91088e1e507@mail.gmail.com> On 6/9/06, Axel Etzold wrote: > Dear all, > > in a GUI, I have a help window with some text and a > Menu toolbar button quite similar to that of textedit.rb: > a help window of class FXDialog appears, displays a > help text, and if you don't need it anymore, there is > a button to close it. This works :) > But when the user wants to see the help window again, > and re-presses the menubar help button, the whole > program exits saying: > > > c:/axelhome/ngui/f30.rb:686:in `show': This FXDialogBox * already released (RuntimeError) > from c:/axelhome/ngui/f30.rb:686:in `onCmdShowHelp' > from c:/axelhome/ngui/f30.rb:893:in `runme' > from c:/axelhome/ngui/f30.rb:902 > > This is the function I used : > > class MainWindow > > def initialize > ... > # Help window > > # init HelpWindow as in helpwindow.rb required by textedit.rb > @helpwindow = HelpWindow.new(self) > end > # Show help window > def onCmdShowHelp(sender, sel, ptr) > @helpwindow.show(PLACEMENT_CURSOR) # line that generated the error. > return 1 > end > end > > How can I make help re-accessible ? In textedit.rb this works, > but I don't know why. > > Thank you, > > Best regards, > > Axel axel, there are two ways to do it: 1) not destroying the window just hiding it. 2) calling create everytime you want to show it again. hth, -- henon From alexjede at gmx.de Tue Jun 13 08:05:29 2006 From: alexjede at gmx.de (Alexander Jede) Date: Tue, 13 Jun 2006 14:05:29 +0200 Subject: [fxruby-users] getItemAt() in FXTreeList in the version 1.4 Message-ID: <448EAA09.4030805@gmx.de> Hi, I use the FXTreeList from FXRuby 1.4. Now I want go get an Item from the list and have only some indexinformation example first column and 4th row. I tried to use getItemAt(x,y) but without success. Can any one help my? An other question: I am a newbie in coding FXRuby. And the API is not as well as it could be. Is there an other source (book ...) where I can get a good description how to use FXRuby. Thanks Alexander Jede From gerard.menochet at wanadoo.fr Wed Jun 14 21:24:38 2006 From: gerard.menochet at wanadoo.fr (=?iso-8859-1?Q?G=E9rard_M=E9nochet?=) Date: Thu, 15 Jun 2006 03:24:38 +0200 Subject: [fxruby-users] getItemAt() in FXTreeList in the version 1.4 References: <448EAA09.4030805@gmx.de> Message-ID: <000501c6901a$783cae70$fd067b52@gnwpcpf2pugnix> You can go through the tree using "each" example: nodearray=[] atreeID.each do |t| nodearray< To: Sent: Tuesday, June 13, 2006 2:05 PM Subject: [fxruby-users] getItemAt() in FXTreeList in the version 1.4 > Hi, > I use the FXTreeList from FXRuby 1.4. > Now I want go get an Item from the list and have only some > indexinformation example first column and 4th row. > I tried to use getItemAt(x,y) but without success. > Can any one help my? > > An other question: > I am a newbie in coding FXRuby. And the API is not as well as it could > be. Is there an other source (book ...) where I can get a good > description how to use FXRuby. > > Thanks > Alexander Jede > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users > From AEtzold at gmx.de Sun Jun 18 17:01:01 2006 From: AEtzold at gmx.de (Axel Etzold) Date: Sun, 18 Jun 2006 23:01:01 +0200 Subject: [fxruby-users] "Checking" individual properties in a container as in foxGUIb ? In-Reply-To: <43d756720606091235u4c10fcbbjeb73d91088e1e507@mail.gmail.com> References: <20060606140209.14740.qmail@webmail4.knology.net> <20060607143843.99350@gmx.net> <43d756720606071319v4ce29acejeb510dbb839847e1@mail.gmail.com> <20060609185800.310010@gmx.net> <43d756720606091235u4c10fcbbjeb73d91088e1e507@mail.gmail.com> Message-ID: <20060618210101.13520@gmx.net> I would like to set up a container of properties, just as there is one in the "properties" section of the splitter window in foxGUIb. I managed to do this using a function much like the make_container and add_prop_manipulator methods of foxGUIb.rb, respectively its required files. Now, I need to be able to set some of those properties as checked or unchecked and to attach some methods to them. For instance, I have a two property fields for two- and three-dimensional data sets. Now, if the two-dimensional property is checked, I'd like to uncheck a property for z-axis name automatically. How could this be done ? Thank you very much, Best regards, Axel -- Echte DSL-Flatrate dauerhaft f?r 0,- Euro*! "Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl From alexjede at gmx.de Thu Jun 22 07:03:12 2006 From: alexjede at gmx.de (Alexander Jede) Date: Thu, 22 Jun 2006 13:03:12 +0200 Subject: [fxruby-users] Problems with FXIconList and Icons Message-ID: <449A78F0.3040607@gmx.de> Hi list, I am writing a small program where I want to display some objects in an IconList. For a better looking a choose an an .png and created a FXPNGIcon instance of it. When the program starts it creates an empty FXIconList and the Icons will initialized too. While using the program it should be possible to add some objects to the list. But if I run the program is crashes with this message: "FXDCWindow::drawIcon: illegal icon specified." I do not now what I had made wrong. Because if I insert some objects to the iconlist during the initialization (in de initialize method) it works great! The code looks like: def initialize() .... @iconNonterm = loadIcon("tb_buttonbx01.png") ... @nonterminallist = FXIconList.new(nonterminalgroupbox,nil,0,LAYOUT_FILL_X|LAYOUT_FILL_Y|ICONLIST_MINI_ICONS|ICONLIST_EXTENDEDSELECT|ICONLIST_SINGLESELECT|ICONLIST_ROWS|ICONLIST_DETAILED) @nonterminallist.connect(SEL_RIGHTBUTTONPRESS,method(:onRightNonterm)) ... end def onRightNonterm(sender,sel,ptr) if !ptr.moved menu = FXMenuPane.new(sender) FXMenuCommand.new(menu,"Neu",nil,sender).connect(SEL_COMMAND, method(:onAddNonterm)) newI = FXIconItem.new("Bla", at iconNonterm, at iconNonterm) @nonterminallist.appendItem(newI) ... end Thanks a lot Alexander Jede From jeroen at fox-toolkit.org Thu Jun 22 09:24:10 2006 From: jeroen at fox-toolkit.org (Jeroen van der Zijp) Date: Thu, 22 Jun 2006 08:24:10 -0500 Subject: [fxruby-users] Problems with FXIconList and Icons In-Reply-To: <449A78F0.3040607@gmx.de> References: <449A78F0.3040607@gmx.de> Message-ID: <200606220824.10921.jeroen@fox-toolkit.org> On Thursday 22 June 2006 06:03, Alexander Jede wrote: > Hi list, > I am writing a small program where I want to display some objects in an > IconList. For a better looking a choose an an .png and created a > FXPNGIcon instance of it. > When the program starts it creates an empty FXIconList and the Icons > will initialized too. > While using the program it should be possible to add some objects to the > list. > But if I run the program is crashes with this message: > > "FXDCWindow::drawIcon: illegal icon specified." > > I do not now what I had made wrong. > Because if I insert some objects to the iconlist during the > initialization (in de initialize method) it works great! > > > The code looks like: > def initialize() > .... > @iconNonterm = loadIcon("tb_buttonbx01.png") > ... > @nonterminallist = > FXIconList.new(nonterminalgroupbox,nil,0,LAYOUT_FILL_X|LAYOUT_FILL_Y|ICONLIST_MINI_ICONS|ICONLIST_EXTENDEDSELECT|ICONLIST_SINGLESELECT|ICONLIST_ROWS|ICONLIST_DETAILED) > @nonterminallist.connect(SEL_RIGHTBUTTONPRESS,method(:onRightNonterm)) > ... > end > def onRightNonterm(sender,sel,ptr) > if !ptr.moved > menu = FXMenuPane.new(sender) > FXMenuCommand.new(menu,"Neu",nil,sender).connect(SEL_COMMAND, > method(:onAddNonterm)) > newI = FXIconItem.new("Bla", at iconNonterm, at iconNonterm) > @nonterminallist.appendItem(newI) > ... > end > > Thanks a lot > Alexander Jede Its in the FAQ: http://www.fox-toolkit.org/faq.html#ILLEGALICON. - Jeroen -- +----------------------------------------------------------------------------+ | Copyright (C) 23:30 03/30/2006 Jeroen van der Zijp. All Rights Reserved. | +----------------------------------------------------------------------------+ From alexjede at gmx.de Thu Jun 22 10:04:21 2006 From: alexjede at gmx.de (Alexander Jede) Date: Thu, 22 Jun 2006 16:04:21 +0200 Subject: [fxruby-users] [Solved] Problems with FXIconList and Icons In-Reply-To: <449A78F0.3040607@gmx.de> References: <449A78F0.3040607@gmx.de> Message-ID: <449AA365.80703@gmx.de> With some help I found the problem at: http://www.fox-toolkit.org/faq.html#ILLEGALICON Alexander Jede From fxrbu1 at gi2.herzkes.de Fri Jun 23 09:15:12 2006 From: fxrbu1 at gi2.herzkes.de (Tobias Herzke) Date: Fri, 23 Jun 2006 15:15:12 +0200 Subject: [fxruby-users] Creating widgets -- automatigically? In-Reply-To: <200606220824.10921.jeroen@fox-toolkit.org> References: <449A78F0.3040607@gmx.de> <200606220824.10921.jeroen@fox-toolkit.org> Message-ID: <449BE960.1060909@gi2.herzkes.de> Jeroen van der Zijp wrote: >>"FXDCWindow::drawIcon: illegal icon specified." > Its in the FAQ: http://www.fox-toolkit.org/faq.html#ILLEGALICON. Thats a good explanation, thanks for the pointer. I would not have thought of the subclassing problem. How about automatic creation? Methods that need "created" widgets could check if their parameters are already created, and if they are not, call create on them. Fox C++ library might not be the right place to do this. After all, you'd expect C++ interfaces to have (and enforce) very strict rules. I believe it would fit more into the FXRuby layer, and would probably be very easy to achieve with a nice metaprogramming hack. What do you think? From AEtzold at gmx.de Fri Jun 30 10:40:34 2006 From: AEtzold at gmx.de (Axel Etzold) Date: Fri, 30 Jun 2006 16:40:34 +0200 Subject: [fxruby-users] setting the background color of a combobox ? In-Reply-To: <449BE960.1060909@gi2.herzkes.de> References: <449A78F0.3040607@gmx.de> <200606220824.10921.jeroen@fox-toolkit.org> <449BE960.1060909@gi2.herzkes.de> Message-ID: <20060630144034.177540@gmx.net> How do you set the bakcground color of a combobox ? I have a Combobox, which should have a white background color, yet it somewhat strangely inherits the gray color of the frame it sits in. I have tried to correct this by setting p = $settingsFrame p.recursive{|w| # w.baseColor=STD_BACK_COLOR next if w.kind_of? TextField next if w.backColor==HEADER_COLOR if /ComboBox/.match(w.type.to_s) w.baseColor=WHITE_BACK_COLOR w.backColor=WHITE_BACK_COLOR else w.backColor=STD_BACK_COLOR end } for WHITE_BACK_COLOR=FXRGB(255,255,255), and STD_BACK_COLR=FXRGB(128,128,128) but this changes the background color from gray to white only if I click on the combobox to show a dropdown of them. Then , everything becomes white, but after that, it turns to gray again. Thank you for your help, Axel -- "Feel free" ? 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail