Search found 11 matches

by TriKri
Sun Jul 10, 2011 1:24 pm
Forum: Platform Related Issues
Topic: ShowFullScreen problem on Windows 7
Replies: 3
Views: 1969

ShowFullScreen problem on Windows 7

This is more of a bug report, but I don't know where to post it, so I'll just put it here. Besides, I don't know whether this is a platform specific issue or not, but I think it may be and I didn't find any other suitable forum to post it in. If there is some mailing list I should send this to inste...
by TriKri
Sun Jul 10, 2011 12:51 pm
Forum: C++ Development
Topic: Thin gray border in fullscreen mode
Replies: 2
Views: 1183

Re: Thin gray border in fullscreen mode

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.
by TriKri
Sun Jul 10, 2011 12:42 pm
Forum: C++ Development
Topic: wx command for preventing screensaver?
Replies: 2
Views: 816

Re: wx command for preventing screensaver?

Thanks, I will consider that. A cleaner way is to catch power events ( http://docs.wxwidgets.org/trunk/classwx_power_event.html ) and veto them, but that may not work on all systems On the other hand, wxWindow::WarpPointer "is not supported under Mac because Apple Human Interface Guidelines forbid m...
by TriKri
Sun Jul 10, 2011 12:25 pm
Forum: C++ Development
Topic: Thin gray border in fullscreen mode
Replies: 2
Views: 1183

Thin gray border in fullscreen mode

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 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 print...
by TriKri
Sun Jul 10, 2011 12:09 pm
Forum: C++ Development
Topic: wxNO_BORDER
Replies: 6
Views: 1405

Re:

I found this thread on google (6 years after the thread was started), and just to get back to the problem again: wxNO_BORDER is defined as wxBORDER_NONE, so I don't think that changing from wxNO_BORDER to wxBORDER_NONE was the thing that solved your problem, unless the two constants had different va...
by TriKri
Sun Jul 03, 2011 1:11 pm
Forum: C++ Development
Topic: wx command for preventing screensaver?
Replies: 2
Views: 816

wx command for preventing screensaver?

Hi, I'm looking for a way to prevent the screensaver from kicking in, and preferably also to prevent the screen from dimming on a laptop. I have looked around a bit on the forum, but I can't seem to find any platform independent way to do it, which I think would be perfect if there was. I think ther...
by TriKri
Thu Feb 24, 2011 3:05 pm
Forum: Component Writing
Topic: wxGLCanvas cleared when the window is resized
Replies: 6
Views: 3165

The important difference is catching the EVT_ERASE_BACKGROUND event and using an empty event handler to avoid drawing the background color. void TestGLCanvas::OnEraseBackground(wxEraseEvent& WXUNUSED(event)) { // Do nothing, to avoid flashing on MSW } Alternatively, calling SetBackgroundStyle(wxBG_...
by TriKri
Thu Feb 24, 2011 12:24 pm
Forum: Component Writing
Topic: wxGLCanvas cleared when the window is resized
Replies: 6
Views: 3165

evstevemd wrote:Working fine here with Ubuntu/wx29 GCC 4.4.3
Could you try to switch place on "wxFrame *frame;" and "BasicGLPane * glPane;" in the definition of MyApp? Maybe the canvas is drawn on the frame when refreshing the window for you, while the frame is drawn on the canvas for me by some reason?
by TriKri
Thu Feb 24, 2011 11:13 am
Forum: Component Writing
Topic: wxGLCanvas cleared when the window is resized
Replies: 6
Views: 3165

On the other hand, the penguin OpenGL example project that comes with wxWidgets, does not expose this artifact. I have tried to figure out what they differs in that example, but I'm not really sure. One thing I noticed is that it has the wxGLCanvas inside of a wxFrame that in turn is inside a wxApp,...
by TriKri
Thu Feb 24, 2011 10:43 am
Forum: General Forum Issues
Topic: Links wanted!
Replies: 1
Views: 6167

Links wanted!

I'm missing these links when I'm writing a post. Usually in forums when you are posting you can see where you are in form of a branch of a tree where all nodes are linked, e.g. " wxWidgets Discussion Forum >> General Forum Issues >> Links wanted! ". Sometimes when I'm posting in a thread I want to b...
by TriKri
Thu Feb 24, 2011 2:04 am
Forum: Component Writing
Topic: wxGLCanvas cleared when the window is resized
Replies: 6
Views: 3165

wxGLCanvas cleared when the window is resized

Hi, I followed this minimal wxGLCanvas sample , and just replaced the code in the 'minimal' sample project that comes with wxWidgets, and got it to compile directly. However, when I'm resizing the window, the image that is rendered in the window is totally cleared until I have stopped resizing it (t...