Grasshopper

algorithmic modeling for Rhino

Changing the default text in a custom parameter's context menu

The Prompt_Singular and Prompt_Plural items usually have default display texts using the parameter's name such as "Set one Thing" and "Set Multiple Things". How can I change these texts without also changing the parameter's name?

Views: 280

Replies to This Discussion

You want to change just the string on the menu item, or do you want to provide custom menu items?

If you want to change strings, I recommend you override the method which populates the menu, call the base class method, then iterate over the menu items and change the text.

Thanks, I solved it with the Menu_CustomSingleValueItem function.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service