I want to use my own routine for mouse-interaction with an OGL control. To prevent too many OGLRefresh events, I tried to draw a (transparant) canvas on top of the OGL control for handling mouse events.
I have a programme that creates a panel on the desktop (parent 0). In this panel, a picture control is made, and that picture control is converted to a OGL control.
The a canvas control is made with the same size and position as the OGL control. I set the ZPlane order for the canvas to value zero ie draw it on top. I set the canvas controlmode to HOT. I installed a callback for this canvas.
I expected that any mouse activity would be processed by the callback of the canvas. However the callback for the OGL control is used. When I disable t
he (left-mouse-click) zoom for the OGL control, neither canvas nor OGL callback is activated.
Do I need other settings to put a canvas control on top of the OGL control ?