require 'fox16'
include Fox
app = FXApp.new
main = FXMainWindow.new(app, "Hello, World!")
button=FXButton.new(main, "Hello, World!")
以上参见http://vivimusing.iteye.com/admin/blogs/224254
button.tipText = "Push Me!"
FXButton控件的tipText属性。
button.connect(SEL_COMMAND) do |sender,selector,data|
exit
end
以上参见http://vivimusing.iteye.com/admin/blogs/224254
FXToolTip.new(app)
FXToolTip其实是区别于main的另一个容器。
app.create
main.show(PLACEMENT_SCREEN)
app.run