Solved

Mouse Cursors changing and getting stuck

Posted on 2004-08-23
7
248 Views
Last Modified: 2010-04-05
I am writing in D7 and a problem that I have been encountering (and attributing to the IDE) is now occuring in the wild.

After some time using the app, a mouse cursor will pass over a window handle or something and then get STUCK as a horiz resize for instance.  This happens almost exclusively with resize cursors and the only solution is to goto the mouse control panel and reset.  how wierd is this?  

I am a pragmatic man.  I would accept almost any solution that works including resetting their cursors to system defaults (the defaults in the CP) whenever moving over a window or anything we can think of.  

I am using suipack from sunisoft in case anyone thinks that might be an issue

Thanks! This is rather urgent
0
Comment
Question by:hibbidiji
  • 4
  • 3
7 Comments
 
LVL 27

Expert Comment

by:kretzschmar
ID: 11878452
do you capture the mouse somewhere?

try following
  screen.cursor := crDefault;

just guessing

meikl ;-)
0
 
LVL 1

Author Comment

by:hibbidiji
ID: 11878487
no dice.   it looks like the cursor changes only for the app itself.  when moving the cursor off the forms it  goes back to normal then wrong again when moved over
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 11878549
well then try following in case of mixedup cursor

SetSystemCursor(GetCursor,OCR_NORMAL);

hope thats it

meikl ;-)
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 27

Accepted Solution

by:
kretzschmar earned 500 total points
ID: 11878573
sorry, this wont work i guess, another try

SetSystemCursor(LoadCursor(0,IDC_ARROW),OCR_NORMAL);

meikl ;-)
0
 
LVL 1

Author Comment

by:hibbidiji
ID: 11878844
Looks like that last one did the trick.....

I would like to know... can you think of a good time to fire that code?   I have totally rigged it with an on mouse move over one of my components, but I know thats not a realistically useful solution
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 11878876
usual it would be better to search the cause of this problem

the suggestion above is only a workaround.

well, the best way to do this is  hard to say,
easiest would be to use a timer which fires all two/three seconds

meikl ;-)
0
 
LVL 1

Author Comment

by:hibbidiji
ID: 11897833
I believe I've tracked the problem down to the jvmovablebevel control from the jedi pack.  Unfortunately I'm not skilled enough to fix the actual problem.  I have posted a message in the jvcl newsgroup and I hopefully I will get a solution there.
Thanks for your help as usal.

Andrew
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now