Doh! After deciding to upgrade to Suse 9.1 I had difficulties trying to make Fox 1.2.4. So, on a lark I tried Fox 1.3.7 which configure/make/make installed with nary a glitch. But, of course, now I''m back to reinstalling my Ruby stuff and discovered, as stated, FXRuby 1.2.1 works with the Fox 1.2.x versions. Doh! Will there be a FXRuby 1.3.x sometime in the near future? Or is it still to unstable to deal with? thanks, --jeff
On Aug 7, 2004, at 9:03 AM, Jeff Koppe wrote:> After deciding to upgrade to Suse 9.1 I had difficulties trying to > make Fox > 1.2.4.OK, well, we need to address that problem, then! Any details?> So, on a lark I tried Fox 1.3.7 which configure/make/make installed > with nary a glitch.OK.> But, of course, now I''m back to reinstalling my Ruby > stuff and discovered, as stated, FXRuby 1.2.1 works with the Fox 1.2.x > versions. Doh!Yes, FXRuby 1.2.x is only intended for fox-1.2.x.> Will there be a FXRuby 1.3.x sometime in the near future? Or is it > still to > unstable to deal with?The answers are "no" and "yes", respectively. ;) FOX 1.2 has only been the "new stable" version of FOX for a month or so now, and FOX 1.3 is now the unstable development branch. Because the latter is unstable, its API is likely to change pretty frequently and so FXRuby would need to keep in lock-step with it for the two to remain compatible -- and this is just more than I''m willing to sign up for. At some point, probably not soon, Jeroen will signal that he''s slowing down development of FOX 1.3 and getting ready to transition it to the API-frozen, stable, FOX version 1.4. It is at that time I would start the machinery to update FXRuby to 1.4.
Rich Lyman
2004-Aug-23 20:50 UTC
[fxruby-users] Errors with RubyGem generated RDoc for FXRuby1.2??
Lyle, I noticed that there were two ''empty'' entries that were similar... FXToolTip and FXTooltip I''m betting that the second one is old since the 1.2 way is to use UpperCamelCase... either way, nothing gets loaded when I click on them... is that intentional? Second item... the FXTreeListItem shows the parameter ''opened'' as a writeable parameter... is that correct? I always used ''expanded=true'' to open a sub tree... maybe the ''opened'' parameter is supposed to be read-only? Thanks! -Rich
Dear all I have a problem that is probably really stupid, but that I cannot solve at the moment and I''m wondering if someone has an idea of what''s going wrong .. mainly inspired by the cookbook snippet of Lyle http://www.fifthplanet.net/cgi-bin/wiki.pl?Cookbook/Making_A_Snapshot_Of_A_Widget I''ve done a small function in my code to take snapshots of widgets from inside my application in Ruby .. here it is the code ###################################################################### # Create a snapshot of the drawable, where drawable is # any FXDrawable subclass def makeSnapshot(filename, drawable) completeName = File.basename(filename).match(/(.*)\.(.*)/) extension = completeName[2] unless completeName == nil case extension when "gif" snapshot = FXGIFImage.new($FredMW.getApp(), nil, 0, drawable.getWidth(), drawable.getHeight()) when "bmp" snapshot = FXBMPImage.new($FredMW.getApp(), nil, 0, drawable.getWidth(), drawable.getHeight()) when "jpg" snapshot = FXJPGImage.new($FredMW.getApp(), nil, 0, drawable.getWidth(), drawable.getHeight()) when "png" snapshot = FXPNGImage.new($FredMW.getApp(), nil, 0, drawable.getWidth(), drawable.getHeight()) else FXMessageBox.error(self, MBOX_OK, "Error on file format", "Please, use a file extension among (gif, bmp, jpg, png).") return end snapshot.create() dc = FXDCWindow.new(snapshot) dc.drawArea(drawable, 0, 0, drawable.getWidth(), drawable.getHeight(), 0, 0) dc.end() snapshot.restore() FXFileStream.open(filename, FXStreamSave){|stream| snapshot.savePixels(stream) } end ###################################################################### The problem is that this function works great on Windows, without any problem .. on Linux instead it produces broken images ( I cannot open the PNG with Gimp since it says something about a PNG broken .. the BMP format can be open but there is trash in the image, not the widget) .. any idea of what can be different between windows and linux on that particular function? I''m using Ruby 1.8.1 and FXRuby 1.0.25 Thanks for the help, 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