Codebase list ruby-fxruby / aa8fb3b5-a9a3-46d2-9f41-e309dcc81971/upstream examples / hello.rb
aa8fb3b5-a9a3-46d2-9f41-e309dcc81971/upstream

Tree @aa8fb3b5-a9a3-46d2-9f41-e309dcc81971/upstream (Download .tar.gz)

hello.rb @aa8fb3b5-a9a3-46d2-9f41-e309dcc81971/upstreamraw · history · blame

#!/usr/bin/env ruby

require 'fox16'

include Fox

application = FXApp.new("Hello", "FoxTest")
main = FXMainWindow.new(application, "Hello", nil, nil, DECOR_ALL)
FXButton.new(main, "&Hello, World!", nil, application, FXApp::ID_QUIT)
application.create()
main.show(PLACEMENT_SCREEN)
application.run()