Solved

Mouse Cursors changing and getting stuck

Posted on 2004-08-23
7
249 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
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 
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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

773 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