changing color of a window

Hello,

How can I change color of whole window (menubar, frame etc.)

Thanks in adv.

How can I change color of whole window (menubar, frame etc.)

wxWindow class has methods:

SetBackgroundColour
SetForegroundColour

so all classes that inhierit from this it have these methods including
wx.MenuBar and wx.Frame.

Przemek

PS. Example in demo:
MoreWindows/Controls->GenericButtons

···

--
Przemyslaw G. Gawronski
Informatyk w Sekcji Systemu, Telemetria
TNS OBOP
ul.Dereniowa 11
02-776 Warszawa
e przemyslaw.gawronski@tns-global.pl
t +48 22 648 20 44 (-46)
f +48 22 644 9947
http://www.tns-global.pl

where i must write it? and how? my menubar is still as grey as it was:)
help:)

thx

···

At 14:06 2003-08-13 +0200, you wrote:

> How can I change color of whole window (menubar, frame etc.)

wxWindow class has methods:

SetBackgroundColour
SetForegroundColour

so all classes that inhierit from this it have these methods including
wx.MenuBar and wx.Frame.

Przemek

PS. Example in demo:
MoreWindows/Controls->GenericButtons

Przemo wrote:

···

At 14:06 2003-08-13 +0200, you wrote:

> How can I change color of whole window (menubar, frame etc.)

wxWindow class has methods:

SetBackgroundColour
SetForegroundColour

so all classes that inhierit from this it have these methods including
wx.MenuBar and wx.Frame.

Przemek

PS. Example in demo:
MoreWindows/Controls->GenericButtons

where i must write it? and how? my menubar is still as grey as it was:)
help:)

Eventhough the class inherits Set[Fore|Back]groundColour the native widgets on the platform can still choose to ignore it for specific window types, such as menubars.

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!