?
Solved

global hide mouse cursor in delphi

Posted on 2003-02-27
6
Medium Priority
?
1,480 Views
Last Modified: 2010-08-05
I was wondering how to globally hide the mouse cursor in delphi?... I have used 'showcursor(false)' but it does not globally hide the cursor. Alternatively is there a way to disable the mouse in assembly code?
0
Comment
Question by:Koo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 5

Expert Comment

by:Lukasz Lach
ID: 8040531
BlockInput(True);
:-)
0
 
LVL 9

Expert Comment

by:ginsonic
ID: 8042925
I think that this just block the mouse and keyboard .
And can be disabled with CTRL+ALT+DEL
0
 
LVL 5

Expert Comment

by:Lukasz Lach
ID: 8042959
what's the problem? you can block them, can't you?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 9

Expert Comment

by:ginsonic
ID: 8047952
Not sure for NT and XP. Anyway just wish to tell to Koo that is possible to reactivate the mouse with this combination.
0
 

Author Comment

by:Koo
ID: 8060757
Blockinput works but I just want to 'hide' the mouse cursor...  I need it just to be hidden as I want all injected mouse input to still be functional...can you help me with this???
0
 
LVL 5

Accepted Solution

by:
Lukasz Lach earned 300 total points
ID: 8062559
NewArrow, OldArrow: HCursor;
begin
  OldArrow := LoadCursor(0, IDC_ARROW);
  NewArrow := LoadCursorFromFile('some_blank.cur');
  SetSystemCursor(NewArrow, OCR_NORMAL);
  // ...
  SetSystemCursor(OldArrow, OCR_NORMAL);
end;
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses
Course of the Month15 days, 4 hours left to enroll

771 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