Grasshopper

algorithmic modeling for Rhino

Hi everyone, 

I am currently working on an interactive mousetool, where all I am missing is to be able to register mouse events - CLICKS. Preferably as a boolean.

I have looked into the System.Windows.Forms.MouseButtons thing, which gives you a point of comaprison. And then I have tried to play around with the MouseEventArgs aswell with very little luck. I also found this in the Grasshopper SDK, which seems to have some potential;

public bool MouseDown(   MouseEventArgs args,     PointF pt )

but I cant seem to get any value from this? I have also tried playing with "events" though with little luck, since I have never used this way of coding before.

Any help is greately appreciated, if not on this, then simply an explanation on the use of events that is easier to understand than the one on MSDN.

Thank you all in advance!

Views: 355

Replies to This Discussion

Just to clarify - All I want is a  boolean if I click a mouse button... 

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service