Page 1 of 1

Thin gray border in fullscreen mode

Posted: Sun Jul 10, 2011 12:25 pm
by TriKri
I'm running Windows 7, and I'm having a problem with a thin light gray border around my frame when I put it up in fullscreen mode. I call

Code: Select all

ShowFullScreen(true, wxFULLSCREEN_ALL);
but there is still a border around the window, maybe 1 or 2 pixels thick (I don't know, I can't get it to stick on a printscreen). Since the border is light gray (like the frame itself) and I use a canvas that I paint black and that covers the rest of the frame, the border is quite disturbing. I would also like to be able to use those pixels that the frame takes up for drawing. Why do I get the frame and how can I get rid of it?

Edit: Apparently I could get the frame to stick on a printscreen, I must have just not seen it at first.

Re: Thin gray border in fullscreen mode

Posted: Sun Jul 10, 2011 12:32 pm
by doublemax
Is it possible that the border does not come from the outer frame, but from an inner panel? Try setting wxBORDER_NONE for the panel then.

Re: Thin gray border in fullscreen mode

Posted: Sun Jul 10, 2011 12:51 pm
by TriKri
Thanks, that solved my problem. I just realized that the code that calls the wxGLCanvas constructor (that I had copied, I think from the penguin example) used wxSUNKEN_BORDER. Why would anyone want to use that? :P Well, maybe there are cases when you want to use that.