Disabling some items in CCombobox
-
Hi all, I have a combo-box consisting of 30 elements. I want the elements from 1-12 enabled , and the rest(13-30) disabled and also once the user selects the disbaled items , the combo box should take care of not selecting the options How could I do this .. Regards, Veeresh
-
Hi all, I have a combo-box consisting of 30 elements. I want the elements from 1-12 enabled , and the rest(13-30) disabled and also once the user selects the disbaled items , the combo box should take care of not selecting the options How could I do this .. Regards, Veeresh
Veeresh Hiremath wrote:
I have a combo-box consisting of 30 elements. I want the elements from 1-12 enabled , and the rest(13-30) disabled
I doubt if this is possible. I don't think you could disable specific items in a CComboBox.
Veeresh Hiremath wrote:
How could I do this ..
List only what is valid.
Nobody can give you wiser advice than yourself. - Cicero
-
Hi all, I have a combo-box consisting of 30 elements. I want the elements from 1-12 enabled , and the rest(13-30) disabled and also once the user selects the disbaled items , the combo box should take care of not selecting the options How could I do this .. Regards, Veeresh
Veeresh Hiremath wrote:
I want the elements from 1-12 enabled , and the rest(13-30) disabled
you have to subclass the CComboBox for same.. subclassing is the key to this type of effect
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and you
-
Hi all, I have a combo-box consisting of 30 elements. I want the elements from 1-12 enabled , and the rest(13-30) disabled and also once the user selects the disbaled items , the combo box should take care of not selecting the options How could I do this .. Regards, Veeresh
there's an article here on CP that does that. here it is[^]
Maximilien Lincourt Your Head A Splode - Strong Bad