Sorting a GuiPopUpMenuCtrl
by Jason McIntosh · in Torque Game Builder · 04/15/2005 (6:22 am) · 0 replies
I would like for the popup to list the items in alphabetical order, which it does after a call to .sort(). But it doesn't reorder them internally (ie, the order in which they were added to the control), so if I want the first item in the list to be the default by using .setSelected( 0 ) it will incorrectly reference the first item added rather than the first item in sorted order. (Hope that makes sense.)
Anybody know of a way to correct this?
Anybody know of a way to correct this?
About the author