Using a canvas to catch mouse and keyboard events in windowed screen
Posted: Mon May 22, 2023 7:27 pm
Hi guys im having a problem, i have a program that needs the more speed the better and what im doing in order to get this speed is using a windowedscreen, the point is that i dont want to use initmouse cause it traps the mouse inside the screen so what im using is a canvas gadget being displayed behind the windowed screen in order to grab this interactions.
I manage to make the canvasgadget being displayed behind the windowedscreen easily
OpenwindowedScreen(windowID(#mainWindow),360,85,etc..)
CanvasGadget(#mapCanvas,360,85,etc)
the problem is that some times when im interacting with the windowed screen it looks like the canvas appears for a second showing a white flash that is very annoying, is there any way to avoid this? Or is there any way to hide the canvas and make it still active somehow?
Many thanks
I manage to make the canvasgadget being displayed behind the windowedscreen easily
OpenwindowedScreen(windowID(#mainWindow),360,85,etc..)
CanvasGadget(#mapCanvas,360,85,etc)
the problem is that some times when im interacting with the windowed screen it looks like the canvas appears for a second showing a white flash that is very annoying, is there any way to avoid this? Or is there any way to hide the canvas and make it still active somehow?
Many thanks