You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Friday, March 26th 2010, 5:13pm

How to deactivate a customized cursor?

Hi,

In my actual panotour i have mixed some flatpanos with some spherical panos.
I'm using a customized cursor in drag2d mode to show the flatpanos. When i go back to a spherical pano i would like to use the normal movetocursor (Vector).
How can i unset the customized cursor?

Theo

michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

2

Friday, March 26th 2010, 5:19pm

Hi,

Have a look here: <control>
mousetype
mouse control type:
"drag2d" or "drag3d" or "moveto" (default="drag2d)
drag2d = drag and drop panorama on a 2d axis
drag3d = drag and drop panorama on a 3d axis
moveto = mouse sets a move vector for viewing
SAlut.

3

Friday, March 26th 2010, 5:44pm

Thank you, but that's unfortunately not what i've asked for.

I want to change the cursor (from a graphical cursor to the 'not graphical' movetocursor) and not the behaviour of the cursor.

The problem is:
I have set a customized png for my desired cursor, but i'm not able to unset this png. Changing the mousetype to 'moveto' is quite easy, but the png of my customized cursor is always visible after switching to a spherical pano...

michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

4

Friday, March 26th 2010, 6:00pm

Sorry, my mistake *rolleyes* ...

Source code

1
set(cursors.url,  path_to_your_cursor.png);

Have a look at the example given by Klaus:
customizable mouse cursors:
  • user defined mouse cursors
  • can be set and changed statically or dynamiically
  • CURSORS EXAMPLE
SAlut.

5

Friday, March 26th 2010, 6:16pm

Thank you again, but that's not... (you know what i want to say... ;-) )

Again: the movetocursor is not a cursor with a png (as i wrote already in my last posting), because it`s not a customized cursor.

For that reason you can't set a different url to the movetocursor, ok?

I would just like to switch back to a standard cursor.

I hope it's clear now... ;-)

This post has been edited 1 times, last edit by "lts" (Mar 26th 2010, 6:45pm)


michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

6

Friday, March 26th 2010, 7:01pm

Hi,

And if you set cursors.url as nothing (you know what i want to say... ;-) )???
like this:

Source code

1
set(cursors.url, );


You are welcome anyway...

SAlut.

7

Friday, March 26th 2010, 7:18pm

Oh man...
...it works...

This was my very first idea, but i was absolutely sure to receive an error message, and because of that i didn't try it...

*cry* *cry* *cry*

Thank you!

Theo