From bjorn.bergqvist at gmail.com Thu Jul 1 10:49:35 2010 From: bjorn.bergqvist at gmail.com (=?ISO-8859-1?Q?Bj=F6rn_Bergqvist?=) Date: Thu, 1 Jul 2010 16:49:35 +0200 Subject: [fxruby-users] more functionality in FXGLViewer Message-ID: Hello, I've made a program called Discretizer. When I read stl files it is parsed with ruby and then opengl commands are also made in ruby. This seems to require a lot of computing resources. It would have been nice if a FXGLObject could be created with, for instance a stl filename. Then the whole reading of the file and opengl-commands would run in compiled c++ code I assume. Is it possible to do this? May I help? I would also be nice to read the OpenFOAM polyMesh in the same way :-) Did anyone understand the question? Bj?rn Bergqvist http://www.discretizer.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From ralphs at dos32.com Thu Jul 8 22:59:36 2010 From: ralphs at dos32.com (Ralph Shnelvar) Date: Thu, 8 Jul 2010 20:59:36 -0600 Subject: [fxruby-users] Installing FXRuby; error and solution Message-ID: <566102376.20100708205936@dos32.com> An HTML attachment was scrubbed... URL: From ralphs at dos32.com Fri Jul 9 00:46:05 2010 From: ralphs at dos32.com (Ralph Shnelvar) Date: Thu, 8 Jul 2010 22:46:05 -0600 Subject: [fxruby-users] Repository of sample FXRuby programs? Message-ID: <446862660.20100708224605@dos32.com> An HTML attachment was scrubbed... URL: From ralphs at dos32.com Fri Jul 9 09:11:44 2010 From: ralphs at dos32.com (Ralph Shnelvar) Date: Fri, 9 Jul 2010 07:11:44 -0600 Subject: [fxruby-users] Repository of sample FXRuby programs? In-Reply-To: <446862660.20100708224605@dos32.com> References: <446862660.20100708224605@dos32.com> Message-ID: <1866063739.20100709071144@dos32.com> An HTML attachment was scrubbed... URL: From tester.paul at gmail.com Fri Jul 9 11:57:56 2010 From: tester.paul at gmail.com (Paul Carvalho) Date: Fri, 9 Jul 2010 11:57:56 -0400 Subject: [fxruby-users] Repository of sample FXRuby programs? In-Reply-To: <446862660.20100708224605@dos32.com> References: <446862660.20100708224605@dos32.com> Message-ID: Did you check your hard drive? When you install ruby, there should be many fxruby examples included. I found them on my system at: C:\Ruby\lib\ruby\gems\1.8\gems\fxruby-1.6.16-x86-mswin32-60\examples Cheers! On 9 July 2010 00:46, Ralph Shnelvar wrote: > Is there a repository of sample FXRuby programs that is publicly > accessible? > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kb9agt at gmail.com Sun Jul 11 16:39:28 2010 From: kb9agt at gmail.com (Douglas Allen) Date: Sun, 11 Jul 2010 16:39:28 -0400 Subject: [fxruby-users] Repository of sample FXRuby programs? In-Reply-To: References: <446862660.20100708224605@dos32.com> Message-ID: Thanks Ralph, Now this brings up another question for me since I tested bounce.rb from a simply MEPIS live cd. I will have to install FOX16. Does anyone know if there is a debian release for it? I prefer to use a *.deb install as I am not so profishant at installing from source yet. On 7/9/10, Paul Carvalho wrote: > Did you check your hard drive? > > When you install ruby, there should be many fxruby examples included. I > found them on my system at: > > C:\Ruby\lib\ruby\gems\1.8\gems\fxruby-1.6.16-x86-mswin32-60\examples > > Cheers! > > > On 9 July 2010 00:46, Ralph Shnelvar wrote: > >> Is there a repository of sample FXRuby programs that is publicly >> accessible? >> > From yetanothergeek at gmail.com Sun Jul 11 16:59:44 2010 From: yetanothergeek at gmail.com (Jeff Pohlmeyer) Date: Sun, 11 Jul 2010 15:59:44 -0500 Subject: [fxruby-users] Repository of sample FXRuby programs? In-Reply-To: References: <446862660.20100708224605@dos32.com> Message-ID: On Jul 11, 2010, Douglas Allen wrote: > I will have to install FOX16. Does anyone > know if there is a debian release for it? http://packages.debian.org/squeeze/libfox-1.6-0 - Jeff From dglnz at yahoo.com Sun Jul 11 23:42:34 2010 From: dglnz at yahoo.com (dave L) Date: Sun, 11 Jul 2010 20:42:34 -0700 (PDT) Subject: [fxruby-users] Repository of sample FXRuby programs? In-Reply-To: Message-ID: <834264.39483.qm@web30004.mail.mud.yahoo.com> Justan aside on the topic of the Deb file. I wish to thank the Author as it has made the use of fox & foxGUIb much easier to use in Linux (I use Kubuntu 10.04 at present). Dave. --- On Mon, 12/7/10, Douglas Allen wrote: > From: Douglas Allen > Subject: Re: [fxruby-users] Repository of sample FXRuby programs? > To: fxruby-users at rubyforge.org > Received: Monday, 12 July, 2010, 8:39 AM > Thanks Ralph, > > Now this brings up another question for me since I tested > bounce.rb > from a simply MEPIS live cd. I will have to install FOX16. > Does anyone > know if there is a debian release for it? I prefer to use a > *.deb > install as I am not so profishant at installing from source > yet. > > On 7/9/10, Paul Carvalho > wrote: > > Did you check your hard drive? > > > > When you install ruby, there should be many fxruby > examples included.? I > > found them on my system at: > > > > > C:\Ruby\lib\ruby\gems\1.8\gems\fxruby-1.6.16-x86-mswin32-60\examples > > > > Cheers! > > > > > > On 9 July 2010 00:46, Ralph Shnelvar > wrote: > > > >>? Is there a repository of sample FXRuby > programs that is publicly > >> accessible? > >> > > > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users > From kb9agt at gmail.com Mon Jul 12 22:47:25 2010 From: kb9agt at gmail.com (Douglas Allen) Date: Mon, 12 Jul 2010 21:47:25 -0500 Subject: [fxruby-users] Repository of sample FXRuby programs? In-Reply-To: <834264.39483.qm@web30004.mail.mud.yahoo.com> References: <834264.39483.qm@web30004.mail.mud.yahoo.com> Message-ID: Thanks for that link Dave. Back to discussion of the fox samples, I noticed that bounce.rb has a few bugs or should I say is incomplete. My group has a discussion board about this: http://www.facebook.com/home.php?#!/group.php?gid=353519958592 Hope to see you all there. On 7/11/10, dave L wrote: > Justan aside on the topic of the Deb file. > > I wish to thank the Author as it has made the use of fox & foxGUIb much easier to use in Linux (I use Kubuntu 10.04 at present). > > Dave. > > --- On Mon, 12/7/10, Douglas Allen wrote: > > > From: Douglas Allen > > Subject: Re: [fxruby-users] Repository of sample FXRuby programs? > > To: fxruby-users at rubyforge.org > > Received: Monday, 12 July, 2010, 8:39 AM > > > Thanks Ralph, > > > > Now this brings up another question for me since I tested > > bounce.rb > > from a simply MEPIS live cd. I will have to install FOX16. > > Does anyone > > know if there is a debian release for it? I prefer to use a > > *.deb > > install as I am not so profishant at installing from source > > yet. > > > > On 7/9/10, Paul Carvalho > > wrote: > > > Did you check your hard drive? > > > > > > When you install ruby, there should be many fxruby > > examples included. I > > > found them on my system at: > > > > > > > > C:\Ruby\lib\ruby\gems\1.8\gems\fxruby-1.6.16-x86-mswin32-60\examples > > > > > > Cheers! > > > > > > > > > On 9 July 2010 00:46, Ralph Shnelvar > > wrote: > > > > > >> Is there a repository of sample FXRuby > > programs that is publicly > > >> accessible? > > >> > > > > > > _______________________________________________ > > 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 kb9agt at gmail.com Mon Jul 12 23:00:54 2010 From: kb9agt at gmail.com (Douglas Allen) Date: Mon, 12 Jul 2010 22:00:54 -0500 Subject: [fxruby-users] Repository of sample FXRuby programs? In-Reply-To: References: <446862660.20100708224605@dos32.com> Message-ID: Just a quick question Jeff, Is squeeze a stable release? If I look for it under lenny, what category might I find it? And thanks for that link Jeff. On 7/11/10, Jeff Pohlmeyer wrote: > On Jul 11, 2010, Douglas Allen wrote: > > > I will have to install FOX16. Does anyone > > know if there is a debian release for it? > > > http://packages.debian.org/squeeze/libfox-1.6-0 > > - Jeff > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users > From yetanothergeek at gmail.com Tue Jul 13 00:06:15 2010 From: yetanothergeek at gmail.com (Jeff Pohlmeyer) Date: Mon, 12 Jul 2010 23:06:15 -0500 Subject: [fxruby-users] Repository of sample FXRuby programs? In-Reply-To: References: <446862660.20100708224605@dos32.com> Message-ID: On Jul 12, 2010, Douglas Allen wrote: > Just a quick question Jeff, > Is squeeze a stable release? No idea. I'm really not a Debian user, just a Google user :-) > If I look for it under lenny, what category might I find it? http://packages.debian.org/lenny/libfox-1.6-0 > And thanks for that link Jeff. You're welcome, - Jeff From ralphs at dos32.com Tue Jul 13 10:59:28 2010 From: ralphs at dos32.com (Ralph Shnelvar) Date: Tue, 13 Jul 2010 08:59:28 -0600 Subject: [fxruby-users] FXTreeList & RAA Message-ID: <312200839.20100713085928@dos32.com> I am attempting to run ruby\lib\ruby\gems\1.8\gems\fxruby-1.6.12-mswin32\examples\raabrowser.rb But I am getting some sort of xml error. Tkis file is undocumented in the readme but I was hoping to (maybe) use it as the basis of my application. I am clueless what RAA means in this context. Wikipedia search finds * Ralph Appelbaum Associates * Recreation and Amusement Association, a system of brothels set up by the Japanese government for US occupation forces * Recreational Aviation Australia * Reductio ad absurdum * Renin-Angiotensin-Aldosterone system * Riksantikvarie?mbetet (National Heritage Board of Sweden) * Right atrial appendage * Royal Australian Artillery, a corps in the Australian Army * Royal Automobile Association * Ruby Application Archive * The Rural Alberta Advantage, a Canadian indie band * Rural Assistance Authority (New South Wales) but I'm pretty sure it is none of those. :-) So ... anyone know how to get raabrowser.rb to work and what it's supposed to do? From lyle at lylejohnson.name Tue Jul 13 11:07:59 2010 From: lyle at lylejohnson.name (Lyle Johnson) Date: Tue, 13 Jul 2010 10:07:59 -0500 Subject: [fxruby-users] FXTreeList & RAA In-Reply-To: <312200839.20100713085928@dos32.com> References: <312200839.20100713085928@dos32.com> Message-ID: On Tue, Jul 13, 2010 at 9:59 AM, Ralph Shnelvar wrote: > I am attempting to run > > ? ruby\lib\ruby\gems\1.8\gems\fxruby-1.6.12-mswin32\examples\raabrowser.rb > > But I am getting some sort of xml error. > > Tkis file is undocumented in the readme but I was hoping to (maybe) use it as the basis of my application. > > I am clueless what RAA means in this context. ? Wikipedia search finds... It's the Ruby Application Archive (http://raa.ruby-lang.org/). The RAA web site provides, or used to provide, a SOAP (http://en.wikipedia.org/wiki/SOAP) interface. The raabrowser.rb example program uses this SOAP interface to query the RAA for information about the packages therein, and then presents the results in an FXTreeList. Hope this helps, Lyle From ralphs at dos32.com Fri Jul 16 11:55:14 2010 From: ralphs at dos32.com (Ralph Shnelvar) Date: Fri, 16 Jul 2010 09:55:14 -0600 Subject: [fxruby-users] rdebug & fxruby Message-ID: <1033647474.20100716095514@dos32.com> An HTML attachment was scrubbed... URL: From ralphs at dos32.com Mon Jul 19 10:25:33 2010 From: ralphs at dos32.com (Ralph Shnelvar) Date: Mon, 19 Jul 2010 08:25:33 -0600 Subject: [fxruby-users] Where is the documentation? Message-ID: <1610625036.20100719082533@dos32.com> I am getting frustrated with the lack of documentation with respect to FXRuby. Even the FOX documentation seems to be lacking. So, for instance, in http://www.fxruby.org/doc/api/classes/Fox/FXTable.html we see: setColumnWidth(column, columnWidth) What unit is columnWidth in? I presume pixels ... sigh. Is there better documentation anywhere else? From ralphs at dos32.com Mon Jul 19 14:05:30 2010 From: ralphs at dos32.com (Ralph Shnelvar) Date: Mon, 19 Jul 2010 12:05:30 -0600 Subject: [fxruby-users] More active FXRuby User Group List? In-Reply-To: References: <312200839.20100713085928@dos32.com> Message-ID: <902264322.20100719120530@dos32.com> An HTML attachment was scrubbed... URL: From ralphs at dos32.com Mon Jul 19 14:06:54 2010 From: ralphs at dos32.com (Ralph Shnelvar) Date: Mon, 19 Jul 2010 12:06:54 -0600 Subject: [fxruby-users] A way to record the splitter positions Message-ID: <434154144.20100719120654@dos32.com> An HTML attachment was scrubbed... URL: From lyle at lylejohnson.name Mon Jul 19 14:40:55 2010 From: lyle at lylejohnson.name (Lyle Johnson) Date: Mon, 19 Jul 2010 13:40:55 -0500 Subject: [fxruby-users] Where is the documentation? In-Reply-To: <1610625036.20100719082533@dos32.com> References: <1610625036.20100719082533@dos32.com> Message-ID: On Mon, Jul 19, 2010 at 9:25 AM, Ralph Shnelvar wrote: > What unit is columnWidth in? ?I presume pixels ... sigh. I think you can safely assume that the units of measurement for most things onscreen are pixels. > Is there better documentation anywhere else? There's not a lot of documentation, but this page at the FXRuby site offers a few leads: http://www.fxruby.org/documentation.html Specifically, there's a book, some tutorials, and a community Wiki site. Hope this helps, Lyle From jkinsella at ancillaryservices.com Mon Jul 19 14:38:50 2010 From: jkinsella at ancillaryservices.com (Joey Kinsella) Date: Mon, 19 Jul 2010 14:38:50 -0400 Subject: [fxruby-users] A way to record the splitter positions In-Reply-To: <434154144.20100719120654@dos32.com> References: <434154144.20100719120654@dos32.com> Message-ID: I don't believe there is a "generic" way. However something like this should work: #! /usr/bin/env ruby require 'fox16' include Fox class ExampleApp < FXMainWindow def initialize(app) super(app, "Example Application", :opts => DECOR_ALL, :width => 800, :height => 600) @registry = app.reg() @split = [] @split[0] = @registry.readIntEntry("splitter", "split0", 124) @split[1] = @registry.readIntEntry("splitter", "split1", 674) end def create draw_gui super show(PLACEMENT_SCREEN) end def draw_gui split = FXSplitter.new(self, LAYOUT_FILL | SPLITTER_NORMAL | SPLITTER_TRACKING) b1 = FXButton.new(split, "Button 1", :opts => BUTTON_NORMAL | LAYOUT_FILL) b2 = FXButton.new(split, "Button 2", :opts => BUTTON_NORMAL | LAYOUT_FILL) split.connect(SEL_COMMAND) do @registry.writeIntEntry("splitter", "split0", split.getSplit(0)) @registry.writeIntEntry("splitter", "split1", split.getSplit(0)) end @split.each_index do |i| split.setSplit(i, @split[i]) end end end if __FILE__ == $0 app = FXApp.new("example", "example") app.init(ARGV) win = ExampleApp.new(app) app.create app.run end On Mon, Jul 19, 2010 at 2:06 PM, Ralph Shnelvar wrote: > Is there a generic way of recording the splitter position(s) and throwing > them at the registry? > > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users > -- If you are not the intended recipient, you are hereby notified that any dissemination, distribution, copying or other use of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ralphs at dos32.com Mon Jul 19 15:15:17 2010 From: ralphs at dos32.com (Ralph Shnelvar) Date: Mon, 19 Jul 2010 13:15:17 -0600 Subject: [fxruby-users] Where is the documentation? In-Reply-To: References: <1610625036.20100719082533@dos32.com> Message-ID: <619250572.20100719131517@dos32.com> Lyle, Monday, July 19, 2010, 12:40:55 PM, you wrote: LJ> On Mon, Jul 19, 2010 at 9:25 AM, Ralph Shnelvar wrote: >> What unit is columnWidth in? I presume pixels ... sigh. LJ> I think you can safely assume that the units of measurement for most LJ> things onscreen are pixels. >> Is there better documentation anywhere else? LJ> There's not a lot of documentation, but this page at the FXRuby site LJ> offers a few leads: LJ> http://www.fxruby.org/documentation.html LJ> Specifically, there's a book, some tutorials, and a community Wiki site. I bought the electronic version of your book, Lyle, and I quote from it: Online Documentation Despite rumors to the contrary, there is actually a good deal of online documentation for both FOX and FXRuby, if you know where to look for it. So ... which is it: "There's not a lot of documentation" or there is a good deal of online documentation? - - - Lyle, you wrote a great book (Yes he did, Folks!)... but even offhand comments like the one I quoted from your book, above, can cause people to make assumptions and investments that they might not otherwise make. From lyle at lylejohnson.name Mon Jul 19 15:33:54 2010 From: lyle at lylejohnson.name (Lyle Johnson) Date: Mon, 19 Jul 2010 14:33:54 -0500 Subject: [fxruby-users] More active FXRuby User Group List? In-Reply-To: <902264322.20100719120530@dos32.com> References: <312200839.20100713085928@dos32.com> <902264322.20100719120530@dos32.com> Message-ID: On Mon, Jul 19, 2010 at 1:05 PM, Ralph Shnelvar wrote: > Is there another more active list? Not that I'm aware of. This is sort of the "official" list, although you'll occasionally see FXRuby questions pop up on the foxgui-users and ruby-talk mailing lists (as well as other random programming forums). From jkinsella at ancillaryservices.com Mon Jul 19 15:58:37 2010 From: jkinsella at ancillaryservices.com (Joey Kinsella) Date: Mon, 19 Jul 2010 15:58:37 -0400 Subject: [fxruby-users] Where is the documentation? In-Reply-To: <619250572.20100719131517@dos32.com> References: <1610625036.20100719082533@dos32.com> <619250572.20100719131517@dos32.com> Message-ID: My two cents (if it matters): The documentation for Fox and FXRuby may not be 100% the best, however I have found very few things that I was not able to figure out from the documentation alone. The FXRuby rdoc is very helpful, and the Fox documentation is very helpful as well. Occasionally I've had to hunt through the Fox source code to figure something out, or write a quick little test "app", but that's only happened but a handful of times out of many different things I've done with FXRuby. And when you compare the documentation of FXRuby to other libraries documentation, you can hardly say it's not documented well enough. Ralph, What exactly is the problem? What do you feel is lacking in the documentation? (Saying the documentation sucks doesn't help anyone correct the problem, you have to be a little more specific.) And of course, what exactly is it that you need help with? I can assure you that if you have a question and someone on this list knows the answer they will most likely be happy to help you. :) On Mon, Jul 19, 2010 at 3:15 PM, Ralph Shnelvar wrote: > Lyle, > > Monday, July 19, 2010, 12:40:55 PM, you wrote: > > LJ> On Mon, Jul 19, 2010 at 9:25 AM, Ralph Shnelvar > wrote: > > >> What unit is columnWidth in? I presume pixels ... sigh. > > LJ> I think you can safely assume that the units of measurement for most > LJ> things onscreen are pixels. > > >> Is there better documentation anywhere else? > > LJ> There's not a lot of documentation, but this page at the FXRuby site > LJ> offers a few leads: > > LJ> http://www.fxruby.org/documentation.html > > LJ> Specifically, there's a book, some tutorials, and a community Wiki > site. > > I bought the electronic version of your book, Lyle, and I quote from it: > > Online Documentation > Despite rumors to the contrary, there is actually a good deal of online > documentation for both FOX and FXRuby, if you know where to look > for it. > > So ... which is it: "There's not a lot of documentation" or there is a good > deal of online documentation? > > - - - > > Lyle, you wrote a great book (Yes he did, Folks!)... but even offhand > comments like the one I quoted from your book, above, can cause people to > make assumptions and investments that they might not otherwise make. > > > > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users > -- If you are not the intended recipient, you are hereby notified that any dissemination, distribution, copying or other use of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ralphs at dos32.com Mon Jul 19 16:49:10 2010 From: ralphs at dos32.com (Ralph Shnelvar) Date: Mon, 19 Jul 2010 14:49:10 -0600 Subject: [fxruby-users] HTML widget? Message-ID: <1832499173.20100719144910@dos32.com> From FXRuby Create Lean and Mean GUIs with Ruby - - - A serious shortcoming of FOX and FXRuby is the lack of a widget that can display HTML or rich text. The FXText widget is definitely not that kind of widget, although it provides some minimal support for ?styled? text. - - - Does such a widget exist yet? I did a Google search and the last time I could find the question asked and answered was in August of '09. From natarajsn at gmail.com Tue Jul 20 01:45:16 2010 From: natarajsn at gmail.com (Nataraj S Narayan) Date: Tue, 20 Jul 2010 11:15:16 +0530 Subject: [fxruby-users] Alternative to QT Message-ID: Hi Lyle and other friends I am working on at91sam9263 single board Arm9, 200Mhz gadgets, with 64M Ram and 256M Nand flash . At one time I was creating prototypes in fxruby for the said board. Things were going quite well, and I was trying to convince the managent to stick to fox lib and ruby, when they moved into the direction of Qt-embedded-linux-opensouce 4.5.2 ,which works without X windows, but on the frame buffer device. Presently all coding is on Qt + C++, which I find terribly boring as well requiring too much man hours and man power. May I know if there is any chance to work on getting fxruby on a /dev/fb0 ? I beleive there are lots of prospective markets where one can employ the ease and flexibilty and joy of coding in Ruby and fox ,if we could embark on a project to get foxlib to work on framebuffer device. Warm regards Nataraj S Narayan -------------- next part -------------- An HTML attachment was scrubbed... URL: From lyle at lylejohnson.name Tue Jul 20 09:18:10 2010 From: lyle at lylejohnson.name (Lyle Johnson) Date: Tue, 20 Jul 2010 08:18:10 -0500 Subject: [fxruby-users] Alternative to QT In-Reply-To: References: Message-ID: On Tue, Jul 20, 2010 at 12:45 AM, Nataraj S Narayan wrote: > May I know if there is any chance to work on getting fxruby on a /dev/fb0 ? > I beleive there are lots of prospective markets where one can employ the > ease and flexibilty and joy of coding in Ruby and fox ,if we could embark on > a project to get foxlib to work on framebuffer device. I have no clue what would be involved in this, but you might want to cross-post your request to the FOX users mailing list, since that's where the bulk of the porting work would need to happen. FXRuby is, after all, just a Ruby compatibility layer on top of FOX (i.e. there's nothing X-specific in FXRuby's code base). Good luck! From ralphs at dos32.com Tue Jul 20 17:52:09 2010 From: ralphs at dos32.com (Ralph Shnelvar) Date: Tue, 20 Jul 2010 15:52:09 -0600 Subject: [fxruby-users] ruby\samples\FXRuby\splitter.rbw Message-ID: <28406035.20100720155209@dos32.com> I am running the above sample and there are 3 panels (and, thus, two, uh, sliders). The left hand slider behaves the way I want. That is, when I move it left or right, the right hand slider does not move. The right hand slider does not do that. When I move it ... it moves the left hand slider. How do I make the right hand slider behave like the left hand slider? - - - - On a slightly different note, what is the difference between a .rb extension and a .rbw extension? Ralph Shnelvar From matma.rex at gmail.com Wed Jul 21 06:05:18 2010 From: matma.rex at gmail.com (=?UTF-8?Q?Bartosz_Dziewo=C5=84ski?=) Date: Wed, 21 Jul 2010 12:05:18 +0200 Subject: [fxruby-users] ruby\samples\FXRuby\splitter.rbw In-Reply-To: <28406035.20100720155209@dos32.com> References: <28406035.20100720155209@dos32.com> Message-ID: 2010/7/20 Ralph Shnelvar : > On a slightly different note, what is the difference between a .rb extension and a .rbw extension? Regular .rb file runs with console, .rbw - without. It's the equivalent of running "ruby script.rb" and "rubyw script.rb" (at least on Windows). Basically, you want your apps to be .rb if you have any debug printing stuff in them and .rbw once they're finished. -- Matma Rex - http://matma-rex.prv.pl/ From kb9agt at gmail.com Mon Jul 26 15:09:17 2010 From: kb9agt at gmail.com (Douglas Allen) Date: Mon, 26 Jul 2010 14:09:17 -0500 Subject: [fxruby-users] Where is the documentation? In-Reply-To: <1610625036.20100719082533@dos32.com> References: <1610625036.20100719082533@dos32.com> Message-ID: gem_server http://localhost:8808/ On 7/19/10, Ralph Shnelvar wrote: > I am getting frustrated with the lack of documentation with respect to FXRuby. > > Even the FOX documentation seems to be lacking. > > So, for instance, in http://www.fxruby.org/doc/api/classes/Fox/FXTable.html we see: > setColumnWidth(column, columnWidth) > > What unit is columnWidth in? I presume pixels ... sigh. > > Is there better documentation anywhere else? > > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users > From ralphs at dos32.com Mon Jul 26 19:11:12 2010 From: ralphs at dos32.com (Ralph Shnelvar) Date: Mon, 26 Jul 2010 17:11:12 -0600 Subject: [fxruby-users] Making a widget visible Message-ID: <1522665542.20100726171112@dos32.com> I have a collection of widgets inside a panel. I hide all the widgets. That seems to work. Later, the user clicks on a menu item and I want the widgets to reappear so I do a show on each widget. Nothing happens. It I minimize the application window and the restore the window, the widgets magically appear. What am I missing? Ralph From ralphs at dos32.com Tue Jul 27 03:11:27 2010 From: ralphs at dos32.com (Ralph Shnelvar) Date: Tue, 27 Jul 2010 01:11:27 -0600 Subject: [fxruby-users] Making a widget visible In-Reply-To: <1522665542.20100726171112@dos32.com> References: <1522665542.20100726171112@dos32.com> Message-ID: <992838140.20100727011127@dos32.com> Monday, July 26, 2010, 5:11:12 PM, you wrote: RS> I have a collection of widgets inside a panel. RS> I hide all the widgets. That seems to work. RS> Later, the user clicks on a menu item and I want the widgets to reappear so I do a show on each widget. Nothing happens. RS> It I minimize the application window and the restore the window, the widgets magically appear. RS> What am I missing? RS> Ralph To answer my own question ... One needs to do a recalc on the frame holding all the widgets -------------- next part -------------- An HTML attachment was scrubbed... URL: From ralphs at dos32.com Wed Jul 28 18:35:28 2010 From: ralphs at dos32.com (Ralph Shnelvar) Date: Wed, 28 Jul 2010 16:35:28 -0600 Subject: [fxruby-users] FXTextField.connect(SEL_CHANGED) Message-ID: <755394664.20100728163528@dos32.com> When I do an assignment to the text in a FXTextField, SEL_CHANGED is not raised. The text is changed on the screen. How do I detect that the text has been changed and/or ... how do I raise SEL_CHANGED? -------------- next part -------------- An HTML attachment was scrubbed... URL: From lyle at lylejohnson.name Wed Jul 28 23:55:39 2010 From: lyle at lylejohnson.name (Lyle Johnson) Date: Wed, 28 Jul 2010 22:55:39 -0500 Subject: [fxruby-users] FXTextField.connect(SEL_CHANGED) In-Reply-To: <755394664.20100728163528@dos32.com> References: <755394664.20100728163528@dos32.com> Message-ID: <4DE50FDE-308C-4FB8-85C0-E579B046B85E@lylejohnson.name> On Jul 28, 2010, at 5:35 PM, Ralph Shnelvar wrote: > When I do an assignment to the text in a FXTextField, SEL_CHANGED is not raised. > Try calling setText("new value", true) on the FXTextField instead of assigning to the "text" attribute. That should cause it to notify the text field's target of the SEL_CHANGED event. From ralphs at dos32.com Thu Jul 29 10:52:04 2010 From: ralphs at dos32.com (Ralph Shnelvar) Date: Thu, 29 Jul 2010 08:52:04 -0600 Subject: [fxruby-users] FXTextField.connect(SEL_CHANGED) In-Reply-To: <4DE50FDE-308C-4FB8-85C0-E579B046B85E@lylejohnson.name> References: <755394664.20100728163528@dos32.com> <4DE50FDE-308C-4FB8-85C0-E579B046B85E@lylejohnson.name> Message-ID: <1105932474.20100729085204@dos32.com> Lyle, Thank you for your attempt, Lyle. As far as I can tell, the setText does, indeed, set the text but does not signal SEL_CHANGED. Where can I find the source to FXRuby? I don't want to build ... I just want the source because I could not find any documentation that shows that setText takes two parameters. Ralph Wednesday, July 28, 2010, 9:55:39 PM, you wrote: LJ> On Jul 28, 2010, at 5:35 PM, Ralph Shnelvar wrote: >> When I do an assignment to the text in a FXTextField, SEL_CHANGED is not raised. LJ> Try calling setText("new value", true) on the FXTextField instead of assigning to the "text" attribute. That should LJ> cause it to notify the text field's target of the SEL_CHANGED event. LJ> _______________________________________________ LJ> fxruby-users mailing list LJ> fxruby-users at rubyforge.org LJ> http://rubyforge.org/mailman/listinfo/fxruby-users -- Best regards, Ralph mailto:ralphs at dos32.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jkinsella at ancillaryservices.com Thu Jul 29 11:00:14 2010 From: jkinsella at ancillaryservices.com (Joey Kinsella) Date: Thu, 29 Jul 2010 11:00:14 -0400 Subject: [fxruby-users] FXTextField.connect(SEL_CHANGED) In-Reply-To: <1105932474.20100729085204@dos32.com> References: <755394664.20100728163528@dos32.com> <4DE50FDE-308C-4FB8-85C0-E579B046B85E@lylejohnson.name> <1105932474.20100729085204@dos32.com> Message-ID: gem server http://127.0.0.1:8808/doc_root/fxruby-1.6.16/rdoc/index.html under FXText::setText setText(text, notify=false) Change the text If *notify* is true, SEL_INSERTED and SEL_CHANGED messages are sent to the text widget?s message target after the newtext is set. In any case http://www.fxruby.org/doc/api/ seems to have the latest documentation as well. As far as source goes, under linux you can find it under: /usr/lib/ruby/gems/1.8/gems/fxruby-1.6.16/ext/fox16 Where 1.6.16 would be replaced with the version of fxruby you are running. On Thu, Jul 29, 2010 at 10:52 AM, Ralph Shnelvar wrote: > Lyle, > > > Thank you for your attempt, Lyle. > > > As far as I can tell, the setText does, indeed, set the text but does not > signal SEL_CHANGED. > > > Where can I find the source to FXRuby? I don't want to build ... I just > want the source because I could not find any documentation that shows that > setText takes two parameters. > > > Ralph > > > Wednesday, July 28, 2010, 9:55:39 PM, you wrote: > > > LJ> On Jul 28, 2010, at 5:35 PM, Ralph Shnelvar wrote: > > >> When I do an assignment to the text in a FXTextField, SEL_CHANGED is not > raised. > > > LJ> Try calling setText("new value", true) on the FXTextField instead of > assigning to the "text" attribute. That should > > LJ> cause it to notify the text field's target of the SEL_CHANGED event. > > LJ> _______________________________________________ > > LJ> fxruby-users mailing list > > LJ> fxruby-users at rubyforge.org > > LJ> http://rubyforge.org/mailman/listinfo/fxruby-users > > > > > -- > > Best regards, > > Ralph mailto:ralphs at dos32.com > > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users > -- If you are not the intended recipient, you are hereby notified that any dissemination, distribution, copying or other use of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lyle at lylejohnson.name Thu Jul 29 11:52:36 2010 From: lyle at lylejohnson.name (Lyle Johnson) Date: Thu, 29 Jul 2010 10:52:36 -0500 Subject: [fxruby-users] FXTextField.connect(SEL_CHANGED) In-Reply-To: <1105932474.20100729085204@dos32.com> References: <755394664.20100728163528@dos32.com> <4DE50FDE-308C-4FB8-85C0-E579B046B85E@lylejohnson.name> <1105932474.20100729085204@dos32.com> Message-ID: On Thu, Jul 29, 2010 at 9:52 AM, Ralph Shnelvar wrote: > As far as I can tell, the setText does, indeed, set the text but does not > signal SEL_CHANGED. Ah, you're right. It actually sends SEL_COMMAND for that case. I was thinking of the multiline FXText widget, which *does* send SEL_CHANGED in that circumstance. I don't know why Jeroen (FOX's author) made those two inconsistent. If I read the code correctly, it looks like FXTextField sends SEL_CHANGED as the user makes individual changes to the text (e.g. typing in new characters, deleting text), so that's the difference. > Where can I find the source to FXRuby? I don't want to build ... I just want > the source because I could not find any documentation that shows that > setText takes two parameters. The source code repository is here: http://github.com/lylejohnson/fxruby/tree/1.6 and the source (actually, the SWIG interface file from which the source code is generated) for FXTextField is here: http://github.com/lylejohnson/fxruby/blob/1.6/swig-interfaces/FXTextField.i There, you will see that the setText() method is declared as: /// Set the text for this label void setText(const FXString& text,FXbool notify=FALSE); The second argument ("notify") is false by default, which is to say that if you just call: textfield.setText("new text") it won't send a SEL_COMMAND message to the FXTextField's target. Now, what you might also want to see (for additional insight) is the FOX source code to which this links. You can download the source code for FOX 1.6 here: http://www.fox-toolkit.org/download.html and if you look at FXTextField.cpp, you'll find this definition of the function: // Change the text and move cursor to end void FXTextField::setText(const FXString& text,FXbool notify){ killSelection(); if(contents!=text){ contents=text; anchor=contents.length(); cursor=contents.length(); if(xid) layout(); if(notify && target){target->tryHandle(this,FXSEL(SEL_COMMAND,message),(void*)contents.text());} } } Hope this helps, Lyle From ralphs at dos32.com Thu Jul 29 13:01:49 2010 From: ralphs at dos32.com (Ralph Shnelvar) Date: Thu, 29 Jul 2010 11:01:49 -0600 Subject: [fxruby-users] FXTextField.connect(SEL_CHANGED) In-Reply-To: References: <755394664.20100728163528@dos32.com> <4DE50FDE-308C-4FB8-85C0-E579B046B85E@lylejohnson.name> <1105932474.20100729085204@dos32.com> Message-ID: <1051041346.20100729110149@dos32.com> Lyle, Thank you for your in-depth help, Lyle. That was the correct answer. My code now works with the setText. - - - - - So ... continuing ... I have in my code ... @v_file_FXTextField.connect(SEL_CHANGED) do |sender, sel, data| v_model.filename = sender.text.strip end @v_file_FXTextField.connect(SEL_COMMAND) do |sender, sel, data| v_model.filename = sender.text.strip end which seems to work fine. The following does not seem to work worth a damn ... @v_file_FXTextField.connect(SEL_CHANGED|SEL_COMMAND) do |sender, sel, data| v_model.filename = sender.text.strip end Is there a way to do what I want which is to have a single connect do two, uh, connections? Ralph Thursday, July 29, 2010, 9:52:36 AM, you wrote: LJ> On Thu, Jul 29, 2010 at 9:52 AM, Ralph Shnelvar wrote: >> As far as I can tell, the setText does, indeed, set the text but does not >> signal SEL_CHANGED. LJ> Ah, you're right. It actually sends SEL_COMMAND for that case. I was LJ> thinking of the multiline FXText widget, which *does* send SEL_CHANGED LJ> in that circumstance. I don't know why Jeroen (FOX's author) made LJ> those two inconsistent. LJ> If I read the code correctly, it looks like FXTextField sends LJ> SEL_CHANGED as the user makes individual changes to the text (e.g. LJ> typing in new characters, deleting text), so that's the difference. >> Where can I find the source to FXRuby? I don't want to build ... I just want >> the source because I could not find any documentation that shows that >> setText takes two parameters. LJ> The source code repository is here: LJ> http://github.com/lylejohnson/fxruby/tree/1.6 LJ> and the source (actually, the SWIG interface file from which the LJ> source code is generated) for FXTextField is here: LJ> http://github.com/lylejohnson/fxruby/blob/1.6/swig-interfaces/FXTextField.i LJ> There, you will see that the setText() method is declared as: LJ> /// Set the text for this label LJ> void setText(const FXString& text,FXbool notify=FALSE); LJ> The second argument ("notify") is false by default, which is to say LJ> that if you just call: LJ> textfield.setText("new text") LJ> it won't send a SEL_COMMAND message to the FXTextField's target. Now, LJ> what you might also want to see (for additional insight) is the FOX LJ> source code to which this links. You can download the source code for LJ> FOX 1.6 here: LJ> http://www.fox-toolkit.org/download.html LJ> and if you look at FXTextField.cpp, you'll find this definition of the function: LJ> // Change the text and move cursor to end LJ> void FXTextField::setText(const FXString& text,FXbool notify){ LJ> killSelection(); LJ> if(contents!=text){ LJ> contents=text; LJ> anchor=contents.length(); LJ> cursor=contents.length(); LJ> if(xid) layout(); LJ> if(notify && target){target->>tryHandle(this,FXSEL(SEL_COMMAND,message),(void*)contents.text());} LJ> } LJ> } LJ> Hope this helps, LJ> Lyle LJ> _______________________________________________ LJ> fxruby-users mailing list LJ> fxruby-users at rubyforge.org LJ> http://rubyforge.org/mailman/listinfo/fxruby-users -- Best regards, Ralph mailto:ralphs at dos32.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From lyle at lylejohnson.name Thu Jul 29 15:09:21 2010 From: lyle at lylejohnson.name (Lyle Johnson) Date: Thu, 29 Jul 2010 14:09:21 -0500 Subject: [fxruby-users] FXTextField.connect(SEL_CHANGED) In-Reply-To: <1051041346.20100729110149@dos32.com> References: <755394664.20100728163528@dos32.com> <4DE50FDE-308C-4FB8-85C0-E579B046B85E@lylejohnson.name> <1105932474.20100729085204@dos32.com> <1051041346.20100729110149@dos32.com> Message-ID: On Thu, Jul 29, 2010 at 12:01 PM, Ralph Shnelvar wrote: > The following does not seem to work worth a damn ... > > ? ? @v_file_FXTextField.connect(SEL_CHANGED|SEL_COMMAND) do |sender, sel, > data| > ? ? ? v_model.filename = sender.text.strip > ? ? end > > Is there a way to do what I want which is to have a single connect do two, > uh, connections? There's no way to have a single call to connect() do what you want; each call to connect() wires up exactly one message handler. So you have at least a couple of options here. Because the block's body (the stuff between "do" and "end") is so short anyways, I'd probably just write out the two statements and call it a day. But if it were something more involved, I'd probably pull it out into a separate method, e.g. def update_model_filename(sender, sel, data) v_model.filename = sender.text.strip # ... possibly a lot more code that we don't want to duplicate ... end and then call that from the connect() statements' blocks, i.e. @v_file_FXTextField.connect(SEL_CHANGED) do |sender, sel, data| update_model_filename(sender, sel, data) end @v_file_FXTextField.connect(SEL_CHANGED) do |sender, sel, data| update_model_filename(sender, sel, data) end Along these lines, there's a two-argument form of connect(), where you pass in some "callable" object as the second argument. So we could more compactly write those two connect() statements as: @v_file_FXTextField.connect(SEL_CHANGED, method(:update_model_filename)) @v_file_FXTextField.connect(SEL_COMMAND, method(:update_model_filename)) Here, the "method()" method (part of the Ruby core) takes a symbol as its input and returns a Method object. Hope this helps, Lyle From ralphs at dos32.com Sat Jul 31 08:16:44 2010 From: ralphs at dos32.com (Ralph Shnelvar) Date: Sat, 31 Jul 2010 06:16:44 -0600 Subject: [fxruby-users] Non-modal FXMessageBox Message-ID: <1922178052.20100731061644@dos32.com> Is there a way to make FxMessageBox non-modal? -------------- next part -------------- An HTML attachment was scrubbed... URL: