Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 23rd, 2024, 7:48 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Cursor Hide
PostPosted: October 22nd, 2009, 6:57 pm 
Offline

Joined: February 17th, 2008, 11:42 pm
Posts: 11
hi everybody,

When using user32.dll function ShowCursor (with loadDll), it will hide the cursor globally or just inside the compiled app?

The "hide cursor" in opus hides the cursor inside the publication, not outside.

I would like to globally hide the cursor, even outside the publication. So far just hiding it inside the pub.

Thanks again for the help,
All the best,
B


Last edited by BPM on October 23rd, 2009, 2:45 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: October 23rd, 2009, 10:59 am 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
B,

It seems you've answered your own question.

Yes, Opus hides the cursor within the Opus publication not globally and Yes, a third party DLL called though Opus will allow you to hide the cursor globally.

Mack

P.S Add a signature.

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject:
PostPosted: October 23rd, 2009, 2:47 pm 
Offline

Joined: February 17th, 2008, 11:42 pm
Posts: 11
Thanks for the info Mack,
Added the signature.
All the best,
B

_________________
Win Vista. Penthium Dual Core, 2Gb RAM, Opus v6


Top
 Profile  
 
 Post subject:
PostPosted: October 25th, 2009, 4:52 pm 
Offline

Joined: February 17th, 2008, 11:42 pm
Posts: 11
Calling user32.dll ShowCursor() hides the mouse indeed, but only on the app that called it. Setting it to 0 (Bshow) to hide the mouse, and it works. But I would like to hide the mouse completely, including other apps.

B

_________________
Win Vista. Penthium Dual Core, 2Gb RAM, Opus v6


Top
 Profile  
 
 Post subject:
PostPosted: October 26th, 2009, 11:11 am 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Sorry B,

By third party, I wasn't specifically referring to User32. I occasionally tinker with C++, but my understanding is the show / hide is a balanced count for a specific window form. IE call it from Opus and it works from Opus and IE call hide twice you need call show twice.

However, I was under the impression that there was a way of calling a system function that could do this or something to the effect of hiding / showing the cursor.

I can see why this might have use in a kiosk mode publication, but then there would be easier and safer ways to achieve this. IMHO, globally hiding the cursor could be very annoying especially if the publication crashed!

You didn't say what you are trying to achieve, perhaps there is an alternative.

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject:
PostPosted: October 26th, 2009, 4:37 pm 
Offline

Joined: February 17th, 2008, 11:42 pm
Posts: 11
Thanks Mack,
I agree with you. I dont have to hide the mouse globally. I can just hide it inside the pub with the showcursor() or with the built-in Hide Cursor. It works well.
To hide globally, if the program crashes the user will have no cursor like you said. ThereĀ“s a SPI_ parameter that could restore the mouse tho(SystemParametersInfo function in the same dll).

All the best,
B

_________________
Win Vista. Penthium Dual Core, 2Gb RAM, Opus v6


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 44 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group