1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
bool yguyguyApp::OnInit()
{
wxFrame *frame = new wxFrame((wxFrame*) NULL, -1, _T("Hello wxWidgets World"));
frame->CreateStatusBar();
frame->SetStatusText(_T("Hello World"));
frame->Show(true);
SetTopWindow(frame);
std::cout << "hello wibuhdu" << std::endl;
wxFrame *frame2 = new wxFrame((wxFrame*) NULL, -1, _T("Hello hyguygigybdgets World"));
frame2->CreateStatusBar();
frame2->SetStatusText(_T("Hello World"));
unsigned char a = 0;
unsigned char b = 170;
unsigned char c = 0;
unsigned char d = 120;
wxColour* colour = new wxColour(a,b,c,d); // use either one
wxColour colour2(a,b,c,d);
frame2->Show(true);
frame2->SetBackgroundColour(colour2); // DOES NOT CHANGE
SetTopWindow(frame2);
// wxPanel * panel = new wxPanel(frame2, wxID_ANY, wxDefaultPosition,
wxSize(300, 300)); WHEN I UNCOMMENT THIS IT CHANGES
return true;
}
|