wxWidgets frame background color

B

BobR

Hans Mull said:
Hi!
How can I change the background color of a wxWidgets frame?
Thanks

<OT>
// ref: class MyFrame : public wxFrame{ /* .... */ };
MyFrame *frame = new MyFrame(_T(__BASE_FILE__));
frame->SetBackgroundColour( wxColour( 220, 230, 250 ) );
frame->Show( true );
// note: does not work on all platforms/OSs/GUIs,
// depending on their settings.
</OT>

It's IN the manual! Read it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,291
Messages
2,571,455
Members
48,132
Latest member
KatlynC08

Latest Threads

Top