Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lylejohnson/569051 to your computer and use it in GitHub Desktop.
Save lylejohnson/569051 to your computer and use it in GitHub Desktop.
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 => 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