require 'fox16'
include Fox
app = FXApp.new
main = FXMainWindow.new(app , "Hello")
上述段意义参见[url=../223905]http://vivimusing.iteye.com/admin/blogs/223905[/url]
FXButton.new(main , "Hello, World!")
建立一个FXButton的ruby对象,用来操控Fox的Button控件
app.create
main.show
app.run
上述段意义参见[url=../223905]http://vivimusing.iteye.com/admin/blogs/223905[/url]