This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
developer:addcustommenu [2020/08/14] 127.0.0.1 external edit |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== How To: Add a Custom Menu to Rhino ====== | ||
- | ====== C++,.NET ====== | ||
- | > **Summary: | ||
- | |||
- | ===== C++ ===== | ||
- | |||
- | The **CRhinoPlugIn** class provides a number of methods that make adding custom popup menus to Rhino easy. | ||
- | |||
- | * CRhinoPlugIn:: | ||
- | * CRhinoPlugIn:: | ||
- | * CRhinoPlugIn:: | ||
- | * CRhinoPlugIn:: | ||
- | |||
- | See rhinoSdkPlugIn.h for details on the **CRhinoPlugIn** class. | ||
- | |||
- | Rhino 3 Sample - http:// | ||
- | |||
- | Rhino 4 Sample - http:// | ||
- | |||
- | =====.NET SDK===== | ||
- | Creating and handling menus in .NET is slightly different than the C++ SDK. The .NET solution is to create an instance of a RMA.UI.MRhinoPlugInMenu class, populate it with strings and use event handlers to handle when the menu items are clicked or need updating. | ||
- | |||
- | VB.NET Sample - [[http:// | ||
- | |||
- | C# Sample - [[http:// | ||
- | |||
- | |||
- | |||
- | {{tag> | ||