Search found 147 matches

by art-ganseforth
Tue Oct 09, 2018 9:35 pm
Forum: C++ Development
Topic: Confused with paint, update, refresh etc.
Replies: 26
Views: 9078

Re: Confused with paint, update, refresh etc.

Hey doublemaxx, nice, that i could surprise you ;) Would be interesting to get more information about this, but i'll be not able to find out. There are a lot of programming-techincs that i don't understand. For you i've uploaded a pre-beta-version of my program (http://www.art-ganseforth.de/glLive3d...
by art-ganseforth
Sun Oct 07, 2018 6:08 am
Forum: C++ Development
Topic: Confused with paint, update, refresh etc.
Replies: 26
Views: 9078

Re: Confused with paint, update, refresh etc.

These have nothing to do with drawing / paint events. They are related to wxUpdateUIEvent which is a real performance killer and nobody should use them IMHO. https://docs.wxwidgets.org/trunk/classwx_update_u_i_event.html Okay, so... As long as i don't use wxUpdateUIEvents (which i don't do), there ...
by art-ganseforth
Sat Oct 06, 2018 1:17 pm
Forum: C++ Development
Topic: wxGLContext seems to get lost
Replies: 6
Views: 1886

Re: wxGLContext seems to get lost

Today I'm quit lucky. Also this is solved. Here it is: In order, to be able to use results of renderings within a rendering-process (don't know how to express it better) i've the possibility to link modules to diffrernt "timer-thread". That means: there is on timer-function only, but insid...
by art-ganseforth
Sat Oct 06, 2018 11:14 am
Forum: C++ Development
Topic: Confused with paint, update, refresh etc.
Replies: 26
Views: 9078

Re: Confused with paint, update, refresh etc.

Sometimes its good to sleep over.... After reading your post, i first used a text-ctrl to check if how other contrls in the frame would behave. Then i had the idea to give the canvas a tool-tip. So i could see, what is canvas, even if there is no refresh. In both cases, the result was the expected (...
by art-ganseforth
Sat Oct 06, 2018 2:28 am
Forum: C++ Development
Topic: Confused with paint, update, refresh etc.
Replies: 26
Views: 9078

Re: Confused with paint, update, refresh etc.

Concerning my program in general: I've spent a lot time in preparations (around 3 years), where i used it sometimes for some video-mapping, but all the time most was provisoric. In between i've an interpreter, that can do most things i need. It controls the creation-of the UI (sizes, colors, control...
by art-ganseforth
Sat Oct 06, 2018 1:37 am
Forum: C++ Development
Topic: Confused with paint, update, refresh etc.
Replies: 26
Views: 9078

Re: Confused with paint, update, refresh etc.

Another reason why a paint event handler could not get called, is when the window is totally obstructed by another window
This was the first thing i tested. I work with two monitors.
by art-ganseforth
Sat Oct 06, 2018 1:34 am
Forum: C++ Development
Topic: Confused with paint, update, refresh etc.
Replies: 26
Views: 9078

Re: Confused with paint, update, refresh etc.

What i wanted to know: Is the window initially (= program start) displayed correctly. Does it have the correct size and is just blank or black or is it not visible at all? There are two windows. The control (main) window, containing lots of controls, and the output (one or more), containing only on...
by art-ganseforth
Sat Oct 06, 2018 1:30 am
Forum: C++ Development
Topic: Confused with paint, update, refresh etc.
Replies: 26
Views: 9078

Re: Confused with paint, update, refresh etc.

So you're saying it doesn't display at all? It shouldn't make any difference if you call Refresh() or if the system just ask the window to draw. I' wondering also. The frame is not refreshed at all. Neither by the system nor by Refresh()-calls. For testing i did several things: I gave the frame ano...
by art-ganseforth
Sat Oct 06, 2018 1:02 am
Forum: C++ Development
Topic: Confused with paint, update, refresh etc.
Replies: 26
Views: 9078

Re: Confused with paint, update, refresh etc.

Can you post a screenshot or is everything secret? How to? Just wanted to do this, so i made one, but i don't know to use the *bracket*img*bracket* tags. I posted one here: https://www.opengl.org/discussion_boards/showthread.php/201041-A-simple-question-concerning-Attribute-arrays?p=1292684#post129...
by art-ganseforth
Fri Oct 05, 2018 11:03 pm
Forum: C++ Development
Topic: Confused with paint, update, refresh etc.
Replies: 26
Views: 9078

Re: Confused with paint, update, refresh etc.

I like you posts - quiet houmorous ;) Surely i trust you. I was just wodering because endless calls should crash the application, but m paint-function is not new. So, somewere all the paint-events must have been stuck all the time. Especially as i - for testing - run it often, befor i get to sleep, ...
by art-ganseforth
Fri Oct 05, 2018 10:12 pm
Forum: C++ Development
Topic: wxGLContext seems to get lost
Replies: 6
Views: 1886

Re: wxGLContext seems to get lost

If the glDrawArrays call crashes your app I'm pretty sure it's not a wxWidgets problem, but something in the way you issue calls to GL. For exampe, ... I would normally also think so, but obviously the glDrawArrays-call (which has nothing to do, with this wxGLCanvas), fails in the moment, when i hi...
by art-ganseforth
Fri Oct 05, 2018 8:53 pm
Forum: C++ Development
Topic: Confused with paint, update, refresh etc.
Replies: 26
Views: 9078

Re: Confused with paint, update, refresh etc.

At first: Thank you very much, for takin the time to read my posts ;) 1) Don't use fixed sizes for the controls. If your app is executed with another window resolution all sizes (including text size) will be weird sizes. If the user is allowed to change the size of some window then all related windo...
by art-ganseforth
Fri Oct 05, 2018 6:56 pm
Forum: C++ Development
Topic: wxGLContext seems to get lost
Replies: 6
Views: 1886

Re: wxGLContext seems to get lost

AFAIK, on Windows it doesn't matter if the window is shown or hidden to create an OpenGL context. There's an old issue with wxGTK about not allowing to swap buffers if the window is not shown. Without seeing your code we cannot tell why it behaves so bad for you. My program is quiet complex (5000+ ...
by art-ganseforth
Fri Oct 05, 2018 5:21 pm
Forum: C++ Development
Topic: Confused with paint, update, refresh etc.
Replies: 26
Views: 9078

Re: Confused with paint, update, refresh etc.

1. What exactly doesn't work? If i call refresh (3rd posted code-fragment), the paint-event-function is "triggered" only for the previews, not for the output. I've a log-file, where i can precisely see, what is called. 2. How it doesn't work? I'm not sure. It has to do with that the in co...
by art-ganseforth
Fri Oct 05, 2018 4:47 pm
Forum: C++ Development
Topic: wxGLContext seems to get lost
Replies: 6
Views: 1886

wxGLContext seems to get lost

Hello, i've the following problem (a quet special one): In my program (win10, wx 2.9.3) exist several wxGLCanvas-controls using the same wxGLContext. The context is created with the first wxGLCanvas. If this wxGLCanvas-control is hidden, my program crashes since some weeks. This effect is new but i ...