algorithmic modeling for Rhino
Probably one for David, but, is it possible to change the component icon based on the user selecting a user defined menu item in grasshopper? I.e. Im overriding the Menu_AppendItem event.
As the icon property is read only, I do not see how it is possible to dynamically change the icon based on the user selection.
cheers
Tags:
Hi Steve,
it's possible but not by assigning a new bitmap to the Icon property. Icon is indeed readonly which means you have to put your logic into the Icon property. It should return a different icon based on the state of your component. That however is the obvious part. The problem is that the Icon property is accessed once and the result is post-processed and cached.
There's two ways of doing it:
--
David Rutten
david@mcneel.com
Tirol, Austria
Works perfectly, cheers
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by