From meinrad.recheis at gmail.com Tue Mar 3 10:22:19 2009 From: meinrad.recheis at gmail.com (Meinrad Recheis) Date: Tue, 3 Mar 2009 16:22:19 +0100 Subject: [fxruby-users] MenuCheck and MenuRadio issue Message-ID: <43d756720903030722i6c458e78m60f751a8847d8d46@mail.gmail.com> @andrew, I think I know what is the issue. FXMenuCheck and FXMenuRadio seem to be unstable. As soon as I add MenuRadio or MenuCheck classes to a menupane I am experiencing occasional segfaults. Sadly using normal radio button and checkboxes instead of menuradio and menucheck inside a menupane is not an option because the fox toolkit easily crashes or refuses to work with unexpected use cases =P ... you best resort to opening up a dialogbox which shows the checkboxes and radiobuttons you need. @fxruby ML: did anyone else experience segfaults using FXMenuCheck and MXMenuRadio in fxruby 1.6.1? good day, --henon -------------- next part -------------- An HTML attachment was scrubbed... URL: From lyle at lylejohnson.name Wed Mar 4 10:45:41 2009 From: lyle at lylejohnson.name (Lyle Johnson) Date: Wed, 4 Mar 2009 09:45:41 -0600 Subject: [fxruby-users] MenuCheck and MenuRadio issue In-Reply-To: <43d756720903030722i6c458e78m60f751a8847d8d46@mail.gmail.com> References: <43d756720903030722i6c458e78m60f751a8847d8d46@mail.gmail.com> Message-ID: <300E64F0-EC16-4FAC-AAFA-F33FF11F647E@lylejohnson.name> On Mar 3, 2009, at 9:22 AM, Meinrad Recheis wrote: > did anyone else experience segfaults using FXMenuCheck and > MXMenuRadio in fxruby 1.6.1? I did a quick search of the bugs list at RubyForge and didn't turn up anything. Having said that, it has obviously been a long time since FXRuby 1.6.1 was released, and a lot of things have been fixed since then, so it might be worth seeing if the problems persist with the latest release of FXRuby. From adaml2 at seznam.cz Thu Mar 5 06:42:47 2009 From: adaml2 at seznam.cz (adaml2 at seznam.cz) Date: Thu, 05 Mar 2009 12:42:47 +0100 (CET) Subject: [fxruby-users] ruby1.9.1 fox1.7.19 fxrubygithub -> Init_core Message-ID: <10.19-18235-2018658908-1236253367@seznam.cz> ruby 1.9.1 #compiled # also fails with prepacked 1.8.7 ubuntu fox 1.7.19 #compiled swig 1.3.35 # apt-get fxruby from github # compiled and ?? The story goes over many errors.... and fails. After git clone fxruby. I tried doc/build advice: ( BTW there are texts 1.6.13 and 1.6.32, are you planning something as @@FXRUBYVERSION@@ ) ruby install.rb config fails with: /usr/local/bin/ruby: No such file or directory -- /x/my/fox/1/fxruby/ext/fox16/extconf.rb (LoadError) That's because there is only extconf.rb.in. So I tried: rake build it failed with: scripts/iface.rb:387:in `ensure in main': undefined method `close' for nil:NilClass (NoMethodError) from scripts/iface.rb:388:in `main' from scripts/iface.rb:391:in `
' rake aborted! Command failed with status (1): [/usr/local/bin/ruby scripts/iface.rb -i ~/...] /x/my/fox/1/fxruby/Rakefile:240:in `block in ' looks like input = File.open(arg, File::RDONLY) raises exception, so input is still nil changed that to: input.close if input output.close if output rake build # again scripts/iface.rb:373:in `initialize': No such file or directory - /home/v/src/fxscintilla/scintilla/include/Scintilla.iface (Errno::ENOENT) ok. I have no scintilla, fxscintilla and so I blocked whole Rakefile line # ruby "scripts/iface.rb -i ~/src/fxscintilla/scintilla/include/Scintilla.iface -o lib/fox16/scintilla.rb" rake build # again rake aborted! No such file or directory - FXRuby.spec.in /x/my/fox/1/fxruby/Rakefile:252:in `initialize' Yeah. This file is really missing. I found some old version ( size 2011 ). rake build #again lot of text ...... part of that was: /usr/local/bin/ruby /x/my/fox/1/fxruby/ext/fox16/extconf.rb --with-fox-include=/usr/local/include/fox-1.7 --with-fox-lib=/usr/local/lib --without-fxscintilla finally with --without-fxscintilla ...... :-) but late and fails with: FXRbApp.cpp:27:25: error: swigrubyrun.h: No such file or directory rake swig # i did a change SWIG=/opt/.../swig hardcoded paths are very frequent in fxruby.... I did just: SWIG=swig rake swig # ok now rake build #again lot of compilation and finally: g++ ....................... -o FXRuby.o -c FXRuby.cpp FXRuby.cpp: In function ?VALUE FXRbMakeColorArray(const FX::FXColor*, FX::FXint, FX::FXint)?: FXRuby.cpp:457: warning: comparison between signed and unsigned integer expressions FXRuby.cpp: In function ?void* FXRbGetExpectedData(VALUE, FX::FXSelector, VALUE)?: FXRuby.cpp:1179: error: ?SWIG_Ruby_ConvertPtr? was not declared in this scope FXRuby.cpp:1186: error: ?SWIG_Ruby_ConvertPtr? was not declared in this scope I changed both these lines: ext/fox16/FXRuby.cpp:1179: SWIG_Ruby_ConvertPtr(value,&ptr,FXRbTypeQuery("FXPoint *"),1); ext/fox16/FXRuby.cpp:1186: SWIG_Ruby_ConvertPtr(value,&ptr,FXRbTypeQuery("FXEvent *"),1); to this text: SWIG_ConvertPtr rake build # ok rake test fails immediately with: /x/my/fox/1/fxruby/lib/fox16/timeout.rb:6:in `': undefined method `addDeadline' for class `Fox::FXApp' (NameError) Hmm. this shouldn't as addDeadline is there. I did install as root into /usr/local/lib ... It rewrote my normal fox16 !!!! rake test # again /usr/local/bin/ruby: symbol lookup error: /usr/local/lib/ruby/site_ruby/1.9.1/i686-linux/fox16.so: undefined symbol: Init_core This is end of story. I installed back fxruby 1.6.18 and quite disappointed .... notes 1) failure with addDeadline may be caused by loading fox16 from 1.6.35 which i have installed. That is: 'rake test' should work with local uninstalled version ?? Or installed one ? 2) mixing Rakefiles Makefiles and install.rb was not fun for me at all. I don't understand that process enough to try to correct that. So that all I can do is criticize. sorry. ada. From lyle at lylejohnson.name Thu Mar 5 08:20:13 2009 From: lyle at lylejohnson.name (Lyle Johnson) Date: Thu, 5 Mar 2009 07:20:13 -0600 Subject: [fxruby-users] ruby1.9.1 fox1.7.19 fxrubygithub -> Init_core In-Reply-To: <10.19-18235-2018658908-1236253367@seznam.cz> References: <10.19-18235-2018658908-1236253367@seznam.cz> Message-ID: <3F34D78A-5186-4352-9875-4AD3739ECB17@lylejohnson.name> On Mar 5, 2009, at 5:42 AM, adaml2 at seznam.cz wrote: > ruby 1.9.1 #compiled # also fails with prepacked 1.8.7 ubuntu > fox 1.7.19 #compiled FXRuby 1.6.x is only compatible with FOX 1.6. There is no release of FXRuby that is compatible with the (unstable) FOX 1.7 series. > swig 1.3.35 # apt-get You don't need SWIG to build FXRuby. It's something I use in the development of FXRuby, but you don't need it. > fxruby from github # compiled and ?? Not sure what this sentence fragment means... > The story goes over many errors.... and fails. > After git clone fxruby. I tried doc/build advice: Did you try installing the gem that's actually released? Or the source tarball that's actually released? Official releases are here: http://rubyforge.org/projects/fxruby/ > ( BTW there are texts 1.6.13 and 1.6.32, are you planning > something as @@FXRUBYVERSION@@ ) I have no idea what you're asking here. You know, I'm just going to stop here because your email is just all over the place. You say you're running Ubuntu, right? Why not just install the packages for fox, i.e. sudo apt-get install libfox-1.6-dev And then install FXRuby from the gem: sudo gem install fxruby Hope this helps, Lyle P.S. If you run into trouble with this approach, please post back to the list, but try to be more specific about what's going on. From adaml2 at seznam.cz Fri Mar 6 02:45:41 2009 From: adaml2 at seznam.cz (adaml2 at seznam.cz) Date: Fri, 6 Mar 2009 08:45:41 +0100 Subject: [fxruby-users] ruby1.9.1 fox1.7.19 fxrubygithub -> Init_core In-Reply-To: <3F34D78A-5186-4352-9875-4AD3739ECB17@lylejohnson.name> References: <10.19-18235-2018658908-1236253367@seznam.cz> <3F34D78A-5186-4352-9875-4AD3739ECB17@lylejohnson.name> Message-ID: <266e9d070903052345se42b043m6027052709caa4b1@mail.gmail.com> OK. It was story about compiling fxruby from github. I was really impressed by the amount of errors and your reaction just proves it. ( of course it also proves I'm bad writer. sorry for that ) BTW. 'sudo gem install fxruby' doesn't work on linux. Because File.move--> FileUtils.move bug. You've had several complains about that. ( you can install fxruby from a gem on windows, because its precompiled ) ----------------- > You don't need SWIG to build FXRuby. It's something I use in the development > of FXRuby, but you don't need it. I understand you are a swig developer and you feel high about yourself. Yeah you deserve a lot credit. But with this approach you're going to do all alone. In doc/* section you have swig 1.3.22 as only alternative and in another place you have swig from cvs. So I wrote I have 1.3.35 installed from ubuntu, because that last Init_core error might be somehow caused by bad version of swig. I have no problem to install any other version - or you expect me trying all variants. If it depends on fixed swig version - check for it. And update doc/* ----------------- To end this. I was curious if there exist a simple way to wrap other non-official fox classes to be used from ruby. If someone writes some C++ Fox Widget and I will want to use it from ruby. Or with bigger fxruby project one can easily run into speed problems... So It would be great to reimplement some widgets back in C++ and do then do fxruby-binding for them. As first step I tried to compile developers version from github. That's all. ada. From lyle at lylejohnson.name Fri Mar 6 10:02:23 2009 From: lyle at lylejohnson.name (Lyle Johnson) Date: Fri, 6 Mar 2009 09:02:23 -0600 Subject: [fxruby-users] Status of FOX 1.7? Message-ID: <56310813-CC78-4044-AA1E-F0E16FE8C06B@lylejohnson.name> Jeroen, As best I can tell, FOX 1.7.x has been the development version of FOX for 2.5+ years (with FOX 1.7.1 released in July 2006). I know that you generally don't like to set schedules and that "it will be done when it's done", but do you have a rough idea of how close you are to rolling the development branch over to a stable (presumably 1.8?) release branch? I am asking because there are some aspects of FXRuby's guts that I have intentionally put off changing until FOX 1.8 goes live (and as you already know I decided awhile back not to try and track the 1.7 series since the API is in flux). Just curious, Lyle From jeroen at fox-toolkit.org Fri Mar 6 11:06:25 2009 From: jeroen at fox-toolkit.org (Jeroen van der Zijp) Date: Fri, 6 Mar 2009 10:06:25 -0600 Subject: [fxruby-users] [Foxgui-users] Status of FOX 1.7? In-Reply-To: <56310813-CC78-4044-AA1E-F0E16FE8C06B@lylejohnson.name> References: <56310813-CC78-4044-AA1E-F0E16FE8C06B@lylejohnson.name> Message-ID: <200903061006.25757.jeroen@fox-toolkit.org> On Friday 06 March 2009, Lyle Johnson wrote: > Jeroen, > > As best I can tell, FOX 1.7.x has been the development version of FOX > for 2.5+ years (with FOX 1.7.1 released in July 2006). I know that you > generally don't like to set schedules and that "it will be done when > it's done", but do you have a rough idea of how close you are to > rolling the development branch over to a stable (presumably 1.8?) > release branch? I am asking because there are some aspects of FXRuby's > guts that I have intentionally put off changing until FOX 1.8 goes > live (and as you already know I decided awhile back not to try and > track the 1.7 series since the API is in flux). I think you're right, its probably time to converge the current code to a new stable version as soon as possible. It hasn't reached the goals I'd set for the 1.8 release, as a result of the lack of time [and energy] due to my home construction project. Fortunately that will be drawing to a close in the next few months, and I should be able to resume the pace at that time. In the meantime, I do believe you're right, and that its worth it to focus on converging the current code into a releasable state, wrap up a few loose ends, and get it into shape for the 1.8 release. Regards, - Jeroen From lyle at lylejohnson.name Fri Mar 6 11:24:30 2009 From: lyle at lylejohnson.name (Lyle Johnson) Date: Fri, 6 Mar 2009 10:24:30 -0600 Subject: [fxruby-users] ruby1.9.1 fox1.7.19 fxrubygithub -> Init_core In-Reply-To: <266e9d070903052345se42b043m6027052709caa4b1@mail.gmail.com> References: <10.19-18235-2018658908-1236253367@seznam.cz> <3F34D78A-5186-4352-9875-4AD3739ECB17@lylejohnson.name> <266e9d070903052345se42b043m6027052709caa4b1@mail.gmail.com> Message-ID: On Mar 6, 2009, at 1:45 AM, adaml2 at seznam.cz wrote: > 'sudo gem install fxruby' doesn't work on linux. Because File.move--> > FileUtils.move > bug. You've had several complains about that. ( you can install fxruby > from a gem on windows, because its precompiled ) Yes, this is a known problem for building FXRuby against Ruby 1.9.1. I have just released FXRuby 1.6.19, which should take care of this problem. > In doc/* section you have swig 1.3.22 as only alternative and in > another place > you have swig from cvs. So I wrote I have 1.3.35 installed from > ubuntu, because > that last Init_core error might be somehow caused by bad version of > swig. > I have no problem to install any other version - or you expect me > trying all variants. If it depends on fixed swig version - check for > it. And update doc/* OK. I've just updated the docs and have made a note that the build script should check which version of SWIG is being used, to confirm that it's the right version. I have actually made some fixes on the trunk (for what will eventually be FXRuby 1.8) to support the latest versions of SWIG, but I'm waiting on the release of FOX 1.8 for those. That would lift this restriction on using such an old version of SWIG. > I was curious if there exist a simple way to wrap other non-official > fox classes > to be used from ruby. If someone writes some C++ Fox Widget and I will > want to use it from ruby. Or with bigger fxruby project one can easily > run into speed problems... So It would be great to reimplement some > widgets back in C++ and do then do fxruby-binding for them. That's very difficult to do, and I'm not sure how to work around it at this point. But you'd want to look at how the FXScintilla widget is supported in FXRuby as a guide. > As first step I tried to compile developers version from github. > That's all. OK. We really need some sort of hacker's guide to FXRuby. There has just never been much interest from anyone for that, so it has taken low priority. From stuart_clarke86 at yahoo.com Sun Mar 8 12:30:52 2009 From: stuart_clarke86 at yahoo.com (Stuart Clarke) Date: Sun, 8 Mar 2009 16:30:52 +0000 (GMT) Subject: [fxruby-users] Reporting with FX Message-ID: <521834.26964.qm@web86606.mail.ird.yahoo.com> Hi all, What is the best way to create reports with FX? I am looking to create HTML or PDF reports. Any ideas? Many thanks Stuart -------------- next part -------------- An HTML attachment was scrubbed... URL: From lyle at lylejohnson.name Sun Mar 8 18:30:53 2009 From: lyle at lylejohnson.name (Lyle Johnson) Date: Sun, 8 Mar 2009 17:30:53 -0500 Subject: [fxruby-users] Reporting with FX In-Reply-To: <521834.26964.qm@web86606.mail.ird.yahoo.com> References: <521834.26964.qm@web86606.mail.ird.yahoo.com> Message-ID: <88D89FE3-2618-4ACF-B1E6-1577D8FA2BA8@lylejohnson.name> On Mar 8, 2009, at 11:30 AM, Stuart Clarke wrote: > What is the best way to create reports with FX? I am looking to > create HTML or PDF reports. > > Any ideas? Not sure exactly what you have in mind, but have you looked at Ruport (http://rubyreports.org/)? FOX (and therefore) doesn't have any capability for generating or displaying HTML or PDF documents. -------------- next part -------------- An HTML attachment was scrubbed... URL: From stuart_clarke86 at yahoo.com Mon Mar 9 08:23:48 2009 From: stuart_clarke86 at yahoo.com (Stuart Clarke) Date: Mon, 9 Mar 2009 12:23:48 +0000 (GMT) Subject: [fxruby-users] Reporting with FX In-Reply-To: <88D89FE3-2618-4ACF-B1E6-1577D8FA2BA8@lylejohnson.name> Message-ID: <810438.29517.qm@web86606.mail.ird.yahoo.com> Ok thanks, I will check that out. Also, I am writing a help file for the GUI which I want to be a compiled html file. I want to launch this file in its native format (outside of fox), how would I do this this with FX. To clarify, when a user clicks the help button a help sheet will appear either chm or a PDF in adobe pdf reader. Thanks for your help. Stuart --- On Sun, 8/3/09, Lyle Johnson wrote: From: Lyle Johnson Subject: Re: [fxruby-users] Reporting with FX To: fxruby-users at rubyforge.org Date: Sunday, 8 March, 2009, 10:30 PM On Mar 8, 2009, at 11:30 AM, Stuart Clarke wrote: What is the best way to create reports with FX? I am looking to create HTML or PDF reports. Any ideas? Not sure exactly what you have in mind, but have you looked at Ruport (http://rubyreports.org/)? FOX (and therefore) doesn't have any capability for generating or displaying HTML or PDF documents._______________________________________________ fxruby-users mailing list fxruby-users at rubyforge.org http://rubyforge.org/mailman/listinfo/fxruby-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From lyle at lylejohnson.name Mon Mar 9 10:19:05 2009 From: lyle at lylejohnson.name (Lyle Johnson) Date: Mon, 9 Mar 2009 08:19:05 -0600 Subject: [fxruby-users] Reporting with FX In-Reply-To: <810438.29517.qm@web86606.mail.ird.yahoo.com> References: <88D89FE3-2618-4ACF-B1E6-1577D8FA2BA8@lylejohnson.name> <810438.29517.qm@web86606.mail.ird.yahoo.com> Message-ID: <57cf8f720903090719y752eb34ap425e5f31c986b5c5@mail.gmail.com> On Mon, Mar 9, 2009 at 6:23 AM, Stuart Clarke wrote: > Also, I am writing a help file for the GUI which I want to be a compiled > html file. I want to launch this file in its native format (outside of fox), > how would I do this this with FX. To clarify, when a user clicks the help > button a help sheet will appear either chm or a PDF in adobe pdf reader. Right. I haven't used it, but for a nice cross-platform approach I think you'd want to check out Jeremy Hinegardner's Launchy: http://copiousfreetime.rubyforge.org/launchy/ Hope this helps, Lyle From philippe.lang at attiksystem.ch Mon Mar 9 04:40:34 2009 From: philippe.lang at attiksystem.ch (Philippe Lang) Date: Mon, 9 Mar 2009 09:40:34 +0100 Subject: [fxruby-users] Reporting with FX References: <521834.26964.qm@web86606.mail.ird.yahoo.com> Message-ID: Hi, We are simply MS Access for reporting in our software. This is absolutely not cross-platform, but it works, and works well. With a few COM calls, you can integrate MS Access into your application. And thanks to the MS Access runtime, you don't need a licence of MS Access on each computer. Philippe Lang Attik System http://www.attiksystem.ch/beerp/beerp-the-fxruby-erp/ _____ De : fxruby-users-bounces at rubyforge.org [mailto:fxruby-users-bounces at rubyforge.org] De la part de Stuart Clarke Envoy? : dimanche, 8. mars 2009 17:31 ? : fxruby-users at rubyforge.org Objet : [fxruby-users] Reporting with FX Hi all, What is the best way to create reports with FX? I am looking to create HTML or PDF reports. Any ideas? Many thanks Stuart -------------- next part -------------- An HTML attachment was scrubbed... URL: From vjoel at path.berkeley.edu Mon Mar 9 16:43:52 2009 From: vjoel at path.berkeley.edu (Joel VanderWerf) Date: Mon, 09 Mar 2009 13:43:52 -0700 Subject: [fxruby-users] Reporting with FX In-Reply-To: <810438.29517.qm@web86606.mail.ird.yahoo.com> References: <810438.29517.qm@web86606.mail.ird.yahoo.com> Message-ID: <49B57F88.9020902@path.berkeley.edu> Stuart Clarke wrote: > Ok thanks, I will check that out. > > Also, I am writing a help file for the GUI which I want to be a compiled > html file. I want to launch this file in its native format (outside of > fox), how would I do this this with FX. To clarify, when a user clicks > the help button a help sheet will appear either chm or a PDF in adobe > pdf reader. I've never used it but the launchy gem seems to be a popular way to open external apps in a cross-platform way. -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407 From vjoel at path.berkeley.edu Mon Mar 9 17:09:54 2009 From: vjoel at path.berkeley.edu (Joel VanderWerf) Date: Mon, 09 Mar 2009 14:09:54 -0700 Subject: [fxruby-users] Reporting with FX In-Reply-To: <49B57F88.9020902@path.berkeley.edu> References: <810438.29517.qm@web86606.mail.ird.yahoo.com> <49B57F88.9020902@path.berkeley.edu> Message-ID: <49B585A2.2080401@path.berkeley.edu> Joel VanderWerf wrote: > Stuart Clarke wrote: >> Ok thanks, I will check that out. >> >> Also, I am writing a help file for the GUI which I want to be a >> compiled html file. I want to launch this file in its native format >> (outside of fox), how would I do this this with FX. To clarify, when a >> user clicks the help button a help sheet will appear either chm or a >> PDF in adobe pdf reader. > > I've never used it but the launchy gem seems to be a popular way to open > external apps in a cross-platform way. Oops, now I realize Lyle said exactly the same thing earlier... Btw, this is more of a ruby question than a fxruby question. You may get more opinions if you ask on the ruby-talk list. But it may be worthwhile to take a look at launchy first. -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407 From philippe.lang at attiksystem.ch Tue Mar 10 03:03:34 2009 From: philippe.lang at attiksystem.ch (Philippe Lang) Date: Tue, 10 Mar 2009 08:03:34 +0100 Subject: [fxruby-users] Reporting with FX References: <177798.5318.qm@web86605.mail.ird.yahoo.com> Message-ID: Hi, I even have a class for you: ------------------ require 'win32ole' module Output # Singleton class used in order to manipulate MS Access class Access private_class_method :new @@access = nil # Returns a valid Access class def Access.open(database) @database = File.expand_path(database) self end # Destroys any remaining Access internal reference def Access.close @@access.quit rescue #puts "Could not close the MS Access OLE object." end # Creates a fresh MS Access OLE Automation server. def Access.init Access.close @@access = WIN32OLE.new('Access.Application') @@access.OpenCurrentDatabase(@database) end # Runs the command. The first parameter is the name of the function, and # the other parameters are the parameters of the function def Access.run_command(command, *param) begin @@access.run(command, *param) rescue #puts "MS Access call failed. It might have been closed meanwhile, so we do a second attempt after initializing MS Access again." Access.init @@access.run(command, *param) end rescue Access.close raise _("Win32 OLE error: could not run the command.") end # Prints a MS Access report on the default printer # without showing the print dialog. def Access.print_report(report, where = "") # We try closing the Access report. begin Access.close_report(report) rescue #puts "Closing MS Access call failed." end # We try printing the MS Access report. begin @@access.DoCmd.OpenReport(report, 0, "", where) rescue #puts "MS Access call failed. It might have been closed meanwhile, so we do a second attempt after initializing MS Access again." Access.init @@access.DoCmd.OpenReport(report, 0, "", where) end rescue Access.close #raise _("Win32 OLE error: could not print the Access report.") end # Shows a MS Access report without printing it. def Access.show_report(report, where = "") # We try closing the Access report. begin Access.close_report(report) rescue #puts "Closing MS Access call failed." end # We try showing the MS Access report. begin @@access.DoCmd.OpenReport(report, 2, "", where) @@access.visible = true rescue #puts "MS Access call failed. It might have been closed meanwhile, so we do a second attempt after initializing MS Access again." Access.init @@access.DoCmd.OpenReport(report, 2, "", where) @@access.visible = true end rescue Access.close #raise _("Win32 OLE error: could not show the Access report.") $app.endWaitCursor() FXMessageBox.error($wrk, MBOX_OK, _("Error"), "Le report est vide, impossible de l'afficher.") $app.beginWaitCursor() end # Closes a MS Access report. def Access.close_report(report) @@access.DoCmd.close(3, report) end end end ------------------ You can use it that way: db = Access.open("reporting.mdb") db.run_command("get_document_bvr_store", @id.val) db.show_report("document_bvr") ... where "get_document_bvr_store" is a function like: ------------------ Option Compare Database Option Explicit Const GUIL = """" Const APOST = "'" Public Sub get_document_bvr_store(document As String) On Error GoTo get_document_bvr_storeError Dim MyDatabase As DAO.Database Dim MyQueryDef As DAO.QueryDef Dim query As String setMouseWait query = "get_document_bvr" Set MyDatabase = CurrentDb() If (QueryExists(query)) Then MyDatabase.QueryDefs.Delete query Set MyQueryDef = MyDatabase.CreateQueryDef(query) MyQueryDef.Connect = "ODBC;DSN=soagesmat;" MyQueryDef.SQL = "SELECT * FROM public." & """" & query & """" & "(" & document & ");" MyQueryDef.ReturnsRecords = True MyQueryDef.Close Set MyQueryDef = Nothing MyDatabase.Close Set MyDatabase = Nothing get_document_bvr_storeExit: setMouseNormal Exit Sub get_document_bvr_storeError: MsgBox "Error in get_document_bvr_store." Resume get_document_bvr_storeExit End Sub --------------------- This function modifies a query at run-time. This query is used as a datasource for the report you want to open. Regards, Philippe ________________________________ De : Stuart Clarke [mailto:stuart_clarke86 at yahoo.com] Envoy? : lundi, 9. mars 2009 20:14 ? : Philippe Lang Objet : RE: [fxruby-users] Reporting with FX Hi, Thanks for the reply. Do you have any documentation on this? Sounds interesting. Regards Stuart --- On Mon, 9/3/09, Philippe Lang wrote: From: Philippe Lang Subject: RE: [fxruby-users] Reporting with FX To: stuart_clarke86 at yahoo.com, fxruby-users at rubyforge.org Date: Monday, 9 March, 2009, 8:40 AM Hi, We are simply MS Access for reporting in our software. This is absolutely not cross-platform, but it works, and works well. With a few COM calls, you can integrate MS Access into your application. And thanks to the MS Access runtime, you don't need a licence of MS Access on each computer. Philippe Lang Attik System http://www.attiksystem.ch/beerp/beerp-the-fxruby-erp/ ________________________________ De : fxruby-users-bounces at rubyforge.org [mailto:fxruby-users-bounces at rubyforge.org] De la part de Stuart Clarke Envoy? : dimanche, 8. mars 2009 17:31 ? : fxruby-users at rubyforge.org Objet : [fxruby-users] Reporting with FX Hi all, What is the best way to create reports with FX? I am looking to create HTML or PDF reports. Any ideas? Many thanks Stuart From Chris.Newman at maxim-ic.com Tue Mar 10 12:23:13 2009 From: Chris.Newman at maxim-ic.com (Chris Newman) Date: Tue, 10 Mar 2009 11:23:13 -0500 Subject: [fxruby-users] cannot find -lXrandr during FXRuby install Message-ID: <459B1D0D619BB4489E412451A1D418E72E52F83EF4@ITDALEX06.it.maxim-ic.internal> Hi all, I am looking for some help installing FXRuby 1.6.19 on a 64-bit RedHat VM. I have installed Ruby 1.8.7 into an alternate path: /srv/ruby-1.8.7. I have installed fox 1.6.35 under that alternate Ruby path. But, when I try to install FXRuby, either via a gem or via source, the linker reports the error: cannot find -lXrandr I found Xrandr libs in /usr/X11R6/lib & lib64. Why is it that fox seems to find Xrandr, but FXRuby cannot? I am pointing to the fox libs during the FXRuby build, i.e. set path = ( . /srv/ruby-1.8.7/bin etc...) ruby install.rb config -- --with-fox-include=/srv/ruby-1.8.7/include/fox-1.6 --with-fox-lib=/srv/ruby-1.8.7/lib It's as if the FXRuby build is clueless about the location of the X11 libs. I can go in and hack the Makefile under the rug, but that just seems wrong. What's the best way to fix this? Is there a way to pass in the X11 lib path to install.rb so that it creates the Makefile correctly? Any help would be appreciated. Thanks, cn -------------- next part -------------- An HTML attachment was scrubbed... URL: From proguser at yahoo.cn Wed Mar 11 07:44:03 2009 From: proguser at yahoo.cn (prog james) Date: Wed, 11 Mar 2009 04:44:03 -0700 (PDT) Subject: [fxruby-users] FXRuby-1.6.19 don't run in ruby1.9.1 on windows. Message-ID: <22451035.post@talk.nabble.com> I built fxruby-1.6.19 in win32 using msys + mingw tools. The process of doing it is ok and generate a file fox16.so in the directory ext\fox16. But when i require 'fox16', it fails to work. it reports that "LoadError: 127. The specified procedure could not be found . - Init_fox16 C:/ruby_1.9.1/usr/local/lib/ruby/site_ruby/1.9.1/i386-msvcrt/fox16.so ". how can i resolve it? thanks. OS: windows Ruby: ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-mingw32] -- View this message in context: http://www.nabble.com/FXRuby-1.6.19-don%27t-run-in-ruby1.9.1-on-windows.-tp22451035p22451035.html Sent from the FXRuby Users mailing list archive at Nabble.com. From lyle at lylejohnson.name Wed Mar 11 12:06:07 2009 From: lyle at lylejohnson.name (Lyle Johnson) Date: Wed, 11 Mar 2009 11:06:07 -0500 Subject: [fxruby-users] FXRuby-1.6.19 don't run in ruby1.9.1 on windows. In-Reply-To: <22451035.post@talk.nabble.com> References: <22451035.post@talk.nabble.com> Message-ID: <32D6219D-EA6A-4915-ADBD-A1F0F23EA374@lylejohnson.name> On Mar 11, 2009, at 6:44 AM, prog james wrote: > I built fxruby-1.6.19 in win32 using msys + mingw tools. > The process of doing it is ok and generate a file fox16.so in the > directory > ext\fox16. > But when i require 'fox16', it fails to work. it reports that > "LoadError: > 127. The specified procedure could not be found . - Init_fox16 > C:/ruby_1.9.1/usr/local/lib/ruby/site_ruby/1.9.1/i386-msvcrt/ > fox16.so ". > how can i resolve it? thanks. I don't have MinGW set up anymore and I'm not really inclined to do so until that becomes the new standard distribution for Ruby on Windows. If you come up with a solution to this problem and would like to submit a patch to fix it, I'd be glad to include that in a future release of FXRuby. From proguser at yahoo.cn Wed Mar 11 21:57:06 2009 From: proguser at yahoo.cn (prog james) Date: Wed, 11 Mar 2009 18:57:06 -0700 (PDT) Subject: [fxruby-users] FXRuby-1.6.19 don't run in ruby1.9.1 on windows. In-Reply-To: <32D6219D-EA6A-4915-ADBD-A1F0F23EA374@lylejohnson.name> References: <22451035.post@talk.nabble.com> <32D6219D-EA6A-4915-ADBD-A1F0F23EA374@lylejohnson.name> Message-ID: <22468445.post@talk.nabble.com> I resolved it. the problem is that no export function in the fox16.so file in Windows OS. So we must add a export attribute in the function Init_fox16 . I change the follow line in file FXRuby.cpp extern "C" void Init_fox16(void) into extern "C" void __attribute__ ((dllexport)) Init_fox16(void). then recompile it and link. then it works well now. Lyle Johnson-4 wrote: > > > On Mar 11, 2009, at 6:44 AM, prog james wrote: > >> I built fxruby-1.6.19 in win32 using msys + mingw tools. >> The process of doing it is ok and generate a file fox16.so in the >> directory >> ext\fox16. >> But when i require 'fox16', it fails to work. it reports that >> "LoadError: >> 127. The specified procedure could not be found . - Init_fox16 >> C:/ruby_1.9.1/usr/local/lib/ruby/site_ruby/1.9.1/i386-msvcrt/ >> fox16.so ". >> how can i resolve it? thanks. > > I don't have MinGW set up anymore and I'm not really inclined to do so > until that becomes the new standard distribution for Ruby on Windows. > If you come up with a solution to this problem and would like to > submit a patch to fix it, I'd be glad to include that in a future > release of FXRuby. > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users > > -- View this message in context: http://www.nabble.com/FXRuby-1.6.19-don%27t-run-in-ruby1.9.1-on-windows.-tp22451035p22468445.html Sent from the FXRuby Users mailing list archive at Nabble.com. From lyle at lylejohnson.name Thu Mar 12 09:56:46 2009 From: lyle at lylejohnson.name (Lyle Johnson) Date: Thu, 12 Mar 2009 08:56:46 -0500 Subject: [fxruby-users] FXRuby-1.6.19 don't run in ruby1.9.1 on windows. In-Reply-To: <22468445.post@talk.nabble.com> References: <22451035.post@talk.nabble.com> <32D6219D-EA6A-4915-ADBD-A1F0F23EA374@lylejohnson.name> <22468445.post@talk.nabble.com> Message-ID: <707B116F-A0DB-42AF-954D-3D72955E7440@lylejohnson.name> On Mar 11, 2009, at 8:57 PM, prog james wrote: > I resolved it. the problem is that no export function in the > fox16.so file in > Windows OS. > So we must add a export attribute in the function Init_fox16 . > > I change the follow line in file FXRuby.cpp > extern "C" void Init_fox16(void) > into > extern "C" void __attribute__ ((dllexport)) Init_fox16(void). > > then recompile it and link. Thanks! I am going to try to figure out how to add this attribute in a cross-platform way (i.e. so that adding it doesn't break the build for other compilers and OS's). From lyle at lylejohnson.name Thu Mar 12 10:30:10 2009 From: lyle at lylejohnson.name (Lyle Johnson) Date: Thu, 12 Mar 2009 09:30:10 -0500 Subject: [fxruby-users] cannot find -lXrandr during FXRuby install In-Reply-To: <459B1D0D619BB4489E412451A1D418E72E52F83EF4@ITDALEX06.it.maxim-ic.internal> References: <459B1D0D619BB4489E412451A1D418E72E52F83EF4@ITDALEX06.it.maxim-ic.internal> Message-ID: On Mar 10, 2009, at 11:23 AM, Chris Newman wrote: > I am looking for some help installing FXRuby 1.6.19 on a 64-bit > RedHat VM... Chris, Just wanted you to know that I'm not ignoring this---just haven't had a chance to look into it yet. Will try to do so this weekend. I know that with gem installs you have some degree of control, e.g. by setting CFLAGS or LDFLAGS before starting the gem installation, but I don't know that that works with this install.rb script. -- Lyle -------------- next part -------------- An HTML attachment was scrubbed... URL: From davidm at astro.berkeley.edu Thu Mar 12 13:14:22 2009 From: davidm at astro.berkeley.edu (David MacMahon) Date: Thu, 12 Mar 2009 10:14:22 -0700 Subject: [fxruby-users] FXRuby-1.6.19 don't run in ruby1.9.1 on windows. In-Reply-To: <707B116F-A0DB-42AF-954D-3D72955E7440@lylejohnson.name> References: <22451035.post@talk.nabble.com> <32D6219D-EA6A-4915-ADBD-A1F0F23EA374@lylejohnson.name> <22468445.post@talk.nabble.com> <707B116F-A0DB-42AF-954D-3D72955E7440@lylejohnson.name> Message-ID: <8FC04F38-1CD8-4702-8E92-D9B53D82C53F@astro.berkeley.edu> On Mar 12, 2009, at 6:56 , Lyle Johnson wrote: >> I change the follow line in file FXRuby.cpp >> extern "C" void Init_fox16(void) >> into >> extern "C" void __attribute__ ((dllexport)) Init_fox16(void). >> >> then recompile it and link. > > Thanks! I am going to try to figure out how to add this attribute > in a cross-platform way (i.e. so that adding it doesn't break the > build for other compilers and OS's). How/why did this work before with Ruby 1.8? Just curious, Dave From lyle at lylejohnson.name Thu Mar 12 15:00:22 2009 From: lyle at lylejohnson.name (Lyle Johnson) Date: Thu, 12 Mar 2009 14:00:22 -0500 Subject: [fxruby-users] FXRuby-1.6.19 don't run in ruby1.9.1 on windows. In-Reply-To: <8FC04F38-1CD8-4702-8E92-D9B53D82C53F@astro.berkeley.edu> References: <22451035.post@talk.nabble.com> <32D6219D-EA6A-4915-ADBD-A1F0F23EA374@lylejohnson.name> <22468445.post@talk.nabble.com> <707B116F-A0DB-42AF-954D-3D72955E7440@lylejohnson.name> <8FC04F38-1CD8-4702-8E92-D9B53D82C53F@astro.berkeley.edu> Message-ID: On Mar 12, 2009, at 12:14 PM, David MacMahon wrote: > How/why did this work before with Ruby 1.8? I don't know that it ever did. I've never tried to build with MinGW; I use Visual C++ to build FXRuby for Windows. From rmelton at ball.com Wed Mar 25 15:12:25 2009 From: rmelton at ball.com (Melton, Ryan) Date: Wed, 25 Mar 2009 13:12:25 -0600 Subject: [fxruby-users] Segmentation Fault involving FXMessageBox and sockets In-Reply-To: References: <57cf8f720902171204q732130a0ma2a6d8dccf717999@mail.gmail.com> Message-ID: <2EC28B773AF39E47850AC45765483C2C138E8B@AEROMSG2.AERO.BALL.COM> I've been experiencing a strange crash that involves using FXMessageBox, and having another thread that is interacting with a socket. Attached is the code that very quickly crashes for me after pressing the "Press Me" button. Note that the program will run forever until the MessageBox is shown. (I believe the same issue also exists with the File choosers.) My system specs: Windows XP SP2 Ruby 1.8.6 p0 FXRuby 1.6.17 Can anyone else recreate this on your system? Thanks, Ryan require 'rubygems' require 'fox16' include Fox require 'socket' require 'thread' class CrashMe < FXMainWindow def initialize (app, title) # Call the base class initializer first super(app, title) # Create a Vertical Frame for the application's contents @frame = FXVerticalFrame.new(self, LAYOUT_FILL_X|LAYOUT_FILL_Y|FRAME_SUNKEN) button = FXButton.new(@frame, "Press Me").connect(SEL_COMMAND, method(:handle_button_1)) # Create thread to accept connections Thread.new do sockets = [] #Create a socket to accept connections from clients addr = Socket.pack_sockaddr_in(9999, Socket::INADDR_ANY) listen_socket = Socket.new(Socket::AF_INET, Socket::SOCK_STREAM, 0) listen_socket.bind(addr) listen_socket.listen(5) loop do socket, address = listen_socket.accept() sockets << socket end end # Create client Thread.new do loop do socket = Socket.new(Socket::AF_INET, Socket::SOCK_STREAM, 0) addr = Socket.pack_sockaddr_in(9999, '127.0.0.1') socket.connect(addr) loop do begin socket.recvfrom_nonblock(65542) rescue => error end sleep(0.01) end end end end def handle_button_1 (sender, sel, data) FXMessageBox.warning(self, MBOX_OK, 'Warning!', 'Are you sure?') end def self.run # Make application application = FXApp.new("NA", "NA") # Make window window = self.new(application, "Title") window.show # Create the application windows application.create # Run the application application.run end # def self.run end # class CrashMe CrashMe.run This message and any enclosures are intended only for the addressee. Please notify the sender by email if you are not the intended recipient. If you are not the intended recipient, you may not use, copy, disclose, or distribute this message or its contents or enclosures to any other person and any such actions may be unlawful. Ball reserves the right to monitor and review all messages and enclosures sent to or from this email address. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lyle at lylejohnson.name Wed Mar 25 22:28:41 2009 From: lyle at lylejohnson.name (Lyle Johnson) Date: Wed, 25 Mar 2009 21:28:41 -0500 Subject: [fxruby-users] Segmentation Fault involving FXMessageBox and sockets In-Reply-To: <2EC28B773AF39E47850AC45765483C2C138E8B@AEROMSG2.AERO.BALL.COM> References: <57cf8f720902171204q732130a0ma2a6d8dccf717999@mail.gmail.com> <2EC28B773AF39E47850AC45765483C2C138E8B@AEROMSG2.AERO.BALL.COM> Message-ID: <7B90E8E5-9237-48F8-B31B-6AFBDF19C17D@lylejohnson.name> On Mar 25, 2009, at 2:12 PM, Melton, Ryan wrote: > I?ve been experiencing a strange crash that involves using > FXMessageBox, and having another thread that is interacting with a > socket. > Attached is the code that very quickly crashes for me after pressing > the ?Press Me? button. Note that the program will run forever until > the > MessageBox is shown. (I believe the same issue also exists with the > File choosers.) > > My system specs: > Windows XP SP2 > Ruby 1.8.6 p0 > FXRuby 1.6.17 > > Can anyone else recreate this on your system? Yes, I can reproduce it on OS X, using Ruby 1.8.6p237 and FXRuby 1.6.19. I've just filed a bug report and will look into it as soon as I can (though patches are welcome, as always!) -------------- next part -------------- An HTML attachment was scrubbed... URL: From stuart_clarke86 at yahoo.com Mon Mar 30 05:55:33 2009 From: stuart_clarke86 at yahoo.com (Stuart Clarke) Date: Mon, 30 Mar 2009 09:55:33 +0000 (GMT) Subject: [fxruby-users] Data formating - Text Frame Message-ID: <277804.60795.qm@web86603.mail.ird.yahoo.com> Hello all, I have a quick query regarding the output of data to an FXTextFrame. Currently I have an FXHeader with several headers in it and below it I have a text frame where data is output to. The output of data has not real formatting at the moment. Each field of data is seperated by a tab character in an array, which has join("\n") called on it to get it onto the GUI. This outputs the data in a messy manner as some strings in the fields are longer than other etc. Is there a way to say everything under heading A must not exceed 75 chars giving a nice structured list in columns. Each of my headings have set sizes but the text frame is just a text frame. Is this something that would need to be set in the array as the data is loaded into it? Or is there something simple I can do in the GUI. Effectivly I want an output like this: HEADING 1 HEADING 2 HEADING 3 QWERTYUIOP ASDFGHJK DFGHJKLHJ FG DFGHJKL SDFGHDFGHJK DFGH G SDFGHJKL At the moment I get something like this: HEADING 1 HEADING 2 HEADING 3 QWERTYUIOP ASDFGHJK DFGHJKLHJ FG DFGHJKL SDFGHDFGHJK DFGH G SDFGHJKL The latter is not very nice. Thanks in advance for your help. Kind regards Stuart From lyle at lylejohnson.name Mon Mar 30 08:15:04 2009 From: lyle at lylejohnson.name (Lyle Johnson) Date: Mon, 30 Mar 2009 07:15:04 -0500 Subject: [fxruby-users] Data formating - Text Frame In-Reply-To: <277804.60795.qm@web86603.mail.ird.yahoo.com> References: <277804.60795.qm@web86603.mail.ird.yahoo.com> Message-ID: <41C5FDED-6B6A-4115-9826-1EE57A6DAFA9@lylejohnson.name> On Mar 30, 2009, at 4:55 AM, Stuart Clarke wrote: > Is there a way to say everything under heading A must not exceed 75 > chars giving a nice structured list in columns. Each of my headings > have set sizes but the text frame is just a text frame. Is this > something that would need to be set in the array as the data is > loaded into it? Or is there something simple I can do in the GUI. It's a combination of the two, sort of. You will probably want to choose a fixed-width font for the FXText widget, and then format the text (i.e. your data array) such that each column's content doesn't exceed the width of the headers. From stuart_clarke86 at yahoo.com Mon Mar 30 10:28:52 2009 From: stuart_clarke86 at yahoo.com (Stuart Clarke) Date: Mon, 30 Mar 2009 14:28:52 +0000 (GMT) Subject: [fxruby-users] Data formating - Text Frame In-Reply-To: <41C5FDED-6B6A-4115-9826-1EE57A6DAFA9@lylejohnson.name> Message-ID: <550468.9518.qm@web86610.mail.ird.yahoo.com> Thanks for your reply. I am afraid I am not to sure what you mean. When you push data to an array I wasn't aware you can set its size. Would you mind giving me an example or a link to find more info on both matters? Many thanks --- On Mon, 30/3/09, Lyle Johnson wrote: > From: Lyle Johnson > Subject: Re: [fxruby-users] Data formating - Text Frame > To: fxruby-users at rubyforge.org > Date: Monday, 30 March, 2009, 1:15 PM > On Mar 30, 2009, at 4:55 AM, Stuart Clarke wrote: > > > Is there a way to say everything under heading A must > not exceed 75 chars giving a nice structured list in > columns. Each of my headings have set sizes but the text > frame is just a text frame. Is this something that would > need to be set in the array as the data is loaded into it? > Or is there something simple I can do in the GUI. > > It's a combination of the two, sort of. You will > probably want to choose a fixed-width font for the FXText > widget, and then format the text (i.e. your data array) such > that each column's content doesn't exceed the width > of the headers. > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users From stuart_clarke86 at yahoo.com Tue Mar 31 11:18:22 2009 From: stuart_clarke86 at yahoo.com (Stuart Clarke) Date: Tue, 31 Mar 2009 15:18:22 +0000 (GMT) Subject: [fxruby-users] Data formating - Text Frame In-Reply-To: <41C5FDED-6B6A-4115-9826-1EE57A6DAFA9@lylejohnson.name> Message-ID: <36420.41388.qm@web86607.mail.ird.yahoo.com> I have just noticed FXList and have added this to my GUI. It is possible to break my array down to fit into this list structure using appendItem? Many thanks Stuart --- On Mon, 30/3/09, Lyle Johnson wrote: > From: Lyle Johnson > Subject: Re: [fxruby-users] Data formating - Text Frame > To: fxruby-users at rubyforge.org > Date: Monday, 30 March, 2009, 1:15 PM > On Mar 30, 2009, at 4:55 AM, Stuart Clarke wrote: > > > Is there a way to say everything under heading A must > not exceed 75 chars giving a nice structured list in > columns. Each of my headings have set sizes but the text > frame is just a text frame. Is this something that would > need to be set in the array as the data is loaded into it? > Or is there something simple I can do in the GUI. > > It's a combination of the two, sort of. You will > probably want to choose a fixed-width font for the FXText > widget, and then format the text (i.e. your data array) such > that each column's content doesn't exceed the width > of the headers. > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users From lyle at lylejohnson.name Tue Mar 31 12:32:30 2009 From: lyle at lylejohnson.name (Lyle Johnson) Date: Tue, 31 Mar 2009 11:32:30 -0500 Subject: [fxruby-users] Data formating - Text Frame In-Reply-To: <36420.41388.qm@web86607.mail.ird.yahoo.com> References: <41C5FDED-6B6A-4115-9826-1EE57A6DAFA9@lylejohnson.name> <36420.41388.qm@web86607.mail.ird.yahoo.com> Message-ID: <57cf8f720903310932l25fe6c3m2e728d0751d67da7@mail.gmail.com> On Tue, Mar 31, 2009 at 10:18 AM, Stuart Clarke wrote: > I have just noticed FXList and have added this to my GUI. > It is possible to break my array down to fit into this list structure using appendItem? You are the only person who can answer this question. If you have a list of items that you'd like to display, so that the user can pick one or more items from that list, then yes, you might want to use FXList. Based on your earlier e-mail, it sort-of looked like you were trying to display tabular data (i.e. multiple rows and columns). If that's the case, you might want to use FXTable instead. From stuart_clarke86 at yahoo.com Tue Mar 31 13:13:47 2009 From: stuart_clarke86 at yahoo.com (Stuart Clarke) Date: Tue, 31 Mar 2009 17:13:47 +0000 (GMT) Subject: [fxruby-users] Data formating - Text Frame In-Reply-To: <57cf8f720903310932l25fe6c3m2e728d0751d67da7@mail.gmail.com> Message-ID: <856391.45506.qm@web86612.mail.ird.yahoo.com> I will explain a bit about how the program works. Using the GUI log files processed and line by line they are loaded into an array structure. I have broken this down into many array because one line that is pushed to the array as many pieces of data in it, below is an example line A B C D E F Now i have 6 different arrays, one a, one b and so on. I also have 6 different list areas on my GUI and I want my data to output to those lists, for example list[0].appendItem(arrayA) list[1].appendItem(arrayB) This however fails and gives a nasty error FYI before trying to append an item I call join("\n") on the data set and load the resulting data into a final array set which I want to add to the list. Does this make sense? Many thanks --- On Tue, 31/3/09, Lyle Johnson wrote: > From: Lyle Johnson > Subject: Re: [fxruby-users] Data formating - Text Frame > To: fxruby-users at rubyforge.org > Date: Tuesday, 31 March, 2009, 5:32 PM > On Tue, Mar 31, 2009 at 10:18 AM, Stuart Clarke > wrote: > > > I have just noticed FXList and have added this to my > GUI. > > It is possible to break my array down to fit into this > list structure using appendItem? > > You are the only person who can answer this question. If > you have a > list of items that you'd like to display, so that the > user can pick > one or more items from that list, then yes, you might want > to use > FXList. Based on your earlier e-mail, it sort-of looked > like you were > trying to display tabular data (i.e. multiple rows and > columns). If > that's the case, you might want to use FXTable instead. > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users