How to Change a Bitmap Based on a ListBox Value
Posted: Fri Apr 01, 2016 9:56 pm
Hi!
I have created a wxListBox called Icon. It contains the following Choices: Question Mark; Asterisk; Exclamation Point; Superman; Batman; and Homer.
In the same sizer, I have created a wxStaticBitmap called Pichow (ie "Picture").
And I have a directory containing images of each of those Choices, in either *.png or *.jpg format.
My goal is to change the image in Pichow based upon the current value of Choice.
Is there an example file, or tutorial, that can tell me how to do that? Conceptually, I know what to do, but I don't know the syntax.
---
Per viewtopic.php?f=11&t=804:
1. Your codelite version: 9.1.5
2. Is it a self compiled version of codelite: I don't understand this question. I did not compile it; I'm using it as-is. Does that answer the question?
3. Your OS: Windows 7. Target is Windows.
4. Compiler version: g++ TDM-GCC, version 5.1.0.3
Thank you!
Colleen
I have created a wxListBox called Icon. It contains the following Choices: Question Mark; Asterisk; Exclamation Point; Superman; Batman; and Homer.
In the same sizer, I have created a wxStaticBitmap called Pichow (ie "Picture").
And I have a directory containing images of each of those Choices, in either *.png or *.jpg format.
My goal is to change the image in Pichow based upon the current value of Choice.
Is there an example file, or tutorial, that can tell me how to do that? Conceptually, I know what to do, but I don't know the syntax.
---
Per viewtopic.php?f=11&t=804:
1. Your codelite version: 9.1.5
2. Is it a self compiled version of codelite: I don't understand this question. I did not compile it; I'm using it as-is. Does that answer the question?
3. Your OS: Windows 7. Target is Windows.
4. Compiler version: g++ TDM-GCC, version 5.1.0.3
Thank you!
Colleen