I am trying to add label to wxStaticBitmap, but it is not appearing in the panel. Here is my code.
bitmap_file_name = _U("numbertwo.png");
wxBitmap Featurebitmap((bitmap_path + bitmap_file_name), wxBITMAP_TYPE_PNG);
wxStaticBitmap *pFeature = new wxStaticBitmap(this, -1, Featurebitmap, wxDefaultPosition, wxDefaultSize, wxALIGN_BOTTOM, wxT("Feature Label - text"));
pFeature->SetCursor(wxCursor(wxCURSOR_HAND));
wxStaticBitmap
shows only a bitmap, it doesn't support text label. You have many choices to show a label if you need it:wxStaticText
control.wxButton
, which can show both a label and a bitmap.