View Single Post
Old 02-06-2015, 05:57 PM   #14
Deisss
Human being with feelings
 
Join Date: Feb 2015
Posts: 36
Default

Quote:
Originally Posted by Tronic View Post
and it work
Edit: you have to place this before the render stroke or fill part
Code:
...
// mX,mY var is populated with OnMouseOver function
if (cairo_in_stroke(cr, mX, mY))
{
	wsprintf(tmp, "MOUSE OVER STROKE: X=%d Y=%d\n", mX, mY);
	OutputDebugString(tmp);
}

// Render
cairo_stroke(cr);
...
As I said I understand too late your request, but from what you wanted to do, indeed the cairo functions where the good idea

Nice one btw, can make some nice living things now

On my side, as I misunderstand your request, I did a tutorial on handling mouse and graphic in a IControl:
https://simplapi.wordpress.com/2015/...by-user-input/

Like Martin's tutorials series does not cover this part, it's a good addition to tutorial list for WDL-OL even if it's not related to your problem ^^

Last edited by Deisss; 02-06-2015 at 06:05 PM.
Deisss is offline   Reply With Quote