[fxruby-users] FXListBox makeItemVisible
Lyle Johnson
lyle at knology.net
Wed Apr 26 22:17:50 EDT 2006
On Apr 26, 2006, at 8:35 PM, Gérard Ménochet wrote:
> An example
>
> libo = FXListBox.new(parent, nil, 0)
> libo.numVisible = 6
> (1980..2050).each do |i| libo.appendItem(i.to_s) end
> libo.currentItem=26
>
> No 'makeItemVisible' at the first show. If you click one year, it
> will
> always do it .
Ah, OK. Yes, I can believe that calling makeItemVisible() before the
list (or list box) is actually shown probably doesn't have any effect.
I think your workaround is probably the best bet.
More information about the fxruby-users
mailing list