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.48 examples/rulerview.rb
fxruby-1.6.48-x64-mingw32 examples/rulerview.rb
fxruby-1.6.48-x64-mingw-ucrt examples/rulerview.rb
fxruby-1.6.48-x86-mingw32 examples/rulerview.rb
fxruby-1.6.47 examples/rulerview.rb
fxruby-1.6.47-x64-mingw-ucrt examples/rulerview.rb
fxruby-1.6.47-x64-mingw32 examples/rulerview.rb
fxruby-1.6.47-x86-mingw32 examples/rulerview.rb
fxruby-1.6.46 examples/rulerview.rb
fxruby-1.6.46-x64-mingw32 examples/rulerview.rb
fxruby-1.6.46-x64-mingw-ucrt examples/rulerview.rb
fxruby-1.6.46-x86-mingw32 examples/rulerview.rb
fxruby-1.6.45 examples/rulerview.rb
fxruby-1.6.45-x64-mingw32 examples/rulerview.rb
fxruby-1.6.45-x64-mingw-ucrt examples/rulerview.rb
fxruby-1.6.45-x86-mingw32 examples/rulerview.rb
fxruby-1.6.44 examples/rulerview.rb
fxruby-1.6.44-x64-mingw32 examples/rulerview.rb
fxruby-1.6.44-x86-mingw32 examples/rulerview.rb
fxruby-1.6.43 examples/rulerview.rb