Sha256: 1b03194cf21e0b6f78fee6c75a9e03b300066df46fcacc97683167a5c70105d6
Contents?: true
Size: 654 Bytes
Versions: 2
Compression:
Stored size: 654 Bytes
Contents
require 'fox16' require 'fox16/kwargs' 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fxruby-1.6.6 | examples/rulerview.rb |
fxruby-1.6.7 | examples/rulerview.rb |