wxMSW: notebook color problem

Robin Dunn robin at alldunn.com
Tue Oct 3 15:25:12 PDT 2006


Hi,

A notebook coloring problem has been discussed today on the =

wxPython-users list.  I thought I had seen this before but the =

workaround I recalled didn't work so maybe it is a new problem.

Take a wxFrame with a panel, and put a wxNotebook on the panel with a =

sizer to get it to fill the panel, but don't put a page in the notebook =

yet.  Now add a menubar with a menu item whose event handler puts a page =

in the notebook.

When the first page is added to the notebook the color of the page =

window is the default panel background color, not the textured XP theme =

color.  When the frame is resized larger then the newly exposed area =

will have a lighter shade, but still not the correct theme texture. =

After adding a second page then the texture is correct.

Delaying the creation of the notebook until the time that the first page =

is added doesn't give any improvement.

I've tried various combinations of Refresh, ClearBackground, =

Freeze/Thaw, etc. and nothing seems to work to make that first page have =

the right background, other than actually damaging the window by =

dragging another window over the top of it.

Anybody know what is causing this?


-- =

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: page1.png
Type: image/png
Size: 11068 bytes
Desc: not available
Url : http://lists.wxwidgets.org/pipermail/wx-dev/attachments/20061003/2477=
27cf/page1.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page2.png
Type: image/png
Size: 11968 bytes
Desc: not available
Url : http://lists.wxwidgets.org/pipermail/wx-dev/attachments/20061003/2477=
27cf/page2.png


More information about the wx-dev mailing list