[fxruby-users] TEXT_AUTOSCROLL option in FXText does not work?
Elbers, H.P.
H.P.Elbers at boskalis.nl
Tue Sep 23 10:30:03 EDT 2008
I think the TEXT_AUTOSCROLL option in FXText does not work (last line is
not visible)...
Version: 1.6.16
Example code:
#!/usr/bin/env ruby
require 'fox16'
include Fox
class Scroller < FXMainWindow
def initialize(app)
super(app, "Test", :opts => DECOR_ALL, :width => 800, :height =>
400)
FXButton.new(self, "Go!!!").connect(SEL_COMMAND, method(:onGo))
@out = FXText.new(self, :opts =>
TEXT_AUTOSCROLL|LAYOUT_FILL_X|LAYOUT_FILL_Y)
end
def create
super
show(PLACEMENT_SCREEN)
end
def onGo(sender, sel, ptr)
100.times do |i|
@out.appendText "line #{i}\n"
end
return 1
end
end
application = FXApp.new('Scroller', 'Test')
Scroller.new(application)
application.create
application.run
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20080923/67a82cd2/attachment.html>
More information about the fxruby-users
mailing list