←Select platform

WorkingCursor Property

Summary

Cursor to use when the user is panning on the target control.

Syntax
C#
C++/CLI
public Cursor WorkingCursor { get; set; } 
public:  
   property System::Windows::Forms::Cursor^ WorkingCursor 
   { 
      System::Windows::Forms::Cursor^ get() 
      void set(System::Windows::Forms::Cursor^ value) 
   } 

Property Value

The cursor to use when the user is panning on the target control. Default value is null.

Remarks

This value is used only when EnablePan is set to true.

When the user is not panning on the target control, the default cursor of Control will be used and this object will not change it.

When the user is panning on the target control and the value of WorkingCursor is not null, then the original cursor value is saved and replaced by WorkingCursor. When the user finishes panning, the original cursor value is set back in Control.

Example
C#
using Leadtools; 
using Leadtools.Controls; 
using Leadtools.Codecs; 
using Leadtools.Drawing; 
 
using Leadtools.ImageProcessing; 
using Leadtools.ImageProcessing.Color; 
 
PictureBox control = new PictureBox(); 
control.Width = 400; 
control.Dock = DockStyle.Left; 
_control.Controls.Add(control); 
 
control.BringToFront(); 
_imageViewer.BringToFront(); 
 
ImageViewerPanControl panControl = new ImageViewerPanControl(); 
panControl.EnablePan = true; 
panControl.BorderPen = Pens.Yellow; 
//panControl.InsideBrush = new SolidBrush(Color.FromArgb(128, 0, 0, 0)); 
panControl.OutsideBrush = new SolidBrush(Color.FromArgb(128, 0, 0, 0)); 
panControl.WorkingCursor = Cursors.Hand; 
panControl.Control = control; 
 
panControl.ImageViewer = _imageViewer; 
Requirements

Target Platforms

Help Version 22.0.2023.1.24
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.