Search found 116 matches

by art-ganseforth
Fri Jun 14, 2019 9:27 pm
Forum: C++ Development
Topic: wxDC / antialiasing
Replies: 2
Views: 111

Re: wxDC / antialiasing

Hey! Somehow you're right. For testing the capabilities of my control, i used rotated text (90deg). Obviously antialiasing is only working with horizontal text. So maybe (where it's important) i draw text text horizontally at first to a seperate bitmap to be copied rotated to the output. Anyway: wxG...
by art-ganseforth
Fri Jun 14, 2019 8:35 pm
Forum: C++ Development
Topic: wxDC / antialiasing
Replies: 2
Views: 111

wxDC / antialiasing

Hello everyone, i currently try to replace parts of my UI by more absract control-types, so that the user can custom how values are displayed. For optimisation i use a wxMemoryDC on a bitmap, to render the content that is painted to the control in the paint-event. I now found out, that text (most im...
by art-ganseforth
Sun Mar 03, 2019 1:36 pm
Forum: Platform Related Issues
Topic: wxGLCanvas framerate-problen under win10
Replies: 9
Views: 453

Re: wxGLCanvas framerate-problen under win10

Yes, it crashes on closing. Exiting the application with a correct clean-up will be a chapter for itself. Currently it's like this: pressing the button will call an event-function, that calls the interpreter-instance associated with this button to "execute" a string that is stored as event-function,...
by art-ganseforth
Sun Mar 03, 2019 2:12 am
Forum: Platform Related Issues
Topic: wxGLCanvas framerate-problen under win10
Replies: 9
Views: 453

Re: wxGLCanvas framerate-problen under win10

Sorry for delay (see below)... What i meant is: i've an UHD-display on my notebook. So i applied global scaling by the system otherwise several applications have too small controls and text. Therefore my desktop has a virtual resolution of (i think) 1920x1080 and with wxDC i can't refer more, even i...
by art-ganseforth
Fri Feb 22, 2019 8:42 pm
Forum: Platform Related Issues
Topic: wxGLCanvas framerate-problen under win10
Replies: 9
Views: 453

Re: wxGLCanvas framerate-problen under win10

By the way: Concernig drawing bitmaps etc.: Is there any way to apply physical coordinate to wxDC? It would be nice to have smaller borders around my buttons (using DrawLine()).
by art-ganseforth
Fri Feb 22, 2019 8:34 pm
Forum: Platform Related Issues
Topic: wxGLCanvas framerate-problen under win10
Replies: 9
Views: 453

Re: wxGLCanvas framerate-problen under win10

BTW: What framerate did you get with VSync disabled? This depends on several factors. I've a fixed framrate (set by a control). At default my program starts with a fps-setting of 60 but i also tried 120. I use a one-shot-timer and adapt the interval permanently. So, mostly the rate stays constant i...
by art-ganseforth
Fri Feb 22, 2019 2:16 am
Forum: Platform Related Issues
Topic: wxGLCanvas framerate-problen under win10
Replies: 9
Views: 453

Re: wxGLCanvas framerate-problen under win10

Hey doublemax, you're fantastic!!! It Immideatly to worked. Not even the guys at razer had an idea... Thank you so much! PS. this new notebook i decided to buy not at least after you (last october) told me that intel-gpu-drivers are buggy. So now i have this one and (now, after this hint), it works ...
by art-ganseforth
Thu Feb 21, 2019 11:24 pm
Forum: Platform Related Issues
Topic: wxGLCanvas framerate-problen under win10
Replies: 9
Views: 453

wxGLCanvas framerate-problen under win10

Hello, i've a problem with the OpenGL-framerate on wx 3.1.2 that is that my program slows down hardly the more wxGLCanvas-controls are visible. Unfortunately it's like this: the problem seems to be older (not only in the last builts) but it was not really visible. Since i have a new notebook with Nv...
by art-ganseforth
Wed Feb 06, 2019 9:53 pm
Forum: Platform Related Issues
Topic: wxFrame-border & -title-bar paint
Replies: 7
Views: 445

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: 445

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: 445

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: 445

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: 445

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: 445

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: 314

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...