Solved

Mouse Cursors changing and getting stuck

Posted on 2004-08-23
7
251 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
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

856 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