Possibly it's due to the wrong name. You cannot require Fox
, since it is a Module
. In ruby you include Modules
.
Good syntax:
include Fox
If you wanna require something from Fox libraries, (what is highly recommended :D), you should require the 'fox16'
library.
Here is a basic window program:
require 'fox16'
include Fox
class Main < FXMainWindow
def initialize(app)
super(app, "Window", :width => 600, :height => 600)
end
def create
super
show(PLACEMENT_SCREEN)
end
end
if __FILE__ == $0
FXApp.new("Window") do |app|
Main.new(app)
app.create
app.run
end
end