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