How to keep layout style of menu in a custom component - Grasshopper2024-03-28T20:12:15Zhttps://www.grasshopper3d.com/forum/topics/how-to-keep-layout-style-of-menu-in-a-custom-component?commentId=2985220%3AComment%3A1430477&feed=yes&xn_auth=noThank you! I finally got it.…tag:www.grasshopper3d.com,2016-01-05:2985220:Comment:14309042016-01-05T15:16:06.804ZXiaoming Yanghttps://www.grasshopper3d.com/profile/Xiaoming
<p>Thank you! I finally got it. To add a item to sub menu, I simply </p>
<p>GH_DocumentObject.Menu_AppendTextItem(MainMenuItem.DropDown,...)</p>
<p>This is a much better way. Thank you!</p>
<p>Thank you! I finally got it. To add a item to sub menu, I simply </p>
<p>GH_DocumentObject.Menu_AppendTextItem(MainMenuItem.DropDown,...)</p>
<p>This is a much better way. Thank you!</p> The AppendMenuXXX methods on…tag:www.grasshopper3d.com,2016-01-04:2985220:Comment:14304902016-01-04T20:43:35.446ZDavid Ruttenhttps://www.grasshopper3d.com/profile/DavidRutten
<p>The AppendMenuXXX methods on GH_DocumentObject have overloads that allow for the setting of icons, tickmarks and handlers. I find it easier to use those methods than writing the menu code from scratch every time.</p>
<p>The AppendMenuXXX methods on GH_DocumentObject have overloads that allow for the setting of icons, tickmarks and handlers. I find it easier to use those methods than writing the menu code from scratch every time.</p> Hi David,
Thank you for your…tag:www.grasshopper3d.com,2016-01-04:2985220:Comment:14304772016-01-04T19:50:44.322ZXiaoming Yanghttps://www.grasshopper3d.com/profile/Xiaoming
<p>Hi David,</p>
<p>Thank you for your reply. I tried to have a tick mark displayed for the <span>sub menu items. When I add a item to the main menu, I could define <span>ToolStripMenuItem.</span><span>previewIES.Checked to show the tick mark. Can I do the same for the sub menu items? I tried add an icon with ToolStripMenuItem.Image. Then it display the icon instead of the tick mark.</span></span></p>
<p></p>
<p><span><span>Xiaoming</span></span></p>
<p>Hi David,</p>
<p>Thank you for your reply. I tried to have a tick mark displayed for the <span>sub menu items. When I add a item to the main menu, I could define <span>ToolStripMenuItem.</span><span>previewIES.Checked to show the tick mark. Can I do the same for the sub menu items? I tried add an icon with ToolStripMenuItem.Image. Then it display the icon instead of the tick mark.</span></span></p>
<p></p>
<p><span><span>Xiaoming</span></span></p> Can you try adding an icon to…tag:www.grasshopper3d.com,2016-01-04:2985220:Comment:14303682016-01-04T19:24:41.491ZDavid Ruttenhttps://www.grasshopper3d.com/profile/DavidRutten
<p>Can you try adding an icon to your menu items?</p>
<p>Can you try adding an icon to your menu items?</p> Any ideas? Is it layout style…tag:www.grasshopper3d.com,2016-01-04:2985220:Comment:14304202016-01-04T16:00:41.905ZXiaoming Yanghttps://www.grasshopper3d.com/profile/Xiaoming
<p>Any ideas? Is it layout style of the new defined <span>ToolStripDropDown previewOptionsDropDown?</span></p>
<p>Any ideas? Is it layout style of the new defined <span>ToolStripDropDown previewOptionsDropDown?</span></p>