User forums > Using Code::Blocks
wxlistbox Arrays with CASE and SWITCH not working
oBFusCATed:
You're miles away from the correct code :twisted:
But you're a real man and you don't read manuals or books, and then when it doesn't work the way you think it should, you blame others for not writing the code for you.
Sorry, I'm not going to help you and I hope no one would.
p.s. if you want to program in c++ you'll have to read a book on the topic. :twisted:
papayrus:
Obviously it takes a real man like you to not help. The code is not miles away from proper. If you think this code is right for the purpose then you are miles off.
--- Code: ---int sel = event.GetInt();
wxLogMessage(_T("Listbox item %d selected"), sel);
--- End code ---
That code wont give you options for each selection. The code I wrote is very close because I have been researching and thats what they use or something like it. Oh I did read and read and read I went through and reverse engineered all the examples that wxdev provided and they all come down to that little code up there that does not do what I need to do. I searched google for 2 days and nothing worked and the info for wxlistbox to do what I want to do just is not there or not clear.
papayrus:
Obviously the last thing anyone would most likely do is fill out a form to log in to a forum so they can ask for help.
stahta01:
See http://forum.wxwidgets.org/ for wxWidgets user help
Read our rules http://forums.codeblocks.org/index.php/topic,8962.0.html
--- Quote ---3. Is your problem library, framework specific? There are appropriate forums for it, not the Code::Blocks forum.
--- End quote ---
Ceniza:
The question is completely unrelated to Code::Blocks, and even wxWidgets. Do not be surprised if this thread gets locked or removed.
The C# feature that you are trying to use does not work in C++.
Someone already suggested Google to look for an answer. I will help you with what to search for: "switch on strings in c++". For your next C++ and/or wxWidgets related question, please use a proper forum.
Once again, your question has nothing to do with Code::Blocks, therefore violating the forum rules.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version