Sha256: a83482fe1c02affaae7fd3200488c84cb00b9c58a7e4f65b24c7dd739688f74b

Contents?: true

Size: 631 Bytes

Versions: 34

Compression:

Stored size: 631 Bytes

Contents

require 'fox16'

include Fox

class RulerViewExample < FXMainWindow
  def initialize(app)
    # Initialize base class
    super(app, "Ruler View", :opts => DECOR_ALL, :width => 400, :height => 400)
    
    # Construct a ruler view inside
    ruler_view = FXRulerView.new(self, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y)
    
    # And put some content inside that
    contents = FXText.new(ruler_view, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y)
    contents.text = "This is a test."
  end
end

if __FILE__ == $0
  FXApp.new do |app|
    main = RulerViewExample.new(app)
    app.create
    main.show(PLACEMENT_SCREEN)
    app.run
  end
end

Version data entries

34 entries across 34 versions & 2 rubygems

Version Path
fxruby-1.6.22.pre2-x86-mingw32 examples/rulerview.rb
fxruby-1.6.22.pre2 examples/rulerview.rb
fxrubi-1.6.22.pre1-x86-mingw32 examples/rulerview.rb
fxrubi-1.6.22.pre1 examples/rulerview.rb
fxruby-1.6.20-x86-mingw32 examples/rulerview.rb
fxruby-1.6.20-x86-linux examples/rulerview.rb
fxruby-1.6.20 examples/rulerview.rb
fxruby-1.6.20-universal-darwin-10 examples/rulerview.rb
fxruby-1.6.19-x86-mingw32 examples/rulerview.rb
fxruby-1.6.14-mswin32 examples/rulerview.rb
fxruby-1.6.13-mswin32 examples/rulerview.rb
fxruby-1.6.11 examples/rulerview.rb
fxruby-1.6.10 examples/rulerview.rb
fxruby-1.6.12 examples/rulerview.rb
fxruby-1.6.13 examples/rulerview.rb
fxruby-1.6.14-universal-darwin-9 examples/rulerview.rb
fxruby-1.6.15-universal-darwin-9 examples/rulerview.rb
fxruby-1.6.14 examples/rulerview.rb
fxruby-1.6.15-x86-mswin32-60 examples/rulerview.rb
fxruby-1.6.15 examples/rulerview.rb