|
-
September 9th, 2011, 12:13 PM
#6
Re: C++ CLI Form Problems - Label Display
 Originally Posted by SpartanGuy07
I'm not really sure that I understand how to use the event to read and report the mouse position.
The second parameter to your event handler, when it gets invoked by the framework, is a MouseEventArgs object. At least when the event handler's function header has been created by the IDE, that parameter will be named e. From that object you can, among other information, obtain the coordinates the mouse click occurred at as e->Location.
Sorry, but I am really new at this and I am getting this error "Error C2143: Syntax error : missing ';' before 'public' " and "Error C3708:'MouseEventHandler': improper use of 'event';must be made a member of compatible event source."
Sorry, without seeing your code I can't tell what this has been caused by. I need not only the entire event handler function but also some lines before and after that. Did you create the event handler with the IDE?
I was thrown out of college for cheating on the metaphysics exam; I looked into the soul of the boy sitting next to me.
This is a snakeskin jacket! And for me it's a symbol of my individuality, and my belief... in personal freedom.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|