[Fxruby-users] RE: Fxruby-users digest, Vol 1 #234 - 6 msgs
Status: Inactive
Brought to you by:
lyle
From: DeZonia, B. <bde...@wi...> - 2004-06-25 14:58:46
|
>> I'm trying to make an FXList autoscroll as items are appended to it and I'm >> not having any luck. Does anyone know how to do this? > Did you try calling FXList#makeItemVisible after adding a new item? Here is my initialization code: @output = FXList.new(outputFrame, 1, nil, 0, LIST_EXTENDEDSELECT|LAYOUT_FILL_X|LAYOUT_FILL_Y) Here is the code that updates the list: @output.appendItem(text) @output.makeItemVisible(@output.numItems-1) No other calls to @output are made. The text does show up in the list but does not scroll onto the screen when the list goes past its capacity. In FXList.new I've tried 20 instead of 1 to no avail. Any suggestions? |