Whipped up my first FOX dealy ... and it don't work. It creates the form,
creates the button, but the button click event is not hooked up to my
method. I tried to model it after the examples in the Windows dist, but ...
can anyone see what I'm doing wrong?

############################################################################
#

require 'camelot.acceptance.tests'
require 'fox'
require 'fox/responder'

include Fox

class TestWindow < FXMainWindow
  include Responder
  include JobBoardRemote

  ID_CREATE_JOB, ID_SOMETHING_ELSE = enum(FXMainWindow::ID_LAST, 2)
  
  def initialize(app)
    super(app, "Camelot Test Utility", nil, nil, DECOR_ALL, 0, 0, 100, 100)
    FXMAPFUNC(SEL_COMMAND, ID_CREATE_JOB, "onCreateJob")
    FXButton.new(self, "Create Test Job", nil, app, ID_CREATE_JOB)
  end
  
  def create
    super
    show(PLACEMENT_SCREEN)
  end

  def onCreateJob(sender, sel, ptr)
    # never hits here
    raise "test"
    setTestValues
    begin
      createTestJob
    ensure
      @iec.close
    end
  end
end

def run
  application = FXApp.new("Camelot Test Utility", "Snelling")
  application.init(ARGV)
  TestWindow.new(application)
  application.create
  application.run
end

run