Visual Basic
C#
Managed Extensions for C++
C++/CLI
Parameters
- cursorType
- Type of the cursor.
- tool
- The Annotation tool.
- customCursor
- The custom cursor handle.
Note: This should be set once as its associated with the NotateXpress object.
Make sure that the icon does not go out of scope, as the application controls ownership of the icon. .NET cursors only support Black and White.
If you want to use color cursors one option is to use the win32 LoadCursorFromFileHow to load in a cursor handle
C# | ![]() |
---|---|
private Cursor mynewcursor; mynewcursor = new Cursor("c:\\images\\test.cur"); NotateXpress1.SetUseCustomCursorType(CursorSelection.Creating, AnnotationTool.BlockHighlightTool, mynewcursor); |