When I use MDI forms in my app, on Win2k, my notebook pages have a white instead of grey background. I never noticed this before but I don't usually use Windows.
I seem to remember some discussion related to this but embarrassingly I can't find it in Google right now.
It looks really bad because controls on the notebook page have the normal grey backgrounds.
Ideas?
···
--
Paul McNett
http://paulmcnett.com
http://dabodev.com
Hi Paul,
I believe this is a known issue on Windows (can also happen on XP and I believe on 9x),
I work around it by setting the background manually just before adding the first page.
self.notebook1.SetBackgroundColour(self.GetBackgroundColour())
"self" in this case is a Dialog.
There were some posts on this list about this (in the 2.4, 2.5 time), but the only one I can find at the moment is the one attached from Robin.
Hope this helps
Werner
Paul McNett wrote:
Attached Message (3.11 KB)
···
When I use MDI forms in my app, on Win2k, my notebook pages have a white instead of grey background. I never noticed this before but I don't usually use Windows.
I seem to remember some discussion related to this but embarrassingly I can't find it in Google right now.
It looks really bad because controls on the notebook page have the normal grey backgrounds.
Ideas?
Werner F. Bruhin wrote:
Hi Paul,
I believe this is a known issue on Windows (can also happen on XP and I believe on 9x),
I work around it by setting the background manually just before adding the first page.
self.notebook1.SetBackgroundColour(self.GetBackgroundColour())
"self" in this case is a Dialog.
There were some posts on this list about this (in the 2.4, 2.5 time), but the only one I can find at the moment is the one attached from Robin.
Thanks! Will this blow away users setting themes and having the app respect it?
Note that I had to wrap this in a platform check, or the pages would be really ugly on Linux.
···
--
Paul McNett
http://paulmcnett.com
http://dabodev.com
Hi Paul,
Paul McNett wrote:
Werner F. Bruhin wrote:
Hi Paul,
I believe this is a known issue on Windows (can also happen on XP and I believe on 9x),
I work around it by setting the background manually just before adding the first page.
self.notebook1.SetBackgroundColour(self.GetBackgroundColour())
"self" in this case is a Dialog.
There were some posts on this list about this (in the 2.4, 2.5 time), but the only one I can find at the moment is the one attached from Robin.
Thanks! Will this blow away users setting themes and having the app respect it?
Frankly don't know. On my Windows boxes (XP Pro with standard Themes, 2000 Pro and 98) it looks fine, but I don't play around with the themes.
Note that I had to wrap this in a platform check, or the pages would be really ugly on Linux.
Good point, currently I only deploy on Win but at some point I want to put it onto Mac.
See you
Werner