From lyle at knology.net Thu Dec 1 07:52:40 2005 From: lyle at knology.net (Lyle Johnson) Date: Thu, 1 Dec 2005 06:52:40 -0600 Subject: [fxruby-users] Can't add text to FXCanvas In-Reply-To: <20051201035949.48354.qmail@web51609.mail.yahoo.com> References: <20051201035949.48354.qmail@web51609.mail.yahoo.com> Message-ID: On Nov 30, 2005, at 9:59 PM, wrote: > I have a ruby program that uses a FXCanvas, and I have attached a > FXDCWindow > to control it. It lets me draw lines, rectangles and ellipses, but not > text. > If I attempt to draw text, I get the following error... You need to call create() on the font object before you can use it. I recommend adding this in your PlotterWindow#create method, i.e. def create super show(PLACEMENT_SCREEN) @font.create end Please see the FAQ (at http://www.fox-toolkit.com/faq.html#ILLEGALICON) for more information on this. Hope this helps, Lyle From francois.pr at videotron.ca Fri Dec 2 14:58:29 2005 From: francois.pr at videotron.ca (=?ISO-8859-1?Q?Fran=E7oys?= Proulx) Date: Fri, 02 Dec 2005 14:58:29 -0500 Subject: [fxruby-users] Looking for demo Message-ID: <1133553510.8576.16.camel@linux.site> I'm currently working on a site for Ruby et FxRuby user in french. If any of you have some small app that could be use as exemple, it would help. The examples coming with with FXRuby are very good, but don't cover every widgets. If have some snippet of code to fill the blank, it would be greatly appreciated. my email address is: francoys.pr at videotron.ca sorry for my english ;) From scott at butlerpress.com Fri Dec 2 23:11:29 2005 From: scott at butlerpress.com (Scott Willson) Date: Fri, 2 Dec 2005 20:11:29 -0800 Subject: [fxruby-users] Installing RubyFX on MacOS X 10.4.3 In-Reply-To: <601F37E6-4A99-49C3-BE2F-0A64B9926EDC@butlerpress.com> References: <438134A8.9040001@auckland.ac.nz> <01ecff48ca7388e3fd1f138f5e59b610@knology.net> <601F37E6-4A99-49C3-BE2F-0A64B9926EDC@butlerpress.com> Message-ID: Thought I'd follow-up on my earlier post. While it is possible to compile libtiff, libjpeg, etc... on OS X without Fink or Darwin Ports, I wouldn't recommend it unless you enjoy setting compiler flags and modifying library search paths. It's not hard if you know what you're doing, but most people should use Fink or Darwin Ports for the dependent libs. I gave up once I hit problems with FXScintilla and XFT, and just used Fink for those. Hope that helps someone, Scott On Nov 21, 2005, at 7:23 AM, Scott Willson wrote: > I would bet that if OS X users download and compile the "Image > Formats" libs on the Fox Download page first, we would be able to > compile and run FXRuby, but I haven't put that to the test. From vjoel at path.berkeley.edu Sat Dec 3 01:37:12 2005 From: vjoel at path.berkeley.edu (Joel VanderWerf) Date: Fri, 02 Dec 2005 22:37:12 -0800 Subject: [fxruby-users] Looking for demo In-Reply-To: <1133553510.8576.16.camel@linux.site> References: <1133553510.8576.16.camel@linux.site> Message-ID: <43913D18.9090203@path.berkeley.edu> Fran?oys Proulx wrote: > I'm currently working on a site for Ruby et FxRuby user in french. If > any of you have some small app that could be use as exemple, it would > help. The examples coming with with FXRuby are very good, but don't > cover every widgets. If have some snippet of code to fill the blank, it > would be greatly appreciated. > > my email address is: francoys.pr at videotron.ca What kinds of widgets would you like to see examples of? If you're looking for a large project based on FXRuby using many widgets in different ways, maybe the FreeRIDE project would be interesting. http://freeride.rubyforge.org/wiki/wiki.pl -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407 From r.fulton at auckland.ac.nz Sun Dec 4 15:18:30 2005 From: r.fulton at auckland.ac.nz (Russell Fulton) Date: Mon, 05 Dec 2005 09:18:30 +1300 Subject: [fxruby-users] Installing RubyFX on MacOS X 10.4.3 In-Reply-To: References: <438134A8.9040001@auckland.ac.nz> <01ecff48ca7388e3fd1f138f5e59b610@knology.net> <601F37E6-4A99-49C3-BE2F-0A64B9926EDC@butlerpress.com> Message-ID: <43934F16.2050806@auckland.ac.nz> Scott Willson wrote: > Thought I'd follow-up on my earlier post. While it is possible to > compile libtiff, libjpeg, etc... on OS X without Fink or Darwin > Ports, I wouldn't recommend it unless you enjoy setting compiler > flags and modifying library search paths. It's not hard if you know > what you're doing, but most people should use Fink or Darwin Ports > for the dependent libs. > I have not looked at the darwin ports (I must at some stage) but fink does not have development version of the graphics libraries (i.e. packages that include the .h files as well as the libraries) so that when you come to build fox it builds without these libraries which in turn causes the build of foxxx.bundle to fail. That's why I had to reinstall the libraries from scratch after removing them from fink. Hmmm... just visited the Darwin Ports site and, so far as I can tell with out actually downloading and examining the packages they do not contain the include files. I base this conclusion on the fact that some of the packages are classed as graphics-devel and others (including our friends are just graphics). I'd be delighted to be proved wrong. BTW as far as I can remember all three of the libraries compiled without any more configuration than ./configure and make. I let them install in /usr/local/ and fox found them there without problems (it defines -L/sw/lib & -L/usr/local/lib). Russell. From scott at butlerpress.com Sun Dec 4 17:27:13 2005 From: scott at butlerpress.com (Scott Willson) Date: Sun, 4 Dec 2005 14:27:13 -0800 Subject: [fxruby-users] Installing RubyFX on MacOS X 10.4.3 In-Reply-To: <43934F16.2050806@auckland.ac.nz> References: <438134A8.9040001@auckland.ac.nz> <01ecff48ca7388e3fd1f138f5e59b610@knology.net> <601F37E6-4A99-49C3-BE2F-0A64B9926EDC@butlerpress.com> <43934F16.2050806@auckland.ac.nz> Message-ID: <368F1BBA-D273-4491-ACE6-585537C5928C@butlerpress.com> On Dec 4, 2005, at 12:18 PM, Russell Fulton wrote: > > > Scott Willson wrote: >> Thought I'd follow-up on my earlier post. While it is possible to >> compile libtiff, libjpeg, etc... on OS X without Fink or Darwin >> Ports, I wouldn't recommend it unless you enjoy setting compiler >> flags and modifying library search paths. It's not hard if you know >> what you're doing, but most people should use Fink or Darwin Ports >> for the dependent libs. >> > I have not looked at the darwin ports (I must at some stage) but fink > does not have development version of the graphics libraries (i.e. > packages that include the .h files as well as the libraries) so that > when you come to build fox it builds without these libraries which in > turn causes the build of foxxx.bundle to fail. > > That's why I had to reinstall the libraries from scratch after > removing > them from fink. > > Hmmm... just visited the Darwin Ports site and, so far as I can tell > with out actually downloading and examining the packages they do not > contain the include files. I base this conclusion on the fact that > some > of the packages are classed as graphics-devel and others (including > our > friends are just graphics). > > I'd be delighted to be proved wrong. > > BTW as far as I can remember all three of the libraries compiled > without > any more configuration than ./configure and make. I let them > install in > /usr/local/ and fox found them there without problems (it defines > -L/sw/lib & -L/usr/local/lib). > > Russell. > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users Yeah, hmmm. It's hard to be definitive with the number of things that can vary across installs, unless you take the time do a clean install and record your steps. I can say that I have FXRuby on an old PowerBook that has Tiger + dev tools + Fink and not much else, and I've got this in /sw/include: bzlib.h curses.h cursesapp.h cursesf.h cursesm.h cursesp.h cursesw.h cursslk.h eti.h etip.h form.h iconv.h jconfig.h jerror.h jmorecfg.h jpeglib.h libcharset.h libintl.h libpng -> libpng12 libpng12 localcharset.h menu.h ncurses.h -> curses.h ncurses_dll.h panel.h png.h -> libpng12/png.h pngconf.h -> libpng12/pngconf.h term.h termcap.h tiff.h tiffconf.h tiffio.h tiffvers.h unctrl.h So I'd wager that Fink does install the header files. I have "use unstable" set, and I installed the libjpeg, libjpeg-bin, and libjpeg- shlibs packages. I'm not as sure about Darwin Ports, as I used that on a much "messier" PowerBook, but I've got libjpg.h, libpng.h, etc. in /opt/ local/include/ Hope those are helpful data points, Scott From r.fulton at auckland.ac.nz Sun Dec 4 17:45:18 2005 From: r.fulton at auckland.ac.nz (Russell Fulton) Date: Mon, 05 Dec 2005 11:45:18 +1300 Subject: [fxruby-users] Installing RubyFX on MacOS X 10.4.3 In-Reply-To: <368F1BBA-D273-4491-ACE6-585537C5928C@butlerpress.com> References: <438134A8.9040001@auckland.ac.nz> <01ecff48ca7388e3fd1f138f5e59b610@knology.net> <601F37E6-4A99-49C3-BE2F-0A64B9926EDC@butlerpress.com> <43934F16.2050806@auckland.ac.nz> <368F1BBA-D273-4491-ACE6-585537C5928C@butlerpress.com> Message-ID: <4393717E.9010508@auckland.ac.nz> > > Yeah, hmmm. It's hard to be definitive with the number of things that > can vary across installs, unless you take the time do a clean install > and record your steps. Agreed! that is one thing thing I really like about linux. I can grab any old hardware (or a VM) do a nice clean install and then start from a known position. With MacOS it is just about impossible. Russell From bjorn.bergqvist at gmail.com Wed Dec 7 07:50:47 2005 From: bjorn.bergqvist at gmail.com (=?ISO-8859-1?Q?Bj=F6rn_Bergqvist?=) Date: Wed, 7 Dec 2005 13:50:47 +0100 Subject: [fxruby-users] OpenGL selection Message-ID: <44936e730512070450s7d7e4ec6hbbaba98571b38262@mail.gmail.com> Hello I would like to highlight a FXGLLine when it gets selected/deselected. How do I achieve that? (maybe there is som built in support for this FXGLObject::SEL_HIGHTLIGHT??) Regards Bjorn Bergqvist From riccardo at fisica.uniud.it Wed Dec 7 08:36:31 2005 From: riccardo at fisica.uniud.it (Riccardo Giannitrapani) Date: Wed, 07 Dec 2005 14:36:31 +0100 Subject: [fxruby-users] OpenGL selection In-Reply-To: <44936e730512070450s7d7e4ec6hbbaba98571b38262@mail.gmail.com> References: <44936e730512070450s7d7e4ec6hbbaba98571b38262@mail.gmail.com> Message-ID: Hi as far as I know you need to use the standard OpenGL selection mode to be able to "pick" objects in a GL canvas (maybe I'm wrong and FOX provide some standard method) .. I can suggest you this tutorial http://www.lighthouse3d.com/opengl/picking/ that is really simple, clear and very well done (imho). Hope it can be useful See you, Riccardo :) On Wed, 07 Dec 2005 13:50:47 +0100, Bj?rn Bergqvist wrote: > Hello > I would like to highlight a FXGLLine when it gets selected/deselected. > How do I achieve that? (maybe there is som built in support for this > FXGLObject::SEL_HIGHTLIGHT??) > > Regards > Bjorn Bergqvist > > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users -- Riccardo Giannitrapani I.N.F.N - Sezione di Trieste and Dipartimento di Fisica Universita` di Udine - Via delle Scienze, 206 Udine (Italy) Room L1-14-BE Tel (Office): +39-0432-558209 Home Page: http://www.fisica.uniud.it/~riccardo ICQ# 86590904 ---- There are only 10 kinds of people in this world: those who understand binary and those who don't. (Anonymous) From bjorn.bergqvist at gmail.com Fri Dec 9 05:31:31 2005 From: bjorn.bergqvist at gmail.com (=?ISO-8859-1?Q?Bj=F6rn_Bergqvist?=) Date: Fri, 9 Dec 2005 11:31:31 +0100 Subject: [fxruby-users] shift key Message-ID: <44936e730512090231g2e57d00do718869ea841895f8@mail.gmail.com> Hello, I want to select multiple objects when I press the shift-button. Tried to do it with: hotKey = fxparseAccel("Shift") accelTable.addAccel(hotKey, doc, FXSEL(SEL_COMMAND, :myfunc)) def myfunc(sender, sel, ptr) do something end It doesn't work. Any suggestions? Another approach? Regards Bjorn Bergqvist From jeroen at fox-toolkit.org Fri Dec 9 08:48:35 2005 From: jeroen at fox-toolkit.org (Jeroen van der Zijp) Date: Fri, 9 Dec 2005 07:48:35 -0600 Subject: [fxruby-users] shift key In-Reply-To: <44936e730512090231g2e57d00do718869ea841895f8@mail.gmail.com> References: <44936e730512090231g2e57d00do718869ea841895f8@mail.gmail.com> Message-ID: <200512090748.35468.jeroen@fox-toolkit.org> On Friday 09 December 2005 04:31 am, Bj?rn Bergqvist wrote: > Hello, > I want to select multiple objects when I press the shift-button. > Tried to do it with: > > hotKey = fxparseAccel("Shift") > accelTable.addAccel(hotKey, doc, FXSEL(SEL_COMMAND, :myfunc)) Shift, Alt, and Control are modifier keys. They're usually not used by themselves. More likely, you want to just trap the left mouse button and determine between click or shift-click by looking at event.state which contains the modifier mask. - Jeroen From shevegen at linuxmail.org Fri Dec 9 18:48:26 2005 From: shevegen at linuxmail.org (Roebe XXX) Date: Sat, 10 Dec 2005 00:48:26 +0100 Subject: [fxruby-users] Two small Suggestions about FXRuby Tutorial Message-ID: <20051209234826.6E8CB43840@ws5-1.us4.outblaze.com> Hi, a) add CSS Padding to it, most importantly to the left, like padding-left:0.65em I reckon its a frame, not sure how to do this in a tag. b) More importantly, maybe visitors/users can post helpful comments about a section on http://www.fxruby.org/doc/book.html , and this section gets included at the bottom, very much like php does it on their site (user comments). Taken that it can prevent spammers and the like, it would be a good way to solve something, as the users could share their knowledge. -- _______________________________________________ Check out the latest SMS services @ http://www.linuxmail.org This allows you to send and receive SMS through your mailbox. Powered by Outblaze From james.stallings at gmail.com Fri Dec 9 19:11:54 2005 From: james.stallings at gmail.com (James Stallings II) Date: Fri, 9 Dec 2005 18:11:54 -0600 Subject: [fxruby-users] Two small Suggestions about FXRuby Tutorial In-Reply-To: <20051209234826.6E8CB43840@ws5-1.us4.outblaze.com> References: <20051209234826.6E8CB43840@ws5-1.us4.outblaze.com> Message-ID: <170fa1780512091611g6c7c7704y1b651dc56ae86193@mail.gmail.com> It would also be very good in my estimation if there were a do-little reference application that demonstrated all the containers, layout methods and general widgets. There's probably something to this effect out there somewhere... ...but I haven't stumbled upon it if so. Just a lurker's .02c... Cheers, Twitch On 12/9/05, Roebe XXX wrote: > Hi, > > a) add CSS Padding to it, most importantly to the left, like > padding-left:0.65em > I reckon its a frame, not sure how to do this in a > tag. > > b) More importantly, maybe visitors/users can post helpful comments > about a section on > http://www.fxruby.org/doc/book.html > , and this section gets included at the bottom, > very much like php does it on their site (user comments). > Taken that it can prevent spammers and the like, it would be > a good way to solve something, as the users could share their > knowledge. > > > -- > _______________________________________________ > Check out the latest SMS services @ http://www.linuxmail.org > This allows you to send and receive SMS through your mailbox. > > Powered by Outblaze > > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users > -- =================================== Woulds't thou so blame the fragrant blos'ms wilting as never to've had her bloom? From boxofsoxx-goognews at yahoo.com Mon Dec 12 19:21:42 2005 From: boxofsoxx-goognews at yahoo.com (boxofsoxx-goognews@yahoo.com) Date: Mon, 12 Dec 2005 16:21:42 -0800 (PST) Subject: [fxruby-users] wheel mouse Message-ID: <20051213002142.99270.qmail@web51603.mail.yahoo.com> Anyone know how to use the wheel mouse. I wanted to use it as a zoom in/out function. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/fxruby-users/attachments/20051212/f891b296/attachment.htm From bjorn.bergqvist at gmail.com Wed Dec 14 02:32:46 2005 From: bjorn.bergqvist at gmail.com (=?ISO-8859-1?Q?Bj=F6rn_Bergqvist?=) Date: Wed, 14 Dec 2005 08:32:46 +0100 Subject: [fxruby-users] OpenGL selection In-Reply-To: References: <44936e730512070450s7d7e4ec6hbbaba98571b38262@mail.gmail.com> Message-ID: <44936e730512132332v4a26acb0w7e2c169dd28e4eab@mail.gmail.com> Hi, Thank you for the answer. Still I think there should be some highlight feature. FXGLShape::onDNDDrop exist, why not a FXGLShape::onMouseClicked?? Bjorn Bergqvist On 12/7/05, Riccardo Giannitrapani wrote: > Hi > > as far as I know you need to use the standard OpenGL selection mode to be > able to "pick" objects in a GL canvas (maybe I'm wrong and FOX provide > some standard method) .. I can suggest you this tutorial > > http://www.lighthouse3d.com/opengl/picking/ > > that is really simple, clear and very well done (imho). Hope it can be > useful > > See you, Riccardo :) > > > On Wed, 07 Dec 2005 13:50:47 +0100, Bj?rn Bergqvist > wrote: > > > Hello > > I would like to highlight a FXGLLine when it gets selected/deselected. > > How do I achieve that? (maybe there is som built in support for this > > FXGLObject::SEL_HIGHTLIGHT??) > > > > Regards > > Bjorn Bergqvist > > > > _______________________________________________ > > fxruby-users mailing list > > fxruby-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/fxruby-users > > > > -- > Riccardo Giannitrapani > I.N.F.N - Sezione di Trieste and Dipartimento di Fisica > Universita` di Udine - Via delle Scienze, 206 Udine (Italy) > Room L1-14-BE Tel (Office): +39-0432-558209 > Home Page: http://www.fisica.uniud.it/~riccardo > ICQ# 86590904 > > ---- > There are only 10 kinds of people in this world: > those who understand binary and those who don't. > (Anonymous) > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users > From jeroen at fox-toolkit.org Wed Dec 14 08:50:14 2005 From: jeroen at fox-toolkit.org (Jeroen van der Zijp) Date: Wed, 14 Dec 2005 07:50:14 -0600 Subject: [fxruby-users] OpenGL selection In-Reply-To: <44936e730512132332v4a26acb0w7e2c169dd28e4eab@mail.gmail.com> References: <44936e730512070450s7d7e4ec6hbbaba98571b38262@mail.gmail.com> <44936e730512132332v4a26acb0w7e2c169dd28e4eab@mail.gmail.com> Message-ID: <200512140750.14689.jeroen@fox-toolkit.org> On Wednesday 14 December 2005 01:32 am, Bj?rn Bergqvist wrote: > Hi, > Thank you for the answer. > > Still I think there should be some highlight feature. > FXGLShape::onDNDDrop exist, why not a FXGLShape::onMouseClicked?? Stay tuned for Lumos. The Lumos library will be the more advanced 3D class collection for FOX. - Jeroen From jeroen at fox-toolkit.org Wed Dec 14 20:57:45 2005 From: jeroen at fox-toolkit.org (Jeroen van der Zijp) Date: Wed, 14 Dec 2005 19:57:45 -0600 Subject: [fxruby-users] OpenGL selection In-Reply-To: <44936e730512132332v4a26acb0w7e2c169dd28e4eab@mail.gmail.com> References: <44936e730512070450s7d7e4ec6hbbaba98571b38262@mail.gmail.com> <44936e730512132332v4a26acb0w7e2c169dd28e4eab@mail.gmail.com> Message-ID: <200512141957.45953.jeroen@fox-toolkit.org> On Wednesday 14 December 2005 01:32, Bj?rn Bergqvist wrote: > Hi, > Thank you for the answer. > > Still I think there should be some highlight feature. > FXGLShape::onDNDDrop exist, why not a FXGLShape::onMouseClicked?? Except for FXGLObject and FXGLGroup, the other classes are just examples; they are not intented to be useful in a real application. In a real application, you'd catch the SEL_SELECTED and SEL_DESELECTED messages from the FXGLViewer and use them to alter the appearance of the objects in some way. How you do this depends on the application. For example, you can draw a bounding box around the selected object to indicate that it's selected, or draw "drag-handles" at selected points. In other applications you may highlight an item in a treelist corresponding to the object hierarchy. No state information is present in FXGLObject itself, so there's little overhead [beyong the usual vtable pointer that is], in case your application manages massive amounts of point-objects, for example. - Jeroen -- +----------------------------------------------------------------------------+ | Copyright (C) 19:50 12/14/2005 Jeroen van der Zijp. All Rights Reserved. | +----------------------------------------------------------------------------+ From riccardo at fisica.uniud.it Thu Dec 15 02:59:51 2005 From: riccardo at fisica.uniud.it (Riccardo Giannitrapani) Date: Thu, 15 Dec 2005 08:59:51 +0100 Subject: [fxruby-users] OpenGL selection In-Reply-To: <200512140750.14689.jeroen@fox-toolkit.org> References: <44936e730512070450s7d7e4ec6hbbaba98571b38262@mail.gmail.com> <44936e730512132332v4a26acb0w7e2c169dd28e4eab@mail.gmail.com> <200512140750.14689.jeroen@fox-toolkit.org> Message-ID: Hi Jeroen I'm really interested in this topic (using FOX and OpenGL in the last few years) .. can you point me to some details on this Lumos library? I'm really curious .. Thanks (for this and for FOX), Riccardo :) On Wed, 14 Dec 2005 14:50:14 +0100, Jeroen van der Zijp wrote: > On Wednesday 14 December 2005 01:32 am, Bj?rn Bergqvist wrote: >> Hi, >> Thank you for the answer. >> >> Still I think there should be some highlight feature. >> FXGLShape::onDNDDrop exist, why not a FXGLShape::onMouseClicked?? > > Stay tuned for Lumos. The Lumos library will be the more advanced 3D > class > collection for FOX. > > > - Jeroen > > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users -- Riccardo Giannitrapani I.N.F.N - Sezione di Trieste and Dipartimento di Fisica Universita` di Udine - Via delle Scienze, 206 Udine (Italy) Room L1-14-BE Tel (Office): +39-0432-558209 Home Page: http://www.fisica.uniud.it/~riccardo ICQ# 86590904 ---- There are only 10 kinds of people in this world: those who understand binary and those who don't. (Anonymous) From lyle at knology.net Sun Dec 18 10:18:43 2005 From: lyle at knology.net (Lyle Johnson) Date: Sun, 18 Dec 2005 09:18:43 -0600 Subject: [fxruby-users] ext/fox14/extconf.rb In-Reply-To: <200512181423.jBIENN5F017663@rubyforge.org> References: <200512181423.jBIENN5F017663@rubyforge.org> Message-ID: <39a71d673e04538c496a1ab35a99780e@knology.net> On Dec 18, 2005, at 8:23 AM, Thierry Moisan wrote: > hi, I'm trying to package FXruby for Ubuntu (and by the way for > debian) and I get a problem with the "ruby install.rb config" stage. > Here's what I get as output : > thierry at modemcable050:~/dev/build/FXRuby-1.4.2$ ruby install.rb config > install.rb: entering config phase... > ---> lib > ---> lib/fox14 > <--- lib/fox14 > <--- lib > ---> ext > ---> ext/fox14 > /usr/bin/ruby1.8 > /home/thierry/dev/build/FXRuby-1.4.2/ext/fox14/extconf.rb > /home/thierry/dev/build/FXRuby-1.4.2/ext/fox14/extconf.rb:4:in > `require': no such file to load -- mkmf (LoadError) > from > /home/thierry/dev/build/FXRuby-1.4.2/ext/fox14/extconf.rb:4 > config failed > 'system /usr/bin/ruby1.8 > /home/thierry/dev/build/FXRuby-1.4.2/ext/fox14/extconf.rb ' failed > Try 'ruby install.rb --help' for detailed usage. > > If you could explain me what's the problem and if it's my fault or a > problem in FXruby, I could finish packaging it for Ubuntu. The extconf.rb script is trying to require "mkmf", which is one of the standard Ruby library modules. The fact that it can't find it indicates that something is seriously wrong with your Ruby installation. I'm not at all familiar with Ubuntu Linux, but I googled for "ubuntu mkmf" and I found a blog post that indicates that you may be missing the ruby1.8-dev package. Is that possible? If so, try installing that package and trying again. Good luck, and thanks for making the effort to package this for Ubuntu! From r.fulton at auckland.ac.nz Sun Dec 18 19:00:08 2005 From: r.fulton at auckland.ac.nz (Russell Fulton) Date: Mon, 19 Dec 2005 13:00:08 +1300 Subject: [fxruby-users] Advice sort on using FXText widget Message-ID: <43A5F808.6050700@auckland.ac.nz> Hi Folk, well I'm now writing and app (to manage snort sensors and rulefiles ) and have am now trying to figure out which is the best widget for the job. Snort rule files have one rule per line, I want to display the rule file in a frame and allow the user to select individual rules by clicking on them. I may also want to select portions of a rule. Currently I'm using FXText but I find the FXEvent returns pixel (?) coordinates but all the FXText methods take a single 'pos' parameter which presumably is the index from the start of the buffer. Clearly there must be a straight forward way to may between the two but I can't figure it out. May be I'd be better off using some other widget but I can't see one. Cheers, Russell From vjoel at path.berkeley.edu Sun Dec 18 20:32:47 2005 From: vjoel at path.berkeley.edu (Joel VanderWerf) Date: Sun, 18 Dec 2005 17:32:47 -0800 Subject: [fxruby-users] Advice sort on using FXText widget In-Reply-To: <43A5F808.6050700@auckland.ac.nz> References: <43A5F808.6050700@auckland.ac.nz> Message-ID: <43A60DBF.1030709@path.berkeley.edu> Russell Fulton wrote: > Hi Folk, > well I'm now writing and app (to manage snort sensors and rulefiles ) > and have am now trying to figure out which is the best widget for the job. > > Snort rule files have one rule per line, I want to display the rule file > in a frame and allow the user to select individual rules by clicking on > them. I may also want to select portions of a rule. > > Currently I'm using FXText but I find the FXEvent returns pixel (?) > coordinates but all the FXText methods take a single 'pos' parameter > which presumably is the index from the start of the buffer. Clearly > there must be a straight forward way to may between the two but I can't > figure it out. > > May be I'd be better off using some other widget but I can't see one. What about an FXList, one entry per line of the file? That doesn't help with selecting "portions"... are these portions syntactic chunks or arbitrary substrings? If the former, maybe a tree list would work (following the parse tree). -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407 From r.fulton at auckland.ac.nz Sun Dec 18 21:36:35 2005 From: r.fulton at auckland.ac.nz (Russell Fulton) Date: Mon, 19 Dec 2005 15:36:35 +1300 Subject: [fxruby-users] Advice sort on using FXText widget In-Reply-To: <43A60DBF.1030709@path.berkeley.edu> References: <43A5F808.6050700@auckland.ac.nz> <43A60DBF.1030709@path.berkeley.edu> Message-ID: <43A61CB3.8090700@auckland.ac.nz> Thanks for your ideas Joel. Joel VanderWerf wrote: > >> >> May be I'd be better off using some other widget but I can't see one. > > What about an FXList, one entry per line of the file? I had thought about that and may give it a try it was not my first choice because of the inability to do selections within the rule. > > That doesn't help with selecting "portions"... are these portions > syntactic chunks or arbitrary substrings? If the former, maybe a tree > list would work (following the parse tree). mostly the former, I had *not* thought of parsing the rule and representing it as a tree. I'm using the tree widget in another panel to navigate the sensors and rule files. Russell. From lyle at knology.net Sun Dec 18 21:57:28 2005 From: lyle at knology.net (Lyle Johnson) Date: Sun, 18 Dec 2005 20:57:28 -0600 Subject: [fxruby-users] Advice sort on using FXText widget In-Reply-To: <43A5F808.6050700@auckland.ac.nz> References: <43A5F808.6050700@auckland.ac.nz> Message-ID: On Dec 18, 2005, at 6:00 PM, Russell Fulton wrote: > Currently I'm using FXText but I find the FXEvent returns pixel (?) > coordinates but all the FXText methods take a single 'pos' parameter > which presumably is the index from the start of the buffer. Clearly > there must be a straight forward way to may between the two but I can't > figure it out. Have you tried the getPosAt() method, which should return the text position for a given (x, y) location in the visible area of the text widget? From boxofsoxx-goognews at yahoo.com Wed Dec 21 23:53:34 2005 From: boxofsoxx-goognews at yahoo.com (boxofsoxx-goognews@yahoo.com) Date: Wed, 21 Dec 2005 20:53:34 -0800 (PST) Subject: [fxruby-users] FxTopWindow problem Message-ID: <20051222045335.32235.qmail@web51608.mail.yahoo.com> I have an fxRuby GUI app that I am having problems with. I want to bring up a help window from the main window when someone selects a help/help from the help menu. I have created a helpWindow that inherits from FXDialogBox. It has an FXMenuBar, FXStatusBar, and an FXtext which gets filled with help text from a file. When the help/help menu is selected from the main window, I make a new helpWindow, and call create on it. This all seems to work well, but I was unhappy with the look and feel of the FXDialog. I basically wanted something that looked like a real window, with minimize, restore, and close boxes in the upper right, and windowy ( if that's a word ) border. I tried using FXMainWindow, FXTopWindow, and FXWindow, but I am again faced with my arch nemesis of error messages: "This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. >Exit code: 3" I have gotten this is the past when I tried to use something that was not created yet, but I think I am creating everything this time. It is extremely frustrating that I can get the FXDialog, with identical code, to work just fine. Is there something special about FXTopWindow that requires some special considerations. I couldn't find any examples or mentions in the docs about using this. The description is of this function is a bit brief. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/fxruby-users/attachments/20051221/5231adfb/attachment-0001.htm From vjoel at path.berkeley.edu Thu Dec 22 09:49:35 2005 From: vjoel at path.berkeley.edu (Joel VanderWerf) Date: Thu, 22 Dec 2005 06:49:35 -0800 Subject: [fxruby-users] FxTopWindow problem In-Reply-To: <20051222045335.32235.qmail@web51608.mail.yahoo.com> References: <20051222045335.32235.qmail@web51608.mail.yahoo.com> Message-ID: <43AABCFF.8070709@path.berkeley.edu> boxofsoxx-goognews at yahoo.com wrote: > I have an fxRuby GUI app that I am having problems with. I want to > bring up a help window from the main window when someone selects a > help/help from the help menu. I have created a helpWindow that > inherits from FXDialogBox. It has an FXMenuBar, FXStatusBar, and an > FXtext which gets filled with help text from a file. When the > help/help menu is selected from the main window, I make a new > helpWindow, and call create on it. This all seems to work well, but I > was unhappy with the look and feel of the FXDialog. I basically > wanted something that looked like a real window, with minimize, > restore, and close boxes in the upper right, and windowy ( if that's It should be possible to get these window decorations by passing the right opts argument when you instantiate the dialog, something like FXDialogBox.new(owner, window_name, DECOR_ALL ^ DECOR_RESIZE) (In this case, resize is turned off, but you may not want that.) > a word ) border. I tried using FXMainWindow, FXTopWindow, and > FXWindow, but I am again faced with my arch nemesis of error > messages: "This application has requested the Runtime to terminate it > in an unusual way. Please contact the application's support team for > more information. FXMainWindow would be the one to use, but I've never tried having multiple main windows. I got used to using FXDialogs with the old fox versions, before that was possible. >> Exit code: 3" > > I have gotten this is the past when I tried to use something that was > not created yet, but I think I am creating everything this time. It > is extremely frustrating that I can get the FXDialog, with identical > code, to work just fine. > > Is there something special about FXTopWindow that requires some > special considerations. I couldn't find any examples or mentions in > the docs about using this. The description is of this function is a > bit brief. -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407 From kikic at magic-garden.de Sun Dec 25 15:58:00 2005 From: kikic at magic-garden.de (Zoarn Kikic) Date: Sun, 25 Dec 2005 21:58:00 +0100 Subject: [fxruby-users] ruby install.rb setup failed Message-ID: <43AF07D8.8050700@magic-garden.de> Hi! I can't run fxruby setup on FreeBSD 6 (amd64, 2x opteron) I had no problems with Fox ./configure --with-shape --enable-threadsafe --enable-cups \ --with-x --with-xft --with-xcursor --with-xrandr --with-xim \ --with-profiling --with-opengl && make && make install but I get errors when I try to setup fxruby: (config shows no errors) ruby install.rb config -- \ --with-fox-include=/home/admin/system/fox/fox-1.4.26/include \ --with-fox-lib=/home/admin/system/fox/fox-1.4.26/src/.libs when I run ruby install.rb setup, I get: ------------------------------------ In file included from include/FXRbCommon.h:90, from core_wrap.cpp:586: include/FXRuby.h: In function `VALUE to_ruby(long unsigned int)': include/FXRuby.h:197: error: redefinition of `VALUE to_ruby(long unsigned int)' include/FXRuby.h:193: error: `VALUE to_ruby(FX::FXulong)' previously defined here *** Error code 1 Stop in /home/admin/system/fxruby/FXRuby-1.4.3/ext/fox14. setup failed 'system make ' failed Try 'ruby install.rb --help' for detailed usage. ------------------------------------ any Ideas? thx.