Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 4:48 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Custom cursor in larger size
PostPosted: December 16th, 2011, 10:50 pm 
Offline

Joined: December 13th, 2008, 3:15 pm
Posts: 152
Location: Brasil
Opus: 7
OS: Windows 7 x64
System: Asus P5Q3 Deluxe, Core 2 Duo E8500, 8 Gb DDR3 1333 mhz, His IceQ5 5770 HD Graphic Card, Samsung T220 Monitor; Lenovo G550 T6600, 4 GB DDR3 - 15,6".
Hy Opus lovers...

I'm in trouble ... must publish a work with custom cursors in larger size than usual ...

The publication must be presented at a considerable distance, so I need the traditional cursors - arrow, busy, hand and grabbing hand - (mouse over and mouse clic), to be viewed in big size ...

Even putting a larger custom cursors, windows insists on keeping the default size within the window of the publication - badly.

I know that you can increase the size of the cursor on the control panel, but do not want to ask the user to place the windows to work with cursors in black extra large size when you open the publication - it's kind of ridiculous ...

If it were to change just a state of the cursor - normal arrow - it would be possible to write the value in the windows to open the publication ... but four states (normal, busy, over and clicked) is a difficult task because there are several parameters in the registry key ... in windows 7, key are in the HKEY_CURRENT_USER \ Control Panel \ Cursors.

Is there any way to solve this problem? Thanks...

_________________
"To the ignorant, old age is the winter of life, for the wise, is the season of harvest."
It is not easy to translate the world into a binary code of 0s and 1s, but in scripts, anything is possible!


For this message NilsonBrasil has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Custom cursor in larger size
PostPosted: December 20th, 2011, 7:45 pm 
Offline

Joined: November 25th, 2004, 1:24 pm
Posts: 512
Location: Scotland
Opus: 9.75
OS: Win 10
System: Asus i7-7700K 16Gb
I think this could be done with an object and an event handler, but I haven't tried it. Have a look at RegisterEventHandler() in the Script help
here are some mouse events which can be associated with the handler.
Event Name: Description

mouseover: mouse moves over the object.

mouseout: mouse moves off the object.

lmousedown: left mouse button is pressed down.

lmouseup: left mouse button is released.

lclick: left mouse button is clicked once over the object.

ldblclick: left mouse is double-clicked over the object.

rmousedown: right mouse button is pressed down.

rmouseup: right mouse button is released.

rclick: right mouse button is clicked once over the object.

rdblclick: right mouse button is double-clicked over the object.

mousemove: the mouse is moved.

mousewheelup: the mouse moved up.

mousewheeldown: the mouse moved down.

_________________
Whoever designed this, never actually used it!


For this message sandyn has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Custom cursor in larger size
PostPosted: December 24th, 2011, 7:59 pm 
Offline

Joined: December 13th, 2008, 3:15 pm
Posts: 152
Location: Brasil
Opus: 7
OS: Windows 7 x64
System: Asus P5Q3 Deluxe, Core 2 Duo E8500, 8 Gb DDR3 1333 mhz, His IceQ5 5770 HD Graphic Card, Samsung T220 Monitor; Lenovo G550 T6600, 4 GB DDR3 - 15,6".
Grandmaster Sandy ...

Apparently I have a lot of work because I have to create a picture on every page of the publication, placing the script to capture mouse events ... then move all the buttons on each page up this framework.

This involves putting another layer, where the user mouse interation can happen ... I'll see what I can do. I appreciate the tip ...

_________________
"To the ignorant, old age is the winter of life, for the wise, is the season of harvest."
It is not easy to translate the world into a binary code of 0s and 1s, but in scripts, anything is possible!


For this message NilsonBrasil has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Custom cursor in larger size
PostPosted: December 25th, 2011, 10:54 pm 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
You probably need to research the 'large cursor' issue more basically -- google search, etc for Win7 and .cur or custom cursor

I think you can achieve a solution, but you must do some work.
First, do you have a set of large cursors? That is, cursor images where the size is 256 x 256 and the file type is .cur
If not, you probably need to find/download these or make them yourself. Do a google search.

If you have a 256 x 256 .cur file, you can change your Publication Properties >>> Cursors to use that custom cursor.
Try it.
Publish and try it on a client machine. ( if it does not work so easily and simply, then you may need to tweak Windows Control-Panel settings for Themes and Cursors.... or maybe enable Accessibility options. )

From what searching I did, Vista and later windows OS can handle large cursors. ( It would be interesting to see if Opus can 'present' a large cursor in WinXP or older systems. )

_________________
_good things come to those who wait(0)_


For this message Lar_123 has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Custom cursor in larger size
PostPosted: December 26th, 2011, 12:07 pm 
Offline

Joined: November 25th, 2004, 1:24 pm
Posts: 512
Location: Scotland
Opus: 9.75
OS: Win 10
System: Asus i7-7700K 16Gb
Here is a wee starter for you.
Very simple example
It registers an event handler to the Cur object, then the object follows the mouse cursor. The Cur object can be any size you want. You will have to offset the object position so the points of the Cur object and the point of the mouse are in the same position.
You may want to find some way of hiding the windows cursor, but it may not be a problem if it shows?.

The mouse will just work as normal, but you could add all kinds of cursor changes if the user clicks the mouse button etc. You would have to register new handlers to other mouse actions.
You can also unregister handlers as well.

Sandy


You do not have the required permissions to view the files attached to this post.

_________________
Whoever designed this, never actually used it!


For this message sandyn has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Custom cursor in larger size
PostPosted: December 26th, 2011, 4:39 pm 
Offline

Joined: December 13th, 2008, 3:15 pm
Posts: 152
Location: Brasil
Opus: 7
OS: Windows 7 x64
System: Asus P5Q3 Deluxe, Core 2 Duo E8500, 8 Gb DDR3 1333 mhz, His IceQ5 5770 HD Graphic Card, Samsung T220 Monitor; Lenovo G550 T6600, 4 GB DDR3 - 15,6".
Thanks for the sample, Master Sandyn...

I will try the tips and post results hear so soon...

Cheers!

_________________
"To the ignorant, old age is the winter of life, for the wise, is the season of harvest."
It is not easy to translate the world into a binary code of 0s and 1s, but in scripts, anything is possible!


For this message NilsonBrasil has been thanked by : mackavi


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 26 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