Getting user input into a list control
-
I want to get user input when a user clicks a item in list control. Is there any easier or better way to achieve this than to use an edit box, display it where user has clicked, then read the data from edit box and display it into list control? Thanks.
the fruits of your success will be in direct ratio to the honesty and sincerity of your own efforts in keeping your own records, doing your own thinking and, reaching your own conclusions. ..surviving in autumn..in love with spring..
-
I want to get user input when a user clicks a item in list control. Is there any easier or better way to achieve this than to use an edit box, display it where user has clicked, then read the data from edit box and display it into list control? Thanks.
the fruits of your success will be in direct ratio to the honesty and sincerity of your own efforts in keeping your own records, doing your own thinking and, reaching your own conclusions. ..surviving in autumn..in love with spring..
I don't quite get your requirement. Can you explain?
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP
-
I want to get user input when a user clicks a item in list control. Is there any easier or better way to achieve this than to use an edit box, display it where user has clicked, then read the data from edit box and display it into list control? Thanks.
the fruits of your success will be in direct ratio to the honesty and sincerity of your own efforts in keeping your own records, doing your own thinking and, reaching your own conclusions. ..surviving in autumn..in love with spring..
Instead of using a list control, use a list-view control with LVS_EDITLABELS style set. See MSDN List-view control or LVS_EDITLABELS for details.
Cheers Steen. "Are you gonna check your makeup when you're done whining?" John Simmons, 05/31/2006 "Of course, the next day it automatically updates, and your quick'n'dirty patches cause the new binaries to segfault all over your linoleum. If only you'd had the source..." Shog, 10/18/2006 "One day I realized that sadness is just another word for not enough coffee" Wally, 10/18/2006
-
I don't quite get your requirement. Can you explain?
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP
I am sorry for being ambiguous. I want to show 10 numbers to user and corresponsing to each number, I need a string from user. For this, I am using a list control inside a dialog box and in first column, 1-10 numbers will be placed in 10 rows and in second column, user will enter text corresponding to each number. Then I need to store all this data. My problems are - If I use list control, then the sub items(second column) does not appear to editable. Second, I am wondering whether xml is the right way to store this data or do I have other options? I expect the number of items to grow. Thanks for any inputs.
the fruits of your success will be in direct ratio to the honesty and sincerity of your own efforts in keeping your own records, doing your own thinking and, reaching your own conclusions. ..surviving in autumn..in love with spring..
-
I am sorry for being ambiguous. I want to show 10 numbers to user and corresponsing to each number, I need a string from user. For this, I am using a list control inside a dialog box and in first column, 1-10 numbers will be placed in 10 rows and in second column, user will enter text corresponding to each number. Then I need to store all this data. My problems are - If I use list control, then the sub items(second column) does not appear to editable. Second, I am wondering whether xml is the right way to store this data or do I have other options? I expect the number of items to grow. Thanks for any inputs.
the fruits of your success will be in direct ratio to the honesty and sincerity of your own efforts in keeping your own records, doing your own thinking and, reaching your own conclusions. ..surviving in autumn..in love with spring..
For in-place editing, Steen Krogsgaard has given you the idea.
theCPkid wrote:
Second, I am wondering whether xml is the right way to store this data or do I have other options?
Well, that totally depends on your choice. You can put it in the registry as well. If it is in an XML or inf file, it becomes easily portable (if such a thing is desired).
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP