Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Sunday, June 16, 2013 10:37:31 AM(UTC)

rad1  
rad1

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.
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Sunday, June 16, 2013 11:42:24 PM(UTC)
Maen Hasan

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)

rad1  
rad1

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)
Maen Hasan

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)

rad1  
rad1

Groups: Registered
Posts: 23


17.5

Thanks.
 
#6 Posted : Monday, June 17, 2013 3:01:40 AM(UTC)
Maen Hasan

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.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.076 seconds.