[fxruby-users] fxruby and the new ruby 1.9.1

Andreas S andreas_s at hotmail.com
Sun Feb 1 01:26:31 EST 2009


Ruby 1.9.1 was just officially released and it might be too premature to report this. However, release note for fxruby 1.6.18 mentioned "minor fixes for compatibility with ruby 1.9.1". So I dare my self to send this.

Two problems I encountered:
1. gem install fxruby
    Error due to ext/fox16/extconf.rb using File.move. Changing it to use FileUtils.move fixes it (along with require 'fileutils').

2. The following code works before with ruby 1.8.7, fxruby 1.6.16/18, fox 1.16 but not with ruby 1.9.1, fxruby 1.6.18, fox 1.16. Left click on column header is not working for ruby1.9.1/fxruby1.6.18 (works if SEL_RIGHTBUTTONRELEASE handle is not defined)

require 'fox16'
include Fox

app = FXApp.new 'a', 'b'
win = FXMainWindow.new app, 'jello', :width => 400, :height => 500
table = FXTable.new(win, :opts => LAYOUT_FILL)
table.setTableSize 2, 2
table.columnHeader.connect SEL_COMMAND do |a, b, c|
  puts "HEADER CLICK"
end
#=== The above works if the following SEL_RIGHTBUTTONRELEASE is removed
table.columnHeader.connect SEL_RIGHTBUTTONRELEASE do |a, b, c|
  put "HEADER RIGHTCLICKRELEASE"
end
#===
win.show PLACEMENT_SCREEN
app.create
app.run



-andre

_________________________________________________________________
Windows Live™ Hotmail®:…more than just e-mail. 
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t2_hm_justgotbetter_explore_012009
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20090201/559542c8/attachment.html>


More information about the fxruby-users mailing list