I develop an C++ application for Raspberry PI using wxWidgets (GTK2).
When I create a button in wxPanel, it looks correctly. But if I change wxPanel to wxScrolledWindow (or wxScrolled<wxPanel>), the buttons appearance changes it - thick white border appears around it. Even if I change the button background colour, the white border stays there.
The code to reproduce is very simple:
Code: Select all
class CScreen :
public wxScrolled<wxPanel>
{
public:
CScreen(CMainWindow* pParent) : wxScrolled<wxPanel>(pParent) {
wxButton* button = new wxButton(this, wxID_ANY, L"BUTTON");
button->SetBackgroundColour(wxColour(0, 0, 255));
}
};
Is it some known problem or is there some solution/workaround for it?