How to access Context Menu icons, like "Flatten" icon?

Hello, I am developing a custom component GUI for my grasshopper plugin.
How can I access the default Context Menu icons?

For example if I want to put an “Expression Editor” icon next to the input,

GH_DocumentObject.Menu_AppendItem(toolStripMenuItem.DropDown, “Expression Editor”, new EventHandler(this.ExpressionEditor), ??? null);

or render the Expression rectangle by the input grip, or any other default icons

I saw there is a GH_StateTag class, but doesn’t seems to offer anything
After a while, I found the Res_ContextMenu class with all the bitmaps, but it is an internal class.
Did I miss something in the API?

@DavidRutten

Thanks

1 Like