Sha256: d2e6689f5ed06d5f506a659571d515173b4f9873b039ebd847d6a4c7a85dc868

Contents?: true

Size: 623 Bytes

Versions: 100

Compression:

Stored size: 623 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

100 entries across 100 versions & 1 rubygems

Version Path
fxruby-1.6.37-x86-mingw32 examples/rulerview.rb
fxruby-1.6.37.rc1 examples/rulerview.rb
fxruby-1.6.37.rc1-x64-mingw32 examples/rulerview.rb
fxruby-1.6.37.rc1-x86-mingw32 examples/rulerview.rb
fxruby-1.6.36 examples/rulerview.rb
fxruby-1.6.36-x64-mingw32 examples/rulerview.rb
fxruby-1.6.36-x86-mingw32 examples/rulerview.rb
fxruby-1.6.35-x86-mingw32 examples/rulerview.rb
fxruby-1.6.35-x64-mingw32 examples/rulerview.rb
fxruby-1.6.35 examples/rulerview.rb
fxruby-1.6.34-x86-mingw32 examples/rulerview.rb
fxruby-1.6.34-x64-mingw32 examples/rulerview.rb
fxruby-1.6.34 examples/rulerview.rb
fxruby-1.6.33-x86-mingw32 examples/rulerview.rb
fxruby-1.6.33-x64-mingw32 examples/rulerview.rb
fxruby-1.6.33 examples/rulerview.rb
fxruby-1.6.32-x86-mingw32 examples/rulerview.rb
fxruby-1.6.32-x64-mingw32 examples/rulerview.rb
fxruby-1.6.32 examples/rulerview.rb
fxruby-1.6.32.pre2-x64-mingw32 examples/rulerview.rb