rbulph Posted December 17, 2007 Posted December 17, 2007 I have a context menu that has a few items added at design time and further ones that I add at run time. For the former ones the whole row is highlighted when the cursor passes over it, but for the latter, just the word that it contains is highlighted. This doesn't look very good. Any idea what's causing it? Also, I'd like to have two different levels of menu separators, one more pronounced than the other. Is there any easy way to achieve this? If one could just be twice as thick as the other that would do. Quote
Administrators PlausiblyDamp Posted December 18, 2007 Administrators Posted December 18, 2007 How are your creating the items at runtime? Just tried it here and it seemed to highlight the entire row in both cases. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
rbulph Posted December 18, 2007 Author Posted December 18, 2007 Ah! I was adding ToolStripButtons rather than ToolStripMenuItems. Correcting that has fixed it. Any thoughts about the separators? Quote
Leaders snarfblam Posted December 19, 2007 Leaders Posted December 19, 2007 You could make them owner drawn. Quote [sIGPIC]e[/sIGPIC]
rbulph Posted December 28, 2007 Author Posted December 28, 2007 You could make them owner drawn. Maybe, if I get round to it. Otherwise I think I might just put the menu items below the separator in italics to show that they are logically something different to those above it. Quote
Wile Posted December 29, 2007 Posted December 29, 2007 The separators are a different class: ToolStripSeparator instead of ToolStripMenuItem. After creating a separator you can add it to the context menu in the same way as a normal menu item. Quote Nothing is as illusive as 'the last bug'.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.