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 : Tuesday, June 5, 2012 3:59:28 AM(UTC)
rajknoida

Groups: Registered
Posts: 20


Hi,

I am using leadtools 17.5 with C#.NET. i am creating AnnLineObject it is working fine. But whenever i mouseover on object the cursor will change to target pointer. please help me to remove this cursor, i dont want to change my cursor. i am not using edit draw designer. i am using only draw designer.

Please help me . Thanks in advance.
 

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 : Tuesday, June 5, 2012 5:56:34 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,328

Was thanked: 1 time(s) in 1 post(s)

If you don't want to edit the objects after creating them, you can change the annotation's user mode to run, so that the cursor will not be changed to target pointer.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
#3 Posted : Wednesday, June 6, 2012 1:10:54 AM(UTC)
rajknoida

Groups: Registered
Posts: 20


Hi,

Thanks for your reply. I am doing this on WPF and i have draw an annobject on the rasterviewer through automation manager. i dont want to use edit designer as i am not using edit designer. my AnnObject is adding as a children perfectly in the  container of AutomationManager. but when i over the mouse on that object , cursor will change to Target pointer. I dont want to change my cursor to target pointer. as you suggest set the property of annotations to "UserMode". I am not able to find the such property for AnnObject as well as not for RasterViewer and AnnAutomation, but I found in AnnAutomationManager has a property(automationManager.UserMode). whe i set this property as "AnnUserMode.Run". application is showing following exception:

   at Leadtools.Windows.Annotations.AnnAutomationManager.a(EventArgs A_0)
   at Leadtools.Windows.Annotations.AnnAutomationManager.set_UserMode(AnnUserMode value)
   at TGSDig.WpfControls.Views.UcDizitizingControl.btnDigitize_Click(Object sender, RoutedEventArgs e) in D:\Nagpur\Backup\Custom Object completed with scissors\Code\WPF Solution\TGSDig.WPF\TGSDig.WpfControls\Views\UcDizitizingControl.xaml.cs:line 255
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
   at System.Windows.Controls.Primitives.ButtonBase.OnClick()
   at System.Windows.Controls.Button.OnClick().


I am using following code on constructor of window:
            InitializeComponent();
            this.automationManager = new AnnAutomationManager();
          
            this.annAutomation = new AnnAutomation(this.automationManager, RasterViewer);
            automationManager.UserMode = AnnUserMode.Run;

Please help me to find out the solution.



 
#4 Posted : Wednesday, June 6, 2012 1:47:51 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,328

Was thanked: 1 time(s) in 1 post(s)

About the automationManager.UserMode issue, I checked this issue on my side and I was not able to see the problem.

About the cursor issue, instead of setting the UserMode to run, try to set the annAutomationManager.SelectObjectCursor property to Cursors.Arrow. I am attaching the project that I used to check this issue.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
File Attachment(s):
CsWpAnn175.zip (18kb) downloaded 28 time(s).
 
#5 Posted : Thursday, June 14, 2012 12:30:44 AM(UTC)
rajknoida

Groups: Registered
Posts: 20


Hi Maen,
it works Thanks.
 
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-2019, Yet Another Forum.NET
This page was generated in 0.101 seconds.