Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
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 );
@
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!!