I want to do something very basic. In this case I'm trying to create an event (of which I know how to do) where I click on a wxBitmapButton and the event causes a Bitmap Image to form on the button in place of a label.
Here's the code I've used in the handler. This may look pretty dumb but I really don't know how this should work. The name of the bitmap image file is 'picta'
Which directory should the bitmap go in and is there something else I need to do here? I've put the bitmap image in several
directories with no luck.
Code: Select all
void Project12___bitmap_buttonFrm::WxBitmapButton1Click(wxCommandEvent& event)
{
wxBitmap picta;
WxBitmapButton1->SetBitmapSelected(picta);
}
Dominover