Grasshopper

algorithmic modeling for Rhino

WinForm (instead of dropdown menu) by clicking on a component input

Hi all,

I am new to the whole C#/creating components world and I am trying to create a component where after "clicking" on an input parameter in Grasshopper it will pop-out a WinFom (I want to use then the winform with multiple dropdown buttons to navigate between lists but it is not the problem right now). I tried the existing discussions about dropdown menus e.t.c (especially the discussion with Steve Lewis)  but I can't seem to make it work. Any input will be really appreciated! 

Thanks!

Views: 1818

Replies to This Discussion

Hi Anastasios,

putting a custom item into a menu and displaying a winform when that item is clicked is very easy. Overriding the click on an input parameter is rather more difficult.

Exactly what sort of click (left mouse, right mouse, double click, shift+left click, etc. etc ) and where do you want to override this behaviour?

--

David Rutten

david@mcneel.com

Tirol, Austria

Hi David,

thank you for your reply, ideally I would like the user to be able to (double) left-click on an input parameter of a custom component and get a winform where she/he will be able to choose among different options that will return specific input for the component to process. But if this cause any problems, a custom made component that will be just a WinForm (that in-return the user will connect manually with another component) would also do but still cannot do it...

I crossed a conversation you had once some time ago (that I cannot find again) where you were explaining that a winform after clicking on a component might cause grasshopper some problems, so depends on what is "safer" in these terms... What do you think ? 

Thanks! 

See attached.

--

David Rutten

david@mcneel.com

Tirol, Austria

Attachments:

! David thank you very much! Works great!! 

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