Customize context menu

Topics related to the Krypton Docking.

Moderators: Phil Wright, Chris Porter

Customize context menu

Postby Edgar Ferreira » Fri Oct 02, 2009 10:47 pm

Is it possible to set icons (customized or default) for context menu items?
It would be easier to understand options like "Split Vertical".

Edgar
Edgar Ferreira
 
Posts: 132
Joined: Thu Mar 26, 2009 8:59 pm
Location: Coimbra, Portugal

Re: Customize context menu

Postby Phil Wright » Sun Oct 04, 2009 1:23 pm

Hook into the KryptonWorkspace.WorkspaceCellAdding and inside the event hook the KryptonWorkspaceCell.ShowContextMenu and then you can update the set of options that will already be present in the context menu.
Phil Wright
Site Admin
 
Posts: 2720
Joined: Thu Apr 13, 2006 2:55 pm
Location: Melbourne, Australia

Re: Customize context menu

Postby Edgar Ferreira » Tue Oct 06, 2009 7:49 pm

Thanks, it works!
The only way I figured out to distinguish the items is by the Text property (example: "&Close"). Is there any other way to do so?
Edgar Ferreira
 
Posts: 132
Joined: Thu Mar 26, 2009 8:59 pm
Location: Coimbra, Portugal

Re: Customize context menu

Postby Phil Wright » Tue Oct 06, 2009 8:51 pm

Sorry but that is the only way I can think to discover the item.
Phil Wright
Site Admin
 
Posts: 2720
Joined: Thu Apr 13, 2006 2:55 pm
Location: Melbourne, Australia

Re: Customize context menu

Postby Edgar Ferreira » Tue Oct 06, 2009 10:07 pm

No problem! Is not that hard to iterate using this property!
Thanks, Edgar.
Edgar Ferreira
 
Posts: 132
Joined: Thu Mar 26, 2009 8:59 pm
Location: Coimbra, Portugal


Return to Krypton Docking

Who is online

Users browsing this forum: No registered users and 0 guests