Skip to content

Instantly share code, notes, and snippets.

@lylejohnson
Created September 7, 2010 20:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lylejohnson/569058 to your computer and use it in GitHub Desktop.
Save lylejohnson/569058 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'fox16'
include Fox
class MainWindow < FXMainWindow
def initialize(app)
super(app, "Example", :opts => DECOR_ALL, :width => 600, :height => 400)
mainFrame = FXVerticalFrame.new(self, LAYOUT_FILL_X|LAYOUT_FILL_Y)
text = FXText.new(mainFrame, :opts => VSCROLLER_NEVER|TEXT_WORDWRAP|LAYOUT_FILL_X|LAYOUT_FILL_Y)
text.text = "Repeated Text " * 1000
end
def create
super
show(PLACEMENT_SCREEN)
end
end
if __FILE__ == $0
FXApp.new do |app|
MainWindow.new(app)
app.create
app.run
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment