Codebase list ruby-fxruby / a5d6a9f5-5862-46e6-bc06-a6194f1ab36f/upstream examples / hello.rb
a5d6a9f5-5862-46e6-bc06-a6194f1ab36f/upstream

Tree @a5d6a9f5-5862-46e6-bc06-a6194f1ab36f/upstream (Download .tar.gz)

hello.rb @a5d6a9f5-5862-46e6-bc06-a6194f1ab36f/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()