I have a question about ComboBox
-
Hi guys,
I have a question about comboBox.
Is there any public functions like a "SetCurSel" in MFC?Thank you,
-
For those of us not familiar with MFC: what does that function do?
-
Thanks Andre.
It is "Selects a string in the list box of a combo box".
ex)
@
int SetCurSel(
int nSelect
);@
Thank you,
-
So, like setCurrentIndex() does in [[doc:QComboBox]]? Your example is not very clear. If you want to select based on string, you'll have to use findText() first, and then use the returned index with the aforementioned setCurrentIndex().
-
Should be: setCurrentIndex()
-
That is what I want!! Thanks guys!!