This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Sunday, June 16, 2013 10:37:31 AM(UTC)
Groups: Registered
Posts: 23
Hello,
I'm looking for the way to disable multiselection of annObject using mouse and modifier keys. Can you help me please? I'm working on an application that allows users drawing some rectangles, and I would like to prevent users editing multipe object at the same time.
Thanks for your help
Regards.
#2
Posted
:
Sunday, June 16, 2013 11:42:24 PM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
Please see the following forum post:
http://support.leadtools.com/cs/forums/6408/ShowPost.aspx
Thanks,
Maen Badwan
LEADTOOLS Technical Support
#3
Posted
:
Sunday, June 16, 2013 11:59:33 PM(UTC)
Groups: Registered
Posts: 23
Hi Hasan,
Thanks for your quick replay.
I tried this but it dosen't work for me. I can always select multiple objects and rotate them.
Note that my applcation is in WPF/C# .
Thanks.
#4
Posted
:
Monday, June 17, 2013 12:42:29 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
Which version of LEADTOOLS (17.0, 17.5, 18.0, etc.) are you using?
Thanks,
Maen Badwan
LEADTOOLS Technical Support
#5
Posted
:
Monday, June 17, 2013 12:46:56 AM(UTC)
Groups: Registered
Posts: 23
#6
Posted
:
Monday, June 17, 2013 3:01:40 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
You might be able to disable multiple selections by using the following steps:
1. Remove the SelectObject from the Default Objects:
==============
manager = new AnnAutomationManager();
manager.CreateDefaultObjects();
foreach (AnnAutomationObject obj in manager.Objects)
{
if (obj.Id == AnnAutomationManager.SelectObjectId)
{
manager.Objects.Remove(obj);
break;
}
}
==============
2. Set the manager.MultiSelectModifierKey property to ModifierKeys.None.
==============
manager.MultiSelectModifierKey = ModifierKeys.None;
==============
By using the above steps, the user can select the object only by clicking it.
Please try the above steps and let me know if you face any problem.
Thanks,
Maen Badwan
LEADTOOLS Technical Support
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.