The window is initialized to have a client size of SizeX, and SizeY so the whole render window has a size of (SizeX+WindowsBorderX, SizeY+WindowsBorderY).
I'm trying to return the Mouse(x, y) coords. that are generated within the GLCanvas window, not the render window (It's parent) because if it returns the coordinates of the render window it will be like (-4, -30) off due to the size of the borders on the basic Windows windows.
I hope this isnt too confusing, I've tried the ScreenToClient() function and havn't quite understood how I'm going to return the CORRECT position
I wish there would be a function like
Code: Select all
wxPoint *mouse = new MousePosInWindow(this);
If anyone knows a solution I would be very happy
- Thank You!