From bdezonia at wisc.edu Tue Jan 4 13:04:51 2005 From: bdezonia at wisc.edu (DeZonia, Barry) Date: Tue Jan 4 13:02:53 2005 Subject: [fxruby-users] FxRuby 1.2.2 and earlier: various FxFileDialog errors In-Reply-To: <1D49866B-534B-11D9-A938-000A958408D2@knology.net> Message-ID: <016701c4f287$e2fb6710$b0c65c90@forecol.wisc.edu> I've been porting my FxRuby 1.0.28 app to 1.2.2 and I've come across a number of errors. Fatal runtime error Using the FXFileDialog attribute "filenames" results in a method not found error when it is invoked. This is true for both FxRuby 1.2.2 and 1.0.28. This is especially problematic as the only way to get the filenames out of the dialog that I can find is to use a class member other than new as the constructor (such as getOpenFilenames) which results in diminished functionality (e.g. you can't remember and use the last directory and pattern specified by the user) since getOpenFilenames returns an array of selected files. Runtime error with workaround When you specify the path in getOpenFilenames as a directory the dialog starts one directory up. For instance, if you specify c:\images\8bit as the directory you want to show it shows c:\images instead and selects 8bit in the file field. This can be worked around by making sure the path you pass in ends in "/" or "\". Documentation errors getOpenFilenames, getOpenDirectory, getOpenFilename, and getSaveFilename don't specify what they return. The parameter "initial" passed to three of them has no description and is too opaque for me to figure out what it is. From bdezonia at wisc.edu Tue Jan 4 16:00:49 2005 From: bdezonia at wisc.edu (DeZonia, Barry) Date: Tue Jan 4 15:58:53 2005 Subject: [fxruby-users] RadioButtons not working right in FxRuby 1.2.2? In-Reply-To: <016701c4f287$e2fb6710$b0c65c90@forecol.wisc.edu> Message-ID: <017301c4f2a0$782f6e40$b0c65c90@forecol.wisc.edu> When I run my own app, as well as button.rb from the examples subdirectory, the RadioButtons within a GroupBox are not deselecting the previous choice and once toggled on will not toggle off. Is anyone else seeing this? I'm using FxRuby 1.2.2 that shipped with the one click Windows installer Ruby 1.8.2 final. From lyle at knology.net Tue Jan 4 16:14:01 2005 From: lyle at knology.net (lyle@knology.net) Date: Tue Jan 4 16:12:04 2005 Subject: [fxruby-users] RadioButtons not working right in FxRuby 1.2.2? In-Reply-To: <> References: <> Message-ID: <20050104211401.12206.qmail@webmail3.knology.net> On Tue, 04 Jan 2005 15:00:49 -0600, "DeZonia, Barry" wrote : > When I run my own app, as well as button.rb from the examples subdirectory, > the RadioButtons within a GroupBox are not deselecting the previous choice > and once toggled on will not toggle off. Is anyone else seeing this? Yes. I thought that someone had submitted a bug report but I don't see it in the list. But the example needs to be updated to conform to the new radio buttons behavior for FOX 1.2, which is described here: http://www.knology.net/~lyle/fox/1.2/apichanges.radiobutton.html Hope this helps, Lyle From vjoel at PATH.Berkeley.EDU Tue Jan 4 18:56:08 2005 From: vjoel at PATH.Berkeley.EDU (Joel VanderWerf) Date: Tue Jan 4 18:54:05 2005 Subject: [fxruby-users] RadioButtons not working right in FxRuby 1.2.2? In-Reply-To: <017301c4f2a0$782f6e40$b0c65c90@forecol.wisc.edu> References: <017301c4f2a0$782f6e40$b0c65c90@forecol.wisc.edu> Message-ID: <41DB2D18.5050105@path.berkeley.edu> DeZonia, Barry wrote: > When I run my own app, as well as button.rb from the examples subdirectory, > the RadioButtons within a GroupBox are not deselecting the previous choice > and once toggled on will not toggle off. Is anyone else seeing this? > > I'm using FxRuby 1.2.2 that shipped with the one click Windows installer > Ruby 1.8.2 final. You can use data targets, since GroupBox no longer imposes this functionality. Advertisement: You can also use FoxTails (on RAA), which has its own targeting mechansim that you may feel is more ruby-like. The current version of FoxTails has a "field" construct, a new layer on top of the targeting mechanism, which makes this even simpler, almost like scanf: class FieldsWindow < FXMainWindow include FTField observable :my_radio def initialize(*args) # ... self.my_radio = 2 field("%r radio one %r radio two %r radio three", [:my_radio, 1], [:my_radio, 2], [:my_radio, 3]) That's all it takes to have three radio buttons on a line, all tied into the same variable, my_radio, which takes the values 1,2 and 3 depending on the button pressed. The fields don't have be on the same line, and there are other options like %v for a checkbox, %f (and %6.2f etc) for float, %m for a pop-up option menu to select from an array of objects, %s for string, %d for int, etc. Since the variable is "observable", you can attach blocks of code ("observers") that are triggered when its value changes, so you can keep other controls and views consistent. The field string can also include a %| specifier to make things line up inside a FXMatrix. You can also attach blocks of code for input validation. See examples/fields.rb for, well, examples. The catch? FoxTails was designed for Fox 1.0, though I am using it with 1.2 by defining some extra methods that convert argument lists, define aliases, and so on--just enough of a 1.0/1.2 compatibility layer to make FoxTails work. I can send that "dynamic patch" file to anyone who is interested. The next release will either include the patch (to support both 1.0 and 1.2) or support only 1.2. From vjoel at PATH.Berkeley.EDU Tue Jan 4 19:02:11 2005 From: vjoel at PATH.Berkeley.EDU (Joel VanderWerf) Date: Tue Jan 4 19:00:09 2005 Subject: [fxruby-users] patch for FXHeaderItem#justification= in FXRuby 1.2 Message-ID: <41DB2E83.60501@path.berkeley.edu> On the subject of 1.2, here's a patch to fix a "method missing" error when using FXHeaderItem#justification=. --- aliases.rb.bck 2004-12-30 17:33:34.376851376 -0500 +++ aliases.rb 2004-12-30 17:33:34.379850872 -0500 @@ -2048,7 +2048,7 @@ getJustify() end def justification=(j) # :nodoc: - setJustification(j) + setJustify(j) end def iconPosition # :nodoc: getIconPosition() From vjoel at PATH.Berkeley.EDU Fri Jan 7 15:12:35 2005 From: vjoel at PATH.Berkeley.EDU (Joel VanderWerf) Date: Fri Jan 7 15:10:24 2005 Subject: [fxruby-users] patch for tooltipPause alias in 1.2 Message-ID: <41DEED33.3000400@path.berkeley.edu> The tooltipPause(*args) reader is missing. --- lib/fox12/aliases.rb.bck 2005-01-07 12:11:14.440755160 -0800 +++ lib/fox12/aliases.rb 2005-01-07 12:11:14.462751419 -0800 @@ -152,6 +152,9 @@ def menuPause=(*args) # :nodoc: setMenuPause(*args) end + def tooltipPause(*args) # :nodoc: + getTooltipPause(*args) + end def tooltipPause=(*args) # :nodoc: setTooltipPause(*args) end From dwerder at gmx.net Sat Jan 8 07:38:22 2005 From: dwerder at gmx.net (Dominik Werder) Date: Sat Jan 8 07:34:21 2005 Subject: [fxruby-users] TABLE_ROW_SIZABLE Message-ID: Hello! While using FXTable I can't figure out how to prevent the user from resizing the rows. I don't pass the TABLE_ROW_SIZABLE flag: class MyTable < FXTable def initialize p super p, nil, 0, TABLE_COL_SIZABLE| LAYOUT_FILL_X|LAYOUT_FILL_Y setCellColor 0, 0, FXRGB(230,230,255) setCellColor 0, 1, FXRGB(235,235,255) setCellColor 1, 0, FXRGB(240,240,255) setCellColor 1, 1, FXRGB(245,245,255) end end I'm using fox12 Thank you for reading!! Dominik From vjoel at PATH.Berkeley.EDU Sun Jan 9 16:02:58 2005 From: vjoel at PATH.Berkeley.EDU (Joel VanderWerf) Date: Sun Jan 9 16:01:00 2005 Subject: [fxruby-users] missing doc for FXToolTabBar Message-ID: <41E19C02.2010309@path.berkeley.edu> Does it exist somewhere? If not, it should be pretty easy to add to rdoc-sources... I'll do it unless I hear from someone that it's already done. From vjoel at PATH.Berkeley.EDU Sun Jan 9 16:38:24 2005 From: vjoel at PATH.Berkeley.EDU (Joel VanderWerf) Date: Sun Jan 9 16:36:18 2005 Subject: [fxruby-users] making FXRuby docs Message-ID: <41E1A450.7020209@path.berkeley.edu> For posterity, here's some tips for generating FXRuby rdocs (html and ri). To make the html docs: $ rdoc -o doc/api -t "FXRuby 1.2" -m rdoc-sources/README.rdoc rdoc-sources/*.rb rdoc-sources/README.rdoc lib/fox12/*.rb To make ri docs in the usual place for installed 3rd party libs: $ su # rdoc -R rdoc-sources/*.rb lib/fox12/*.rb Or if you prefer to keep the ri docs in your own home dir: $ rdoc -r rdoc-sources/*.rb lib/fox12/*.rb Note that the lib/fox12 stuff comes last so that superclass info is correct. From lyle at knology.net Sun Jan 9 18:24:24 2005 From: lyle at knology.net (Lyle Johnson) Date: Sun Jan 9 18:28:53 2005 Subject: [fxruby-users] missing doc for FXToolTabBar In-Reply-To: <41E19C02.2010309@path.berkeley.edu> References: <41E19C02.2010309@path.berkeley.edu> Message-ID: <98F8C0C0-6295-11D9-BCA5-000A958408D2@knology.net> On Jan 9, 2005, at 3:02 PM, Joel VanderWerf wrote: > Does it exist somewhere? If not, it should be pretty easy to add to > rdoc-sources... I'll do it unless I hear from someone that it's > already done. Huh, I guess that one never got added; I don't even see it in the rdoc-sources for FXRuby 1.0. If you'd like to knock this one out, that would be great, otherwise I'll add it to the list of things to do... From riccardo at fisica.uniud.it Mon Jan 10 10:31:37 2005 From: riccardo at fisica.uniud.it (Riccardo Giannitrapani) Date: Mon Jan 10 10:25:41 2005 Subject: [fxruby-users] Help widget: suggestion? In-Reply-To: <98F8C0C0-6295-11D9-BCA5-000A958408D2@knology.net> References: <41E19C02.2010309@path.berkeley.edu> <98F8C0C0-6295-11D9-BCA5-000A958408D2@knology.net> Message-ID: Dear all FXRuby users I'm writing to ask for a suggestion; I need to display some documentation in my FXRuby application for the user, nothing particularly complicate .. till now my solution was to generate HTML pages and than, from the GUI, to start a browser to load that HTML pages .. on windows this is quite easy ('start doc\\index.html' or something like this), while on Linux I've found around some code (in the FOX community page) to guess the browser installed (Mozilla, Firefox, whatever) .. now, althought this is working, I'm wondering if I really need to start an external application for my user help .. I've seen in the examples of FXruby (the texteditor) that help is shown as a simple dialog with text inside .. just wondering is someone has worked on this and end up with some nice widgets and/or suggestions .. Thanks to all, Riccardo :) -- Riccardo Giannitrapani Dipartimento di Fisica - Room L1-14-BE Universita` di Udine - Via delle Scienze, 206 Udine (Italy) Tel (Office): +39-0432-558209 Home Page: http://www.fisica.uniud.it/~riccardo ICQ# 86590904 From bdezonia at wisc.edu Mon Jan 10 12:10:12 2005 From: bdezonia at wisc.edu (DeZonia, Barry) Date: Mon Jan 10 12:08:16 2005 Subject: [fxruby-users] Help widget: suggestion? In-Reply-To: Message-ID: <01ed01c4f737$3ed20630$b0c65c90@forecol.wisc.edu> I've made a very simple (and Spartan) help dialog using the following code: # sentences : an array of strings def displayHelp(sentences) w = 600 h = 400 centerX = self.x + (self.width/2) centerY = self.y + (self.height/2) originX = centerX-(w/2) originY = centerY-(h/2) dialog = FXDialogBox.new(@app,"Help",DECOR_ALL,originX,originY,w,h) #dialog.icon = @miniIcon outFrame = FXVerticalFrame.new(dialog,LAYOUT_FILL_X|LAYOUT_FILL_Y) topFrame = FXHorizontalFrame.new(outFrame,LAYOUT_FILL_X|LAYOUT_FILL_Y) bottomFrame = FXHorizontalFrame.new(outFrame,LAYOUT_CENTER_X) #list = FXList.new(topFrame,15,nil,0,LAYOUT_FILL_X) list = FXList.new(topFrame,nil,0,LAYOUT_FILL_X|LAYOUT_FILL_Y) list.font = FXFont.new(@app, "helvetica", 10, FONTWEIGHT_DEMIBOLD) button= FXButton.new(bottomFrame,"OK",nil,dialog,FXDialogBox::ID_ACCEPT) sentences.each { | sentence | list.appendItem(sentence) } dialog.show dialog.execute end -----Original Message----- From: fxruby-users-bounces@rubyforge.org [mailto:fxruby-users-bounces@rubyforge.org] On Behalf Of Riccardo Giannitrapani Sent: Monday, January 10, 2005 9:32 AM To: fxruby-users@rubyforge.org Subject: [fxruby-users] Help widget: suggestion? Dear all FXRuby users I'm writing to ask for a suggestion; I need to display some documentation in my FXRuby application for the user, nothing particularly complicate .. till now my solution was to generate HTML pages and than, from the GUI, to start a browser to load that HTML pages .. on windows this is quite easy ('start doc\\index.html' or something like this), while on Linux I've found around some code (in the FOX community page) to guess the browser installed (Mozilla, Firefox, whatever) .. now, althought this is working, I'm wondering if I really need to start an external application for my user help .. I've seen in the examples of FXruby (the texteditor) that help is shown as a simple dialog with text inside .. just wondering is someone has worked on this and end up with some nice widgets and/or suggestions .. Thanks to all, Riccardo :) -- Riccardo Giannitrapani Dipartimento di Fisica - Room L1-14-BE Universita` di Udine - Via delle Scienze, 206 Udine (Italy) Tel (Office): +39-0432-558209 Home Page: http://www.fisica.uniud.it/~riccardo ICQ# 86590904 _______________________________________________ fxruby-users mailing list fxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/fxruby-users From vjoel at PATH.Berkeley.EDU Mon Jan 10 23:47:14 2005 From: vjoel at PATH.Berkeley.EDU (Joel VanderWerf) Date: Mon Jan 10 23:45:05 2005 Subject: [fxruby-users] Help widget: suggestion? In-Reply-To: References: <41E19C02.2010309@path.berkeley.edu> <98F8C0C0-6295-11D9-BCA5-000A958408D2@knology.net> Message-ID: <41E35A52.30804@path.berkeley.edu> Riccardo Giannitrapani wrote: > Dear all FXRuby users > > I'm writing to ask for a suggestion; I need to display some > documentation in my FXRuby application for the user, nothing > particularly complicate .. till now my solution was to generate HTML > pages and than, from the GUI, to start a browser to load that HTML > pages .. on windows this is quite easy ('start doc\\index.html' or > something like this), while on Linux I've found around some code (in > the FOX community page) to guess the browser installed (Mozilla, > Firefox, whatever) .. now, althought this is working, I'm wondering if > I really need to start an external application for my user help .. I've > seen in the examples of FXruby (the texteditor) that help is shown as a > simple dialog with text inside .. just wondering is someone has worked > on this and end up with some nice widgets and/or suggestions .. In the app I'm currently working on, there are two things for help. There is a quick "tip" window (attached) for short info. It's just FXText in tabs, run as a non-modal dlg. For more details, I have buttons and menus that link to web pages. On non-windows platforms, I make the user select a browser the first time, and store that in preferences. It would be nice to have a polished bunch of FXRuby widgets for help. -------------- next part -------------- class TipWindow < FXDialogBox TIP_DATA = [ [ "&General", "\ * These tips cover the operation of the program rather than the significance of the simulation objects. See the detailed model documents for that information. * You can copy text out of this tip window, and you can leave the window open while you work. " ], [ "Getting &Help", "\ * Hover the mouse over certain widgets (such as buttons, menu items, and fields) for short help messages. The help messages appear as text in the status line at the bottom of the current window and, in some cases, as floating windows near the mouse pointer. * Dialog boxes have help buttons for more detailed help. * The Help menu and buttons link to the HTML documents included with EvalTool. " ], [ "&Editing", "\ " ], [ "&Files", "\ " ], [ "&Mouse", "\ " ], [ "&Keyboard", "\ " ], [ "&Dialogs", "\ " ], [ "&Plot", "\ " ], [ "&Advanced", "\ " ], ] class TipItem def initialize(tabbook, caption, icon = nil, text = "", font = nil) tab = FXTabItem.new(tabbook, caption, icon, TAB_LEFT_NORMAL) body = FXHorizontalFrame.new(tabbook, FRAME_THICK|FRAME_RAISED) @textbox = FXText.new(body, nil, 0, LAYOUT_FILL_X|LAYOUT_FILL_Y) @textbox.editable = false @textbox.font = font if font @textbox.text = text end end ## should centralize fonts and have font prefs def tip_font @tip_font ||= FXFont.new(getApp(), "courier", 9) ##, FONTWEIGHT_BOLD) end def initialize(owner) super(owner, "EvalTool Tips", DECOR_ALL) register_pref_key "dialogs/tips" register_pref_var :x => 100, :y => 100, :height => 200, :width => 550 self.padLeft = self.padTop = self.padBottom = self.padRight = 2 tabbook = FXTabBook.new(self, nil, 0, LAYOUT_FILL_X|LAYOUT_FILL_Y) tabbook.tabStyle = TABBOOK_LEFTTABS TIP_DATA.each do |caption, text| TipItem.new(tabbook, caption, nil, text.tabto(0), tip_font) end end end From riccardo at fisica.uniud.it Tue Jan 11 09:30:52 2005 From: riccardo at fisica.uniud.it (Riccardo Giannitrapani) Date: Tue Jan 11 09:24:54 2005 Subject: [fxruby-users] Help widget: suggestion? In-Reply-To: <41E35A52.30804@path.berkeley.edu> References: <41E19C02.2010309@path.berkeley.edu> <98F8C0C0-6295-11D9-BCA5-000A958408D2@knology.net> <41E35A52.30804@path.berkeley.edu> Message-ID: Hi to all thanks for replies and suggestions :) Riccardo On Mon, 10 Jan 2005 20:47:14 -0800, Joel VanderWerf wrote: > Riccardo Giannitrapani wrote: >> Dear all FXRuby users >> >> I'm writing to ask for a suggestion; I need to display some >> documentation in my FXRuby application for the user, nothing >> particularly complicate .. till now my solution was to generate HTML >> pages and than, from the GUI, to start a browser to load that HTML >> pages .. on windows this is quite easy ('start doc\\index.html' or >> something like this), while on Linux I've found around some code (in >> the FOX community page) to guess the browser installed (Mozilla, >> Firefox, whatever) .. now, althought this is working, I'm wondering if >> I really need to start an external application for my user help .. I've >> seen in the examples of FXruby (the texteditor) that help is shown as a >> simple dialog with text inside .. just wondering is someone has worked >> on this and end up with some nice widgets and/or suggestions .. > > In the app I'm currently working on, there are two things for help. > There is a quick "tip" window (attached) for short info. It's just > FXText in tabs, run as a non-modal dlg. > > For more details, I have buttons and menus that link to web pages. On > non-windows platforms, I make the user select a browser the first time, > and store that in preferences. > > It would be nice to have a polished bunch of FXRuby widgets for help. -- Riccardo Giannitrapani Dipartimento di Fisica - Room L1-14-BE Universita` di Udine - Via delle Scienze, 206 Udine (Italy) Tel (Office): +39-0432-558209 Home Page: http://www.fisica.uniud.it/~riccardo ICQ# 86590904 From dragoncity at impulse.net.au Tue Jan 11 20:37:32 2005 From: dragoncity at impulse.net.au (dragoncity) Date: Tue Jan 11 18:18:30 2005 Subject: [fxruby-users] Help widget: suggestion? In-Reply-To: References: <41E19C02.2010309@path.berkeley.edu> <98F8C0C0-6295-11D9-BCA5-000A958408D2@knology.net> Message-ID: <200501111737.32865.dragoncity@impulse.net.au> Riccardo, I found this was an easy way to show a 'help' dialog, the "formatting" is done via simple "\n" (new line) and "+" char to continue with the Message. It displays a dialog message , waits till OK button pressed , then continues. Cheers, Brett # ======================================================= # H E L P # ======================================================= pushbutton4= FXButton.new(btnRow,'Help' ,nil, nil, 0, BUTTON_NORMAL| JUSTIFY_RIGHT ) pushbutton4.connect(SEL_COMMAND) do |sender, sel, checked| # ## your button press code here ## @statusbar.getStatusLine.setNormalText('Show Help ') FXMessageBox.information(self, MBOX_OK, "Rough Guide to #{SpamBGone} ", " #{SpamBGone}#{SpamVersion} Copyright Brett S Hallett (c)2003 : dragoncity@impulse.net.au " + " \n \n" + "To use #{SpamBGone} you must firstly have a Internet address with a Internet Service Provider\n" + "and be connected,\n Spam-B-Gone then reads all your mail header info (does not read the mail)\n" + "the headers are displayed to you in a table layout, you then 'tick' the mail you wish to be deleted \n" + "on your ISP's computer \n"+ " \n" + "--> click 'Check Mail' to read the mail headers \n"+ " \n" + "now 'click' in the row of the Delete? column any mail you wish to have deleted, \n" + "the text 'delete' will appear, you may 're-click' to reset. \n" + " \n" + "--> click 'Process Deletes' to have the selected mail deleted \n"+ " \n" + "--> if you 'Quit' without clicking 'Process Mail' the selected mail is NOT deleted \n" + " \n" + "#{SpamBGone} does not retain any information about your mail.\n" + " \n" + "Now collect your mail using your usual E-mail program. \n" + "--> click 'Call Mail' to start your Email program (defaults to Kmail) \n"+ "\n") @statusbar.getStatusLine.setNormalText('') end # pushbutton4 > Dear all FXRuby users > > I'm writing to ask for a suggestion; I need to display some documentation > in my FXRuby application for the user, nothing particularly complicate .. > till now my solution was to generate HTML pages and than, from the GUI, to > start a browser to load that HTML pages .. on windows this is quite easy > ('start doc\\index.html' or something like this), while on Linux I've > found around some code (in the FOX community page) to guess the browser > installed (Mozilla, Firefox, whatever) .. now, althought this is working, > I'm wondering if I really need to start an external application for my > user help .. I've seen in the examples of FXruby (the texteditor) that > help is shown as a simple dialog with text inside .. just wondering is > someone has worked on this and end up with some nice widgets and/or > suggestions .. > > Thanks to all, Riccardo :) -- Cheers, Brett S Hallett From bdezonia at wisc.edu Wed Jan 19 14:30:56 2005 From: bdezonia at wisc.edu (DeZonia, Barry) Date: Wed Jan 19 14:28:23 2005 Subject: [fxruby-users] FXFileDialog.getOpenFilenames() question Message-ID: <032601c4fe5d$6603b870$b0c65c90@forecol.wisc.edu> FxRuby 1.2.2 on Windows with Ruby 1.8.2 I'm using FXFileDialog.getOpenFilenames() passing nil for the path and I'm having a little difficulty. Specifically how does getOpenFilenames determine the initial path to use when nil is passed in? On my system its defaulting to a path it somehow chose with the long name "c:\InputTestFiles" replaced with the DOS short name "c:\INPUTT~1". This causes problems with my app. (Note that C:\InputTestFiles is a directory on my system) On a related note I've seen FxRuby/FOX sometimes replace full paths from FXFileDialog with DOS shortened paths. Any ideas why? From lyle at knology.net Wed Jan 19 14:46:28 2005 From: lyle at knology.net (lyle@knology.net) Date: Wed Jan 19 14:49:03 2005 Subject: [fxruby-users] FXFileDialog.getOpenFilenames() question In-Reply-To: <> References: <> Message-ID: <20050119194628.21978.qmail@webmail1.knology.net> On Wed, 19 Jan 2005 13:30:56 -0600, "DeZonia, Barry" wrote : > I'm using FXFileDialog.getOpenFilenames() passing nil for the path and I'm > having a little difficulty. Specifically how does getOpenFilenames determine > the initial path to use when nil is passed in? On my system its defaulting > to a path it somehow chose with the long name "c:\InputTestFiles" replaced > with the DOS short name "c:\INPUTT~1". This causes problems with my app. > (Note that C:\InputTestFiles is a directory on my system) > > On a related note I've seen FxRuby/FOX sometimes replace full paths from > FXFileDialog with DOS shortened paths. Any ideas why? I will need to dig into the C++ source code for FOX to answer these questions (unless you want to try posing the questions over on the FOX mailing list). That is to say, these behaviors are defined by the FOX library itself and not directly related to the FXRuby binding. My hunch for the first question is that it defaults to the process' current working directory (i.e. perhaps you started the Ruby interpreter in the C:\InputTestFiles" directory, or changed directories to that directory?). From jeroen at fox-toolkit.org Wed Jan 19 13:55:27 2005 From: jeroen at fox-toolkit.org (Jeroen van der Zijp) Date: Wed Jan 19 14:53:38 2005 Subject: [fxruby-users] FXFileDialog.getOpenFilenames() question In-Reply-To: <032601c4fe5d$6603b870$b0c65c90@forecol.wisc.edu> References: <032601c4fe5d$6603b870$b0c65c90@forecol.wisc.edu> Message-ID: <200501191355.27310.jeroen@fox-toolkit.org> On Wednesday 19 January 2005 02:30 pm, DeZonia, Barry wrote: > > FxRuby 1.2.2 on Windows with Ruby 1.8.2 > > I'm using FXFileDialog.getOpenFilenames() passing nil for the path and I'm > having a little difficulty. Specifically how does getOpenFilenames determine > the initial path to use when nil is passed in? On my system its defaulting If the filename is NULL or "", the current working directory is used to construct the absolute path. > to a path it somehow chose with the long name "c:\InputTestFiles" replaced > with the DOS short name "c:\INPUTT~1". This causes problems with my app. > (Note that C:\InputTestFiles is a directory on my system) Are you running old VFAT filesystem? NTFS should have no problems... > On a related note I've seen FxRuby/FOX sometimes replace full paths from > FXFileDialog with DOS shortened paths. Any ideas why? This is probably a VFAT peculiarity. It does not happen on NTFS as far as I know. At any rate, FOX itself does not "violate" the filenames this way. Some system call inside Windows must be doing this. - Jeroen From lyle at knology.net Sun Jan 23 18:51:00 2005 From: lyle at knology.net (Lyle Johnson) Date: Sun Jan 23 18:48:00 2005 Subject: [fxruby-users] [ANN] FXRuby 1.2.3 Now Available Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 All, The latest version of FXRuby 1.2 is now available for download here: http://rubyforge.org/frs/?group_id=300 There have been a large number of changes for this release; for a complete list, see: http://www.fxruby.org/doc/changes.html Due to health concerns in the fall and other issues, it has been much too long since the last release. I hope to make another FXRuby release shortly to clean up some of the remaining known bugs. For reference, the bug list can be found here: http://rubyforge.org/tracker/?atid=1223&group_id=300&func=browse The code is provided in several formats: as a source tarball; a source Gem; a binary Gem (for Windows) based on the latest One-Click Ruby Installer (from http://rubyinstaller.rubyforge.org); and a traditional installer (like the one-click installer), also compatible with the latest One-Click Installer for Ruby. Enjoy, Lyle -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin) iD8DBQFB9DhlFXV/hD6oMd0RAqb7AKCYAD4SlD1HQC8brxfv2s3AjG/kcwCgoKQF YwBmUhfruTU1YLU4siQYmd4= =mPc9 -----END PGP SIGNATURE----- From lyle at knology.net Tue Jan 25 17:43:35 2005 From: lyle at knology.net (lyle@knology.net) Date: Tue Jan 25 17:40:48 2005 Subject: [fxruby-users] Re: FXRuby does not compile In-Reply-To: <> References: <> Message-ID: <20050125224335.4190.qmail@webmail2.knology.net> On Tue, 25 Jan 2005 16:20:46 -0500, William Ramsay wrote : > The latest version of FXRuby downloaded from Gentoo does not compile. > The error is: > > FXRuby.cpp:64: error: declaration of C function `void > st_foreach(st_table*, int > (*)(char*, char*, char*), char*)' conflicts with > /usr/lib/ruby/1.8/i686-linux/intern.h:249: error: previous declaration > `void > st_foreach(st_table*, int (*)(), long unsigned int)' here > > This is for Ruby 1.8 and happens both in FXRuby 1.0.25 (Gentoo latest) > and FXRuby 1.2.2. This sounds like one of the known bugs on the FXRuby bug list: http://rubyforge.org/tracker/index.php?func=detail&aid=1039&group_id=300&atid=1223 I assumed this bug had been fixed in the final release of Ruby 1.8.2 since I did *not* encounter this error when compiling FXRuby 1.2.3 on Mac OS X and Windows. Are you building against Ruby 1.8.2 final, or is it one of the preview releases? From lyle at knology.net Wed Jan 26 16:47:59 2005 From: lyle at knology.net (lyle@knology.net) Date: Wed Jan 26 16:45:11 2005 Subject: [fxruby-users] Re: FXRuby under Gentoo In-Reply-To: <> References: <> Message-ID: <20050126214759.4390.qmail@webmail3.knology.net> On Wed, 26 Jan 2005 16:21:10 -0500, William Ramsay wrote : > Thanks... I was able to do some more research on this problem today and updated the bug report accordingly: http://rubyforge.org/tracker/index.php?func=detail&aid=1039&group_id=300&atid=1223 See my latest comment on this one, which is the first entry under the "Followup" section that appears towards the bottom of the page. I am pretty sure that, since you're seeing this error message at compile time, you are in fact using one of the preview releases of Ruby 1.8.2 and not the final release; the declaration that the compiler's complaining about doesn't appear in the include files for the final 1.8.2 release. But that's a moot point: There is still a problem since they've changed the call sequence for the function in question (st_foreach). So I still need to figure out what to do about this -- more to the point, is there some change I can make that fixes it for Ruby 1.8.2 that maintains backwards compatibility with previous Ruby releases as well (those with the "old" version of st_foreach). But I will come up with something brilliant, real soon now. ;) Again, thanks for your patience.