May 14, 2024, 09:40:54 AM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


CComboBox Request

Started by J B Wood (Zumwalt), June 14, 2006, 07:43:36 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

J B Wood (Zumwalt)

Addition:

CComboBox::Sort

Purpose:
Allow the sorting of the ComboBox in either Ascending, Descending order.

Inputs:
nDirection - Int   :   This is a value of 0,1,2
                        :   Default is 0, meaning no sort order, use the values in the order in which they are added
                        :  1 would be for Ascending order
                        :  2 would be for Descending order

Outputs:
None

Notes:
The sort would be based on left to right reading of values at every index level.
Theoretically, the sorted box is technically a new copy of the CComboBox object given new index's for sorted items.
This allows for a multi sport option, where the user should be able to click on another control that sends sort decision to the combobox, without changing the physical order in which the items are in the original box. Think of it as a datatable sort type.