[fxruby-users] FXListBox makeItemVisible
Lyle Johnson
lyle at knology.net
Wed Apr 26 20:29:06 EDT 2006
On Apr 26, 2006, at 6:02 PM, Gérard Ménochet wrote:
> I have the same problem. I tried to use the currentItem,
> setCurrentItem() method (i guess the same thing that currentItem= ),
> that
> works but apparently, no call to
> makeItemVisible(). (fxruby version 1.4.4 - ruby 1.8.4 - win32)
I just checked the source code for FXListBox in FOX 1.4.29, and calling
setCurrentItem() on an FXListBox does in fact call makeItemVisible() on
the embedded FXList:
// Change current item
void FXListBox::setCurrentItem(FXint index){
list->setCurrentItem(index);
list->makeItemVisible(index);
if(0<=index){
field->setIcon(list->getItemIcon(index));
field->setText(list->getItemText(index));
} else {
field->setIcon(NULL);
field->setText(" ");
}
}
Do you have an example program that demonstrates the problem?
Lyle
More information about the fxruby-users
mailing list