Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

  • 2 weeks later...
Posted
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.

Posted

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.

Nothing is as illusive as 'the last bug'.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...