/************************************************************************* Causes the list box to update it's internal state after changes have been made to one or more attached ListboxItem objects. *************************************************************************/ void Listbox::handleUpdatedItemData(void) { if (d_sorted) resortList(); configureScrollbars(); invalidate(); }
/************************************************************************* Causes the list box to update it's internal state after changes have been made to one or more attached ListboxItem objects. *************************************************************************/ void Listbox::handleUpdatedItemData(void) { if (d_sorted) resortList(); configureScrollbars(); requestRedraw(); }
/************************************************************************* Set whether the list should be sorted. *************************************************************************/ void Listbox::setSortingEnabled(bool setting) { // only react if the setting will change if (d_sorted != setting) { d_sorted = setting; // if we are enabling sorting, we need to sort the list if (d_sorted) { resortList(); } WindowEventArgs args(this); onSortModeChanged(args); } }