Search found 108 matches

by art-ganseforth
Wed Feb 06, 2019 9:53 pm
Forum: Platform Related Issues
Topic: wxFrame-border & -title-bar paint
Replies: 7
Views: 178

Re: wxFrame-border & -title-bar paint

And one more... ... working as resize-border (note the the destruchtor is probably not valid)... class clsBorderHelper : public wxFrame { wxWindow *Parent ; wxPoint mp; public: void OnMouseMove (wxMouseEvent &event) { wxPoint delta = event.GetPosition() - mp; Parent->SetPosition (Parent->GetPosition...
by art-ganseforth
Wed Feb 06, 2019 9:09 pm
Forum: Platform Related Issues
Topic: wxFrame-border & -title-bar paint
Replies: 7
Views: 178

Re: wxFrame-border & -title-bar paint

Supplement:

Calling Update() in OnParentRepos (wxEvent &event) after this->SetSize(...); reduces the delay of the covering frame...
by art-ganseforth
Wed Feb 06, 2019 8:42 pm
Forum: Platform Related Issues
Topic: wxFrame-border & -title-bar paint
Replies: 7
Views: 178

Re: wxFrame-border & -title-bar paint

Okay... Here is a raw programmed fix for this white top-border. It's a wxFrame covering it. It has to be created calling new clsBorderHelper(this); Class: class clsBorderHelper : public wxFrame { wxWindow *Parent ; public: virtual void OnParentRepos (wxEvent &event) { event.Skip(); wxSize diff(Paren...
by art-ganseforth
Wed Feb 06, 2019 6:49 pm
Forum: Platform Related Issues
Topic: wxFrame-border & -title-bar paint
Replies: 7
Views: 178

Re: wxFrame-border & -title-bar paint

wxScreenDC won't work if the titlebar is covered by other windows. So i stop this...
by art-ganseforth
Wed Feb 06, 2019 6:29 pm
Forum: Platform Related Issues
Topic: wxFrame-border & -title-bar paint
Replies: 7
Views: 178

Re: wxFrame-border & -title-bar paint

I need resizing. Currently i try to use the draw-event, to draw on wxScrennDC (having some problems with coorinates at the moment). If it works, i'll post it here. I think this is interesting not only for me... Concerning the other points: - Resizing the frame after showing it, shows its content at ...
by art-ganseforth
Tue Feb 05, 2019 11:32 pm
Forum: Platform Related Issues
Topic: wxFrame-border & -title-bar paint
Replies: 7
Views: 178

wxFrame-border & -title-bar paint

Hello, i work on a program, using some wxFrame-windows (wx 3.1.2). The application has a dark skin. So i want to get rid of the white Win10-window-borders and elements. But there are some problems with three things: - There stays a small white top-border if the wxFrame is drawn without title-bar. - ...
by art-ganseforth
Thu Jan 31, 2019 12:11 pm
Forum: C++ Development
Topic: wxWidgets 3.1.2 / wxGLCanvas crashes OpenGL-context
Replies: 4
Views: 142

Re: wxWidgets 3.1.2 / wxGLCanvas crashes OpenGL-context

I've found the solution. The point is, that after creating a second wxGLCanvas, the Context has to be SetCurrent again . For this SetCurrent-call it's not relevant which canvas is used. It needn't necessarily to be the new one. I found the point after isolating it in a short single-file-test-project...
by art-ganseforth
Thu Jan 31, 2019 2:57 am
Forum: C++ Development
Topic: wxWidgets 3.1.2 / wxGLCanvas crashes OpenGL-context
Replies: 4
Views: 142

Re: wxWidgets 3.1.2 / wxGLCanvas crashes OpenGL-context

One more interesting point: In fact there is only one SetCurrent-call up to this point - the one that is used to initialitze the context. So, creating the canvas seem to has an effect on a context that is not it's current.
by art-ganseforth
Thu Jan 31, 2019 2:22 am
Forum: C++ Development
Topic: wxWidgets 3.1.2 / wxGLCanvas crashes OpenGL-context
Replies: 4
Views: 142

Re: wxWidgets 3.1.2 / wxGLCanvas crashes OpenGL-context

Thank you, but i'm not sure, if you understand what i mean. These lines... new clsBuffer ( 2, 2, "test 2" ); ...are only used to test if the openGL-context still accepts texture-allocations, after the leine before, and to get a log-outpout. 5-6 lines later i call exit(0);, so the pointer needes not ...
by art-ganseforth
Wed Jan 30, 2019 10:28 pm
Forum: C++ Development
Topic: Using wxWidgets in a Multi-process Architecture
Replies: 8
Views: 154

Re: Using wxWidgets in a Multi-process Architecture

As far as i understand you, i would think i had the same question some weeks ago. I found two possible solutions: You may use wxThread to program some explizit multithreading (seem quiet complicated without some multithreading-experience, so i did not try it). Alternatively there is OpenMP, which se...
by art-ganseforth
Wed Jan 30, 2019 10:02 pm
Forum: C++ Development
Topic: wxWidgets 3.1.2 / wxGLCanvas crashes OpenGL-context
Replies: 4
Views: 142

wxWidgets 3.1.2 / wxGLCanvas crashes OpenGL-context

Hey folks! Since changing from wxWidgets 2.9.3 to 3.1.2 (Win10 / MingW32), i have the problem, that additional wxGLCanvas-creation seem to crash the existing OpenGL-context. The program is executes normal, but there are textures 'getting lost', like this: The first wxGLCanvas and the wxGLContext is ...
by art-ganseforth
Mon Jan 28, 2019 3:45 pm
Forum: Compiler / Linking / IDE Related
Topic: Confusion with MinGW-compiler-options
Replies: 3
Views: 157

Re: Confusion with MinGW-compiler-options

Problem is solved - found help at Code::Blocks-forum.
by art-ganseforth
Sun Jan 27, 2019 4:26 pm
Forum: Compiler / Linking / IDE Related
Topic: Confusion with MinGW-compiler-options
Replies: 3
Views: 157

Re: Confusion with MinGW-compiler-options

Thank you for replying... I use MingW32 currently. The order of libraries seems not to lead to problems at the moment, but if it does, i can copy the order of my working devC-setup. In between i found out that C::B fooled me for two days, by compiling my test-application into one one folder, but sta...
by art-ganseforth
Sat Jan 26, 2019 4:56 pm
Forum: Compiler / Linking / IDE Related
Topic: Confusion with MinGW-compiler-options
Replies: 3
Views: 157

Confusion with MinGW-compiler-options

Hello everyone, for a long time i worked with a compiler-setup, that i downloaded at once (IDE, compiler, libraries). Now i want to install the components myself and also update everything to the latest versions, but i'm a newbie in this point. I was successfull in so far, that i have a working setu...
by art-ganseforth
Thu Jan 24, 2019 3:57 pm
Forum: wxDev-C++
Topic: Problems after migration
Replies: 1
Views: 82

Re: Problems after migration

Found it myself. I hat to reorder some includes.