Objective Grid: Combobox type-to functionality

Article ID: 180
Last updated: 04 Jun, 2018
Article ID: 180
Last updated: 04 Jun, 2018
Revision: 3
Views: 2212
Posted: 23 Jan, 2001
by Meltreger B.
Updated: 04 Jun, 2018
by Meltreger B.

Problem


How do I get type-to functionality in CGXComboBoxWnd?


Cause



Action


Create the combobox with CBS_SORT style as follows:

CGXComboBoxWnd* pWnd = new CGXComboBoxWnd(pGrid);

pWnd->Create(WS_VSCROLL | CBS_DROPDOWNLIST | CBS_SORT, GX_IDS_CTRL_CBS_DROPDOWNLIST);

pWnd->m_bFillWithChoiceList = TRUE;
pWnd->m_bWantArrowKeys = FALSE;

RegisterControl(GX_IDS_CTRL_CBS_DROPDOWNLIST, pWnd);

Apply this control for the corresponding cells. With the CBS_SORT style the list box will be sorted as well as providing the "type-to" functionality (similarly for the dropdown type CGXComboBoxWnd).

This article was:   Helpful | Not helpful
Report an issue
Article ID: 180
Last updated: 04 Jun, 2018
Revision: 3
Views: 2212
Posted: 23 Jan, 2001 by Meltreger B.
Updated: 04 Jun, 2018 by Meltreger B.

Others in this category