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 : Thursday, March 6, 2008 5:29:47 AM(UTC)
massivekid

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.



 

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 : Thursday, March 6, 2008 9:44:50 AM(UTC)

GregR  
GregR

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)
massivekid

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)

GregR  
GregR

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.

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