Martin aus Chemnitz
2004-Dec-15 12:14 UTC
[fxruby-users] Why does FXScrollArea not scroll?
Hi!
I am new to Ruby and Fox and at the moment am stuck at a problem where I
cannot find an answer (I tried the examples and surfed the net for ages).
I created an (almost) minimal example. Can anyone tell my, why the
following FXScrollArea does not scroll? Thanks a lot!
Martin
require ''fox''
include Fox
class MyWindow < FXMainWindow
def initialize(app)
super(app, "ScrollTest", nil, nil, DECOR_ALL, 0, 0, 400, 300)
@scrollarea = FXScrollArea.new(self,
SCROLLERS_NORMAL|LAYOUT_FILL_X|LAYOUT_FILL_Y)
FXButton.new(@scrollarea, "text", nil, nil, 0,
LAYOUT_FIX_WIDTH|LAYOUT_FIX_HEIGHT, 10, 10, 600, 600)
puts @scrollarea.contentHeight
end
def create
super
show(PLACEMENT_SCREEN)
end
end
if __FILE__ == $0
$application = FXApp.new("ScrollTest", "ScrollTest")
MyWindow.new($application)
$application.create
$application.run
end
On Wed, 15 Dec 2004 18:15:55 +0100, Martin aus Chemnitz <MartinAusChemnitz@gmx.net> wrote :> I created an (almost) minimal example. Can anyone tell my, why the > following FXScrollArea does not scroll? Thanks a lot!I''m pretty sure that, for what you''re trying to accomplish, you want to use an FXScrollWindow instead of the basic FXScrollArea.
Martin aus Chemnitz
2004-Dec-16 16:35 UTC
[fxruby-users] Why does FXScrollArea not scroll?
>> I created an (almost) minimal example. Can anyone tell my, why the >> following FXScrollArea does not scroll? Thanks a lot!> I''m pretty sure that, for what you''re trying to accomplish, you want to use > an FXScrollWindow instead of the basic FXScrollArea.Okay. But, when I replace FXScrollArea with FXScrollWindow, I still do not get any scroll bars... Thanks for your patience with me Martin