Hi,
I have a class derived from TGListBox, for which I have written the function to make it easier to select a given entry by text.
Bool_t MyClass::Select(const char *name, Bool_t sel)
{
TGLBEntry *entry = FindEntry(name);
if(!entry) return false;
cerr<<"Selecting: "<<entry->EntryId()<<endl;
TGListBox::Select(entry->EntryId(), sel);
}
Although I have set SetMultipleSelections(kTRUE), repeated calls to this Select function has the effect of only selecting the last, and
deselecting all previously selected entries. Why?
Thank you
[/code]