I used the ComboBox wizard to have my combo populated from a data object. I add
another item to the combo at runtime. Below is my code that nicely does that.
Now I'd also like to re-sort the combo, so my new item blends in with the
others. How do I do that? Thanks, Janet
//[[SPIDER_EVENT<cboXXX_onBeforeDisplayEvent>
public int cboPhase_onBeforeDisplayEvent(CSpDisplayEvent event)
{
//manually add an item to the bottom of the comboBox
CSpComboBox cbo= (CSpComboBox) event.getSource();
cbo.addSelectable ("Add Me", new CSpString("Add Me"));
//sort the combo here
return (PROCEED);
}
//]]SPIDER_EVENT<cboXXX_onBeforeDisplayEvent>
_________________________________________________________________________
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]