From cjg0305 at nate.com Fri Mar 2 02:37:10 2007 From: cjg0305 at nate.com (=?euc-kr?B?w9bBpLHm?=) Date: Fri, 02 Mar 2007 16:37:10 +0900 Subject: [fxruby-users] =?euc-kr?q?FXTextField_korean_input_problem_=2E=2E?= =?euc-kr?q?=2E?= Message-ID: <20070302163710173710@wm-web16> An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/fxruby-users/attachments/20070302/cea8a81e/attachment.html From rajsahae at gmail.com Mon Mar 5 17:40:52 2007 From: rajsahae at gmail.com (Raj Sahae) Date: Mon, 05 Mar 2007 14:40:52 -0800 Subject: [fxruby-users] drag n drop help Message-ID: <45EC9C74.2020308@ucla.edu> I want to be able to drag an object, in it's entirety. Right now, I am dragging objects by defining a to_s and card_from_str methods, but there are several subclasses of these objects and writing the string conversion methods is tedious for each one. Is there another way to drag an object? Sample of my code: imageView.connect(SEL_DND_REQUEST) do |sender, sel, event| if event.target == @image_drag_type imageView.setDNDData(FROM_DRAGNDROP, @image_drag_type, Fox.fxencodeStringData(card.to_s)) end end @DilemmaBottomButton.connect(SEL_DND_DROP) do data = @DilemmaBottomButton.getDNDData(FROM_DRAGNDROP, @image_drag_type) @DilemmaBottomButton.dropFinished data = Fox.fxdecodeStringData(data) unless data.nil? card = @game.players[@this_player].card_from_str(data) end From lyle.johnson at gmail.com Mon Mar 5 17:51:50 2007 From: lyle.johnson at gmail.com (Lyle Johnson) Date: Mon, 5 Mar 2007 16:51:50 -0600 Subject: [fxruby-users] drag n drop help In-Reply-To: <45EC9C74.2020308@ucla.edu> References: <45EC9C74.2020308@ucla.edu> Message-ID: On 3/5/07, Raj Sahae wrote: > I want to be able to drag an object, in it's entirety. Right now, I am > dragging objects by defining a to_s and card_from_str methods, but there > are several subclasses of these objects and writing the string > conversion methods is tedious for each one. Is there another way to > drag an object? Well, there's not another way to drag an object, but that doesn't seem to be the problem in the first place. You're wanting to know if there's an easier way to specify the data that should be transferred whenever the user drags an object from one place to another, right? Have you considered using YAML to serialize (and deserialize) the objects? If you were to do that, it seems like you wouldn't need to write class-specific to_str() and from_str() methods. From ggarra at advancedsl.com.ar Mon Mar 5 22:06:47 2007 From: ggarra at advancedsl.com.ar (gga) Date: Tue, 06 Mar 2007 00:06:47 -0300 Subject: [fxruby-users] drag n drop help In-Reply-To: References: <45EC9C74.2020308@ucla.edu> Message-ID: <45ECDAC7.3060200@advancedsl.com.ar> Lyle Johnson wrote: > On 3/5/07, Raj Sahae wrote: > >> I want to be able to drag an object, in it's entirety. Right now, I am >> dragging objects by defining a to_s and card_from_str methods, but there >> are several subclasses of these objects and writing the string >> conversion methods is tedious for each one. Is there another way to >> drag an object? > > Well, there's not another way to drag an object, but that doesn't seem > to be the problem in the first place. You're wanting to know if > there's an easier way to specify the data that should be transferred > whenever the user drags an object from one place to another, right? > Have you considered using YAML to serialize (and deserialize) the > objects? If you were to do that, it seems like you wouldn't need to > write class-specific to_str() and from_str() methods. Follow Lyle's advice. YAML rocks. Here's a quick example with two classes (one spitting all attributes, another selectively spitting only one): require 'yaml' class A attr_accessor :x def initialize @x = [2,3] end end a = A.new yaml_data = YAML::dump(a) p yaml_data b = YAML::load(yaml_data) p b class B attr_accessor :x, :y def initialize @x = 'spit' @y = 'ignored' end def to_yaml_properties [ '@x' ] end end c = B.new p YAML::dump(c) -- Gonzalo Garramu?o ggarra at advancedsl.com.ar AMD4400 - ASUS48N-E GeForce7300GT Kubuntu Edgy From raycohen at gmail.com Mon Mar 5 23:24:08 2007 From: raycohen at gmail.com (Ray Cohen) Date: Mon, 5 Mar 2007 23:24:08 -0500 Subject: [fxruby-users] updating layout Message-ID: <816916c0703052024k20894094jc7cfa190f03558d7@mail.gmail.com> Hi, I've been working on a simple card game interface for a few days, and I can't figure out how to get hidden frames and buttons to appear without minimizing/resizing the entire window. I've tried calling methods like "flush", "recalc" and "forceRefresh" but it doesn't seem to change anything. I'm running my stuff on a windows box. Is there something obvious I'm missing? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/fxruby-users/attachments/20070305/f6cb9a53/attachment.html From raycohen at gmail.com Tue Mar 6 00:27:57 2007 From: raycohen at gmail.com (Ray Cohen) Date: Tue, 6 Mar 2007 00:27:57 -0500 Subject: [fxruby-users] updating layout In-Reply-To: <816916c0703052024k20894094jc7cfa190f03558d7@mail.gmail.com> References: <816916c0703052024k20894094jc7cfa190f03558d7@mail.gmail.com> Message-ID: <816916c0703052127s17c13ef4r3ddc57334c3a98e1@mail.gmail.com> I figured out what I was doing wrong - I wasn't calling recalc on the object/frame that needed layout updating, I was calling it on the main window. It all makes sense now... On 3/5/07, Ray Cohen wrote: > > Hi, > > I've been working on a simple card game interface for a few days, and I > can't figure out how to get hidden frames and buttons to appear without > minimizing/resizing the entire window. > > I've tried calling methods like "flush", "recalc" and "forceRefresh" but > it doesn't seem to change anything. I'm running my stuff on a windows box. > Is there something obvious I'm missing? > > Thanks! > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/fxruby-users/attachments/20070306/982c7fde/attachment.html From lyle.johnson at gmail.com Tue Mar 6 07:44:47 2007 From: lyle.johnson at gmail.com (Lyle Johnson) Date: Tue, 6 Mar 2007 06:44:47 -0600 Subject: [fxruby-users] updating layout In-Reply-To: <816916c0703052127s17c13ef4r3ddc57334c3a98e1@mail.gmail.com> References: <816916c0703052024k20894094jc7cfa190f03558d7@mail.gmail.com> <816916c0703052127s17c13ef4r3ddc57334c3a98e1@mail.gmail.com> Message-ID: On 3/5/07, Ray Cohen wrote: > I figured out what I was doing wrong - I wasn't calling recalc on the > object/frame that needed layout updating, I was calling it on the main > window. It all makes sense now... See, I love it when people answer their own questions. ;) Please keep us posted on your card game -- that would be a cool example to be able to point folks to. From ed.shuler at honeywell.com Wed Mar 7 15:36:21 2007 From: ed.shuler at honeywell.com (Shuler, Ed (CO04)) Date: Wed, 7 Mar 2007 13:36:21 -0700 Subject: [fxruby-users] Using a FXMessageBox Message-ID: Beginner Question, I'm having difficulty using the FXMessageBox , does anyone know of any example source code that demonstrates how to use this widget? Ed Shuler Honeywell -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/fxruby-users/attachments/20070307/56c2c5a4/attachment.html From rajsahae at gmail.com Wed Mar 7 16:49:03 2007 From: rajsahae at gmail.com (Raj Sahae) Date: Wed, 07 Mar 2007 13:49:03 -0800 Subject: [fxruby-users] my button.connect(SEL_COMMAND) isn't working Message-ID: <45EF334F.9030506@ucla.edu> Is it because I'm also using the DND stuff for the same button? Does the LEFBUTTONPRESS and LEFTBUTTONRELEASE mess up SEL_COMMAND? def display(stack, requesting_player) self.set_target(stack) #set drag type, clear the viewer, prep the stack remove_previous_images(@stackViewer) cards = stack.cards.flatten data_sent = false #for each index in the flattened stack, open the file cards.each do |card| if card.commander == requesting_player or card.face_up? filename= card.face else filename = card.back end until filename.length >= 4 filename = '0' + filename end file = File.open(filename, "rb") #create the imageframe and icon from the file imageView= FXButton.new(@stackViewer, nil, nil, nil, 0, LAYOUT_FIX_WIDTH|LAYOUT_FIX_HEIGHT|BUTTON_NORMAL, 0,0, 357, 497) imageView.icon = FXJPGIcon.new(self.getApp(), file.read, IMAGE_KEEP|IMAGE_SHMI|IMAGE_SHMP) imageView.tipText = "Commanded By: #{card.commander} Owned By: #{card.owner} Status: #{card.status} Stopped: #{card.stopped}" imageView.buttonStyle = BUTTON_AUTOGRAY if card.stopped #set DND for cards in viewer imageView.connect(SEL_LEFTBUTTONPRESS) do imageView.grab dragTypes = [@image_drag_type] imageView.beginDrag(dragTypes) end imageView.connect(SEL_MOTION) do |sender, sel, event| if imageView.dragging? imageView.handleDrag(event.root_x, event.root_y) unless imageView.didAccept == DRAG_REJECT imageView.dragCursor = self.getApp().getDefaultCursor(DEF_DNDMOVE_CURSOR) else imageView.dragCursor = self.getApp().getDefaultCursor(DEF_DNDSTOP_CURSOR) end end end imageView.connect(SEL_DND_REQUEST) do |sender, sel, event| if event.target == @image_drag_type imageView.setDNDData(FROM_DRAGNDROP, @image_drag_type, Fox.fxencodeStringData(YAML.dump(card))) data_sent = true end end imageView.connect(SEL_LEFTBUTTONRELEASE) do imageView.ungrab imageView.endDrag stack.remove(card) if data_sent self.display(stack, requesting_player) end #set action for selected button imageView.connect(SEL_COMMAND) do puts stack.inspect puts card.inspect puts imageView.inspect end imageView.create end @display_label.text = "Showing: #{cards.empty? ? "" : cards[0].commander}'s #{stack.get_class} (#{cards.size})" stack end From lyle.johnson at gmail.com Wed Mar 7 16:54:42 2007 From: lyle.johnson at gmail.com (Lyle Johnson) Date: Wed, 7 Mar 2007 15:54:42 -0600 Subject: [fxruby-users] Using a FXMessageBox In-Reply-To: References: Message-ID: On 3/7/07, Shuler, Ed (CO04) wrote: > I'm having difficulty using the FXMessageBox , does anyone know of any > example source code that demonstrates how to use this widget? The "examples" directory for the FXRuby distribution contains numerous examples of how to use FXMessageBox. From lyle.johnson at gmail.com Wed Mar 7 17:13:59 2007 From: lyle.johnson at gmail.com (Lyle Johnson) Date: Wed, 7 Mar 2007 16:13:59 -0600 Subject: [fxruby-users] my button.connect(SEL_COMMAND) isn't working In-Reply-To: <45EF334F.9030506@ucla.edu> References: <45EF334F.9030506@ucla.edu> Message-ID: On 3/7/07, Raj Sahae wrote: > Is it because I'm also using the DND stuff for the same button? Does > the LEFBUTTONPRESS and LEFTBUTTONRELEASE mess up SEL_COMMAND? I thought I had responded to this question when you posted it to ruby-talk, but I can't find it in the archives now. Yes, if you completely override the handler for SEL_LEFTBUTTONRELEASE, the button will never get to fire its SEL_COMMAND message. You should however be able to avoid that happening by making sure that your SEL_LEFTBUTTONRELEASE handler returns false, e.g. imageView.connect(SEL_LEFTBUTTONRELEASE) do imageView.ungrab imageView.endDrag stack.remove(card) if data_sent self.display(stack, requesting_player) false # added this line end Hope this helps, Lyle From ggarra at advancedsl.com.ar Thu Mar 8 04:44:52 2007 From: ggarra at advancedsl.com.ar (gga) Date: Thu, 08 Mar 2007 06:44:52 -0300 Subject: [fxruby-users] Text input issues... Message-ID: <45EFDB14.4080900@advancedsl.com.ar> I run into an issue with latest FXRuby1.6 under linux. Basically, the problem was that its text widgets have suddenly stopped working (even fxruby demos). They would not take any keys that were typed in. All other applications worked fine. Any ideas what could have triggered this? -- Gonzalo Garramu?o ggarra at advancedsl.com.ar AMD4400 - ASUS48N-E GeForce7300GT Kubuntu Edgy From lyle.johnson at gmail.com Thu Mar 8 11:08:52 2007 From: lyle.johnson at gmail.com (Lyle Johnson) Date: Thu, 8 Mar 2007 10:08:52 -0600 Subject: [fxruby-users] Text input issues... In-Reply-To: <45EFDB14.4080900@advancedsl.com.ar> References: <45EFDB14.4080900@advancedsl.com.ar> Message-ID: On 3/8/07, gga wrote: > I run into an issue with latest FXRuby1.6 under linux. > Basically, the problem was that its text widgets have suddenly stopped > working (even fxruby demos). They would not take any keys that were > typed in. > All other applications worked fine. > Any ideas what could have triggered this? Well, no. Do the FOX examples work (i.e. those that came with the C++ library)? From lyle.johnson at gmail.com Sun Mar 11 08:08:04 2007 From: lyle.johnson at gmail.com (Lyle Johnson) Date: Sun, 11 Mar 2007 07:08:04 -0500 Subject: [fxruby-users] I'm working on my graphics window for the ruby quiz In-Reply-To: <45F33231.6000208@ucla.edu> References: <45F33231.6000208@ucla.edu> Message-ID: On 3/10/07, Raj Sahae wrote: > And I have no idea how to get this canvas working. > I've been looking at the scribble.rb example and trying to work off that. > > This is my display method, I get a seg fault when I run the method. > > def display > FXDCWindow.new(@canvas) do |dc| > @torus.grid.each_with_index do |row, y| > row.each_with_index do |part, x| > if part == :vapor > dc.foreground = "blue" > dc.drawPoint(x, y) > elsif part == :vacuum > dc.foreground = "black" > dc.drawPoint(x, y) > elsif part == :ice > dc.foreground = "gray" > dc.drawPoint(x, y) > end > end > end > end > end I don't see anything that is obviously wrong with it. It might help to see the problem in context, though (i.e. in a complete program). From rajsahae at gmail.com Sun Mar 11 16:41:14 2007 From: rajsahae at gmail.com (Raj Sahae) Date: Sun, 11 Mar 2007 13:41:14 -0700 Subject: [fxruby-users] drawing on canvas Message-ID: <45F4696A.9090104@ucla.edu> And I have no idea how to get this canvas working. I've been looking at the scribble.rb example and trying to work off that. I get a seg fault when I run the method. @canvas is an instance of FXCanvas. def display FXDCWindow.new(@canvas) do |dc| @torus.grid.each_with_index do |row, y| row.each_with_index do |part, x| if part == :vapor dc.foreground = "blue" dc.drawPoint(x, y) elsif part == :vacuum dc.foreground = "black" dc.drawPoint(x, y) elsif part == :ice dc.foreground = "gray" dc.drawPoint(x, y) end end end end end What am I missing here? From lyle.johnson at gmail.com Sun Mar 11 19:06:59 2007 From: lyle.johnson at gmail.com (Lyle Johnson) Date: Sun, 11 Mar 2007 18:06:59 -0500 Subject: [fxruby-users] drawing on canvas In-Reply-To: <45F4696A.9090104@ucla.edu> References: <45F4696A.9090104@ucla.edu> Message-ID: On 3/11/07, Raj Sahae wrote: > And I have no idea how to get this canvas working. > I've been looking at the scribble.rb example and trying to work off that. > > I get a seg fault when I run the method. @canvas is an instance of > FXCanvas. Raj, I don't see anything obviously wrong with the code, but it may depend on the context from which the method is called. For example: At the time the method is called (and causes the segfault), has the canvas pointed to by @canvas actually been created yet? From meinrad.recheis at gmail.com Sun Mar 11 20:29:09 2007 From: meinrad.recheis at gmail.com (Meinrad Recheis) Date: Mon, 12 Mar 2007 01:29:09 +0100 Subject: [fxruby-users] I'm working on my graphics window for the ruby quiz In-Reply-To: References: <45F33231.6000208@ucla.edu> Message-ID: <43d756720703111729t1434327fh5b266b20bcd258c9@mail.gmail.com> hi there, my experience with the @!$?%&-FXDCWindow and many other Widgets in FXRuby is, that they easily segfault if you pass nil as a param to a method that does expect some pointer to a widget. for instance in your code make sure that @canvas is not nil and that any other parameters.... you pass to the widgets are not nil and are of the expected type as stated by the API reference docs! PS: with fxdcwindow you can easily get segfaults when using the method to draw text without defining a standard font. also using a font that has not been created will segfault. now you know the reason for me heavily cursing on FXDCWindow ;) -- henon On 3/11/07, Lyle Johnson wrote: > On 3/10/07, Raj Sahae wrote: > > > And I have no idea how to get this canvas working. > > I've been looking at the scribble.rb example and trying to work off that. > > > > This is my display method, I get a seg fault when I run the method. > > > > def display > > FXDCWindow.new(@canvas) do |dc| > > @torus.grid.each_with_index do |row, y| > > row.each_with_index do |part, x| > > if part == :vapor > > dc.foreground = "blue" > > dc.drawPoint(x, y) > > elsif part == :vacuum > > dc.foreground = "black" > > dc.drawPoint(x, y) > > elsif part == :ice > > dc.foreground = "gray" > > dc.drawPoint(x, y) > > end > > end > > end > > end > > end > > I don't see anything that is obviously wrong with it. It might help to > see the problem in context, though (i.e. in a complete program). > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users > From rajsahae at gmail.com Mon Mar 19 05:15:12 2007 From: rajsahae at gmail.com (Raj Sahae) Date: Mon, 19 Mar 2007 02:15:12 -0700 Subject: [fxruby-users] new DND idea Message-ID: <45FE54A0.6070907@ucla.edu> Hi there. Some of you may remember that I was having problems with DND. I solved that problem using YAML. However, I have run into new problems because YAML creates a new instance of the object, exactly equal to the old one, but nonetheless, a new object in a different memory location. Instead of doing that, I wish to simply pass the actual reference, the memory location, of the object. How would I do that? For example, if "card" in this case was a reference to on object at 0x0000001 (contrived, yes): imageView.connect(SEL_DND_REQUEST) do |sender, sel, event| if event.target == @image_drag_type imageView.setDNDData(FROM_DRAGNDROP, @image_drag_type, Fox.fxencodeStringData(YAML.dump(card))) data_sent = true end end Instead of encoding the YAML.dump, I would encode what? And on the otherside, I would decode and then what? Thanks, Raj Sahae From lyle.johnson at gmail.com Mon Mar 19 10:52:41 2007 From: lyle.johnson at gmail.com (Lyle Johnson) Date: Mon, 19 Mar 2007 09:52:41 -0500 Subject: [fxruby-users] new DND idea In-Reply-To: <45FE54A0.6070907@ucla.edu> References: <45FE54A0.6070907@ucla.edu> Message-ID: On 3/19/07, Raj Sahae wrote: > Hi there. Some of you may remember that I was having problems with > DND. I solved that problem using YAML. However, I have run into new > problems because YAML creates a new instance of the object, exactly > equal to the old one, but nonetheless, a new object in a different > memory location. Right, and this is a good thing if you're dragging the object to another instance of the application that doesn't share the same memory space. > Instead of doing that, I wish to simply pass the > actual reference, the memory location, of the object. How would I do > that? For example, if "card" in this case was a reference to on object > at 0x0000001 (contrived, yes): > Instead of encoding the YAML.dump, I would encode what? And on the > otherside, I would decode and then what? It sounds like you're assuming that it's always going to be a "local" drag and drop (i.e an object is dragged and dropped within the same application instance). In that case, the simplest solution might be to just use the object's id as its encoding: setDNDData(FROM_DRAGNDROP, @image_drag_type, card.__id__.to_s) and then decode it using ObjectSpace#_id2ref: data = getDNDData(FROM_DRAGNDROP, @image_drag_type) card = ObjectSpace._id2ref(data.to_i) Hope this helps, Lyle From lyle.johnson at gmail.com Mon Mar 19 21:23:32 2007 From: lyle.johnson at gmail.com (Lyle Johnson) Date: Mon, 19 Mar 2007 20:23:32 -0500 Subject: [fxruby-users] more DND related questions In-Reply-To: <45FF0053.2090406@ucla.edu> References: <45FF0053.2090406@ucla.edu> Message-ID: On 3/19/07, Raj Sahae wrote: > half the time, when I DND, it doesn't drop unless I click the mouse > button. When I changed my code to use the _id2ref advice you gave me, > that extra click started giving me seg fault problems. I'm still > searching for the cause to that, but I noticed that if I select the > button, right click, then drag it, I don't have to click to drop it, and > I also don't seg fault. Have you ever seen a problem like this before, > and do you know why the DND isn't working properly? I have not heard of a problem like this. Are you seeing a similar problem with the drag & drop examples included with the FXRuby distribution? From bjorn.bergqvist at gmail.com Fri Mar 23 04:36:45 2007 From: bjorn.bergqvist at gmail.com (=?ISO-8859-1?Q?Bj=F6rn_Bergqvist?=) Date: Fri, 23 Mar 2007 09:36:45 +0100 Subject: [fxruby-users] Pre-Alpha Message-ID: <44936e730703230136lafa4c6bo6cf4e0c9b6e422f@mail.gmail.com> Hello, I'm writing a small program for creation of 3d-meshes for use in calculation of flow. So if anyone want to look at a fxruby-application have a look at: http://www.discretizer.org Regards Bj?rn Bergqvist From ggarra at advancedsl.com.ar Fri Mar 23 10:02:18 2007 From: ggarra at advancedsl.com.ar (gga) Date: Fri, 23 Mar 2007 11:02:18 -0300 Subject: [fxruby-users] Pre-Alpha In-Reply-To: <44936e730703230136lafa4c6bo6cf4e0c9b6e422f@mail.gmail.com> References: <44936e730703230136lafa4c6bo6cf4e0c9b6e422f@mail.gmail.com> Message-ID: <4603DDEA.9080002@advancedsl.com.ar> Bj?rn Bergqvist wrote: > Hello, > I'm writing a small program for creation of 3d-meshes for use in > calculation of flow. > So if anyone want to look at a fxruby-application have a look at: > http://www.discretizer.org > > Regards > Bj?rn Bergqvist > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users > Hey, that looks pretty good. I'll be playing with it. I'll also admit not being aware of those two open source CFD solvers. May I ask you your opinion on them (what's bad/good about them?)? -- Gonzalo Garramu?o ggarra at advancedsl.com.ar AMD4400 - ASUS48N-E GeForce7300GT Kubuntu Edgy From ggarra at advancedsl.com.ar Fri Mar 23 15:53:32 2007 From: ggarra at advancedsl.com.ar (gga) Date: Fri, 23 Mar 2007 16:53:32 -0300 Subject: [fxruby-users] Text input issues... In-Reply-To: References: <45EFDB14.4080900@advancedsl.com.ar> Message-ID: <4604303C.2070501@advancedsl.com.ar> Lyle Johnson wrote: > On 3/8/07, gga wrote: > >> I run into an issue with latest FXRuby1.6 under linux. >> Basically, the problem was that its text widgets have suddenly stopped >> working (even fxruby demos). They would not take any keys that were >> typed in. >> All other applications worked fine. >> Any ideas what could have triggered this? > > Well, no. Do the FOX examples work (i.e. those that came with the C++ library)? Sorry for the late reply. Was busy with something else. No, they don't. This is a FOX issue. It happens as soon as Fox is compiled with: --with-xim Without that, all text widgets work fine. This is fox1.6.23, and latest fxruby, running under Linux (latest Ubuntu). Probably not a bug but a configuration issue on my part. Not clear what that option does. -- Gonzalo Garramu?o ggarra at advancedsl.com.ar AMD4400 - ASUS48N-E GeForce7300GT Kubuntu Edgy From ggarra at advancedsl.com.ar Fri Mar 23 16:22:10 2007 From: ggarra at advancedsl.com.ar (gga) Date: Fri, 23 Mar 2007 17:22:10 -0300 Subject: [fxruby-users] FXRuby scintilla issue Message-ID: <460436F2.8000303@advancedsl.com.ar> FXRuby version 1.6.4. I've been trying to compile FXruby with scintilla support. I've downloaded: http://savannah.nongnu.org/download/fxscintilla/fxscintilla-1.63.tar.gz. Compiled it and installed it. FXruby is 1.6.4 I get: AL_H -I/usr/local/include/fxscintilla -I/usr/local/include/fox-1.6 -c frames_wrap.cpp /usr/local/include/fxscintilla/FXScintilla.h:84: error: conflicting return type specified for ?virtual FX::FXbool FXScintilla::canFocus() const? And several errors following. -- Gonzalo Garramu?o ggarra at advancedsl.com.ar AMD4400 - ASUS48N-E GeForce7300GT Kubuntu Edgy From lyle.johnson at gmail.com Fri Mar 23 17:41:47 2007 From: lyle.johnson at gmail.com (Lyle Johnson) Date: Fri, 23 Mar 2007 16:41:47 -0500 Subject: [fxruby-users] FXRuby scintilla issue In-Reply-To: <460436F2.8000303@advancedsl.com.ar> References: <460436F2.8000303@advancedsl.com.ar> Message-ID: On 3/23/07, gga wrote: > FXRuby version 1.6.4. I've been trying to compile FXruby with scintilla > support. I've downloaded: > > http://savannah.nongnu.org/download/fxscintilla/fxscintilla-1.63.tar.gz. You need the latest release of FXScintilla (version 1.71); see the FXScintilla home page: http://www.nongnu.org/fxscintilla/ Hope this helps, Lyle From bjorn.bergqvist at gmail.com Sat Mar 24 12:50:22 2007 From: bjorn.bergqvist at gmail.com (=?ISO-8859-1?Q?Bj=F6rn_Bergqvist?=) Date: Sat, 24 Mar 2007 16:50:22 +0000 Subject: [fxruby-users] Pre-Alpha In-Reply-To: <4603DDEA.9080002@advancedsl.com.ar> References: <44936e730703230136lafa4c6bo6cf4e0c9b6e422f@mail.gmail.com> <4603DDEA.9080002@advancedsl.com.ar> Message-ID: <44936e730703240950k37499b21g85aae876d9d53339@mail.gmail.com> This is probably not the right forum for this. OpenFOAM is quite usable. There is a java interface for setting up a problem so it could be done with relatively little pain. I haven't done any benchmarks so I don't know they compare with commercial solvers in that respect. I tested Gerris Flow solver 2 years ago and then I was only able to run a predefined case. Regards Bj?rn Bergqvist On 3/23/07, gga wrote: > Bj?rn Bergqvist wrote: > > Hello, > > I'm writing a small program for creation of 3d-meshes for use in > > calculation of flow. > > So if anyone want to look at a fxruby-application have a look at: > > http://www.discretizer.org > > > > Regards > > Bj?rn Bergqvist > > _______________________________________________ > > fxruby-users mailing list > > fxruby-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/fxruby-users > > > > Hey, that looks pretty good. I'll be playing with it. > > I'll also admit not being aware of those two open source CFD solvers. > May I ask you your opinion on them (what's bad/good about them?)? > > -- > Gonzalo Garramu?o > ggarra at advancedsl.com.ar > > AMD4400 - ASUS48N-E > GeForce7300GT > Kubuntu Edgy > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users > From ggarra at advancedsl.com.ar Sat Mar 24 16:00:50 2007 From: ggarra at advancedsl.com.ar (gga) Date: Sat, 24 Mar 2007 17:00:50 -0300 Subject: [fxruby-users] FXRuby scintilla issue In-Reply-To: References: <460436F2.8000303@advancedsl.com.ar> Message-ID: <46058372.9050207@advancedsl.com.ar> Lyle Johnson wrote: > On 3/23/07, gga wrote: > >> FXRuby version 1.6.4. I've been trying to compile FXruby with scintilla >> support. I've downloaded: >> >> http://savannah.nongnu.org/download/fxscintilla/fxscintilla-1.63.tar.gz. > > > > You need the latest release of FXScintilla (version 1.71); see the > FXScintilla home page: > > http://www.nongnu.org/fxscintilla/ > > Hope this helps, > Yep, that was it. The FXRuby web page has a link to the old one. It probably needs updating. -- Gonzalo Garramu?o ggarra at advancedsl.com.ar AMD4400 - ASUS48N-E GeForce7300GT Kubuntu Edgy From lyle.johnson at gmail.com Sun Mar 25 17:22:31 2007 From: lyle.johnson at gmail.com (Lyle Johnson) Date: Sun, 25 Mar 2007 16:22:31 -0500 Subject: [fxruby-users] more DND related questions In-Reply-To: <460190E9.8090007@gmail.com> References: <45FF0053.2090406@ucla.edu> <460190E9.8090007@gmail.com> Message-ID: On 3/21/07, Raj Sahae wrote: > I was just thinking, all my dropsites are also buttons with SEL_COMMAND > connections. Would that interfere in the dropping somehow? Did you > recieve my previous email with the code attachment? I don't have to debug your program for you, but a button is admittedly an odd choice to associate with drag and drop. At least, I don't recall ever seeing anyone make that association (even in non-FOX applications). But yes, if you're messing around with the default SEL_LEFTBUTTONPRESS and SEL_LEFTBUTTONRELEASE handlers (as you must when doing drag and drop) that's almost certainly going to break the SEL_COMMAND handling -- because SEL_COMMAND depends on seeing a button press and release. I'd recommend associating the D&D with some kind of widget that isn't something you typically click on, like maybe a label, or an FXImageFrame -- something like that. From rajsahae at gmail.com Tue Mar 27 18:11:09 2007 From: rajsahae at gmail.com (Raj Sahae) Date: Tue, 27 Mar 2007 15:11:09 -0700 Subject: [fxruby-users] need to call getApp Message-ID: <4609967D.2040607@gmail.com> The following isn't working. I tried Fox::getApp(), FXId::getApp(), FXWindow::getApp(), and on the FXRuby website I couldn't find what getApp() belonged to. On the FOX website, it said FXId. Assuming I'm not passing the app into the method, and the file has no outside information on what app might be using it, how do I getApp()? require 'fox16' include Fox Class A def initialize(filename) @filename = filename @icon = nil end def set_icon File.open(@filename, 'rb') do |file| @icon = FXJPGIcon.new(FXId::getApp(), file.read, 0, IMAGE_KEEP|IMAGE_SHMI|IMAGE_SHMP) end end end From leotta at cshl.edu Tue Mar 27 19:11:01 2007 From: leotta at cshl.edu (Leotta, Anthony) Date: Tue, 27 Mar 2007 19:11:01 -0400 Subject: [fxruby-users] Drag and Drop Message-ID: <44233CA5B57295409DA4423AECEFFEE7020230B8@mailbox01.cshl.edu> Has anyone got Drag and Drop or DND as its called in FOX working on XP? I am trying to drag files from Windows Explorer into a FXRuby window. I tried using registerDragType but I don't think the type "FXWindow.urilistTypeName" is correct. def create super FXWindow.urilistType = getApp().registerDragType(FXWindow.urilistTypeName) show(PLACEMENT_SCREEN) end From lyle.johnson at gmail.com Tue Mar 27 19:27:30 2007 From: lyle.johnson at gmail.com (Lyle Johnson) Date: Tue, 27 Mar 2007 18:27:30 -0500 Subject: [fxruby-users] need to call getApp In-Reply-To: <4609967D.2040607@gmail.com> References: <4609967D.2040607@gmail.com> Message-ID: On 3/27/07, Raj Sahae wrote: > Assuming I'm not passing the app into the method, and the file has no outside > information on what app might be using it, how do I getApp()? The FXApp.instance() class method should do the trick: @icon = FXJPGIcon.new(FXApp.instance, ...) Note that you need to have actually constructed the FXApp prior to calling FXApp.instance; otherwise, it will return nil. Hope this helps, Lyle From lyle.johnson at gmail.com Tue Mar 27 19:34:29 2007 From: lyle.johnson at gmail.com (Lyle Johnson) Date: Tue, 27 Mar 2007 18:34:29 -0500 Subject: [fxruby-users] Drag and Drop In-Reply-To: <44233CA5B57295409DA4423AECEFFEE7020230B8@mailbox01.cshl.edu> References: <44233CA5B57295409DA4423AECEFFEE7020230B8@mailbox01.cshl.edu> Message-ID: On 3/27/07, Leotta, Anthony wrote: > Has anyone got Drag and Drop or DND as its called in FOX working on XP? > > I am trying to drag files from Windows Explorer into a FXRuby window. As far as I know, FOX's drag and drop implementation has no connection to the standard Windows drag and drop mechanism. So you can't drag FOX stuff into Windows windows, or vice versa. If this isn't the case, and Jeroen has added some Windows interoperability that I don't know about, I'd love to hear it. ;) From rajsahae at gmail.com Tue Mar 27 20:24:14 2007 From: rajsahae at gmail.com (Raj Sahae) Date: Tue, 27 Mar 2007 17:24:14 -0700 Subject: [fxruby-users] need to call getApp In-Reply-To: References: <4609967D.2040607@gmail.com> Message-ID: <4609B5AE.9040302@gmail.com> > The FXApp.instance() class method should do the trick: > > @icon = FXJPGIcon.new(FXApp.instance, ...) > > Note that you need to have actually constructed the FXApp prior to > calling FXApp.instance; otherwise, it will return nil. > > Hope this helps, > > Lyle > ________ That was exactly what I was looking for. Thanks Lyle. Raj From lyle.johnson at gmail.com Thu Mar 29 11:48:26 2007 From: lyle.johnson at gmail.com (Lyle Johnson) Date: Thu, 29 Mar 2007 10:48:26 -0500 Subject: [fxruby-users] Next FXRuby Release In-Reply-To: <2EC28B773AF39E47850AC45765483C2C0708718C@AEROMSG2.AERO.BALL.COM> References: <2EC28B773AF39E47850AC45765483C2C0708718C@AEROMSG2.AERO.BALL.COM> Message-ID: On 3/29/07, Melton, Ryan wrote: > I was just wondering when the next FXRuby release is planned. Jeroen has > included some nice updates up to his current release with the most important > for me being multi-monitor support for Windows without compiling with a .NET > version of VC++. The Windows binary gem in FXRuby 1.6.6 doesn't work right > on Windows with multiple monitors. (Pull down menus always show up on the > first monitor). I'm hoping compiling with the new FOX library will fix > this. Is it this change from FOX 1.6.24 that you're talking about? "Added run-time test for multi-head display configuration; it no longer depends on having up-to-date header files." If so, sure, I can probably put together a new release this weekend. I usually don't like to do that unless I've actually made some fixes to FXRuby, but this seems like a good reason to do that. From lyle.johnson at gmail.com Sat Mar 31 12:40:44 2007 From: lyle.johnson at gmail.com (Lyle Johnson) Date: Sat, 31 Mar 2007 11:40:44 -0500 Subject: [fxruby-users] [ANN] FXRuby 1.6.7 Now Available Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 All, FXRuby version 1.6.7 is now available for download from this page: http://rubyforge.org/frs/?group_id=300&release_id=10778 This is a minor update; the main reason for this release is to provide a binary that's built against FOX 1.6.25, which has some important bug fixes. Note that if you're building FXRuby from source, you should be using FOX 1.6.16 or later due to some important changes made in that release of FOX. For a summary of the changes in this release of FXRuby, please see this page: http://www.fxruby.org/doc/changes.html As usual, the code is provided as a Win32 installer or a binary Gem (both compatible with the latest One-Click Installer for Ruby), as a source gem, and as a source tarball. For instructions on compiling FXRuby from source, please see: http://www.fxruby.org/doc/build.html And as always, the FXRuby home page is here: http://www.fxruby.org Enjoy, Lyle -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (Darwin) iD8DBQFGDo8NFXV/hD6oMd0RAkabAJ9O7T3YAGaywsubrDNTOSV3pGP5NACdHEAn V5TjrS5dT9xi8ZKfLwvzoNQ= =cOHg -----END PGP SIGNATURE-----