Center Point
BlitzPlus Forums/BlitzPlus Programming/Center Point
| ||
When running the code below in a windowed program the button will change when the mouse is at the location X10 Y300 from the top left hand corner of the desktop, not when the mouse is that location in the program.If ImageRectOverlap(Button,10,300,MouseX(),MouseY(),1,1) DrawImage Button2,10,300 If MouseDown(1) Then Status = 2 End If How do I get around this? |
| ||
err thats strange O.o actually im clueless as to why this happens. I can just point out that it's not supposed to be like that, but you allready knew that i guess :P |
| ||
Only happens with CreateWindow, if I use good old Graphics 320,240 it works five. Is there a command to check mouse axis on a window or canvas? |
| ||
The various Mouse commands all take an optional 'canvas' parameter. See the scaled_mouse sample program in the \samples\Mak\ folder. |