This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Thursday, March 6, 2008 5:29:47 AM(UTC)
Groups: Registered
Posts: 5
In older versions ( LT12) of leadtools you could change the mouse cursor in a custom shape:
//
Screen.Cursors[100] := LoadCursor(ResourceInstance, pchar('CURSOR_0'));
MainImg.cursor:=100;
//
did the trick, but this doesn't work anymore.
i found no way to change it anymore in LT14.
I tried with mouseicon, but delphi 2007 gives invalid property error. As i understand from the help is that this only works in VB.
So what about delphi users, how can we change the cursor?
I need this in annotation mode (while placing anotations) I see also that there are more cursor shapes with each annotation but i want to disable them also.
ex. the square dragging cursor.
#2
Posted
:
Thursday, March 6, 2008 9:44:50 AM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 764
Which LEADTOOLS interface (VCL, OCX, etc.) are you using?
#3
Posted
:
Thursday, March 6, 2008 9:54:50 PM(UTC)
Groups: Registered
Posts: 5
i'm using the OCX interface.
i found a solution for annotations, but only with a DLL function:
Screen.Cursors[100] := LoadCursor(ResourceInstance, pchar('CURSOR_0'));
L_AnnSetAutoCursor(0,ANNAUTOCURSOR_DEFAULT,Screen.Cursors[100]);
But maybe there is an other way...
#4
Posted
:
Monday, March 10, 2008 2:50:26 AM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 764
The OCX control doesn't have anything specific to annotations like the API function you mentioned so that will probably be the best way to go for you.
The best control over the mouse cursor in the OCX control is the MouseIcon property, but I'm not completely sure if that will get overridden by the automated annotations or not. It's worth a try, but otherwise you'll need to use the API function.
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.