This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Thursday, May 24, 2012 2:19:22 AM(UTC)
Groups: Registered
Posts: 11
I have associated a ContextMenuStrip with a RasterImageList, when i select items in the list and then i click right click the context menu will show but what i find is that the selection of items is lost when doing so.
if i clicked CTRL with right click, the items will remain selected
Is there any way to keep the items selected when clicking right click without the need of clicking ctrl?
#2
Posted
:
Thursday, May 24, 2012 6:53:58 AM(UTC)
Groups: Registered
Posts: 256
You can store the index of the currently selected item in a variable of your own, then when you want to display the menu without changing the selection, handle the event (such as MouseDown), and set the RasterImageList.Item[index].Selected property to true.
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.