FXRuby代码笔记---hello.rb(with a button)

require 'fox16'

include Fox

app = FXApp.new

main = FXMainWindow.new(app , "Hello")

上述段意义参见 http://vivimusing.iteye.com/admin/blogs/223905

FXButton.new(main , "Hello, World!")

建立一个FXButton的ruby对象,用来操控Fox的Button控件

app.create

main.show

app.run

上述段意义参见 http://vivimusing.iteye.com/admin/blogs/223905

你可能感兴趣的:(Ruby)