How to attach/use revCursors?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
ale870
Posts: 250
Joined: Tue Apr 22, 2008 9:17 am
Contact:

How to attach/use revCursors?

Post by ale870 » Tue Mar 23, 2010 2:55 pm

Hello,

I want to use the command set the cursor to hand to change cursor shape, but nothing happen. Then I noticed that revCursors.rev stack is NOT in my stacks list. Please note I have this problem in the IDE, and not in runtime (I know I need to attach that stack).

How can I attach the stack in the IDE, so I can use it properly?

Thank you!
Runtime Revolution Widgets, tutorials, tips & tricks and more!
http://runrevwidgets.com/wiki

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: How to attach/use revCursors?

Post by Mark » Tue Mar 23, 2010 3:26 pm

ale870 ,

Go to the General pane of the Standalone Settings window and choose Select inclusions for the standalone application. Activate the Cursors checkbox.

Best regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

ale870
Posts: 250
Joined: Tue Apr 22, 2008 9:17 am
Contact:

Re: How to attach/use revCursors?

Post by ale870 » Tue Mar 23, 2010 3:34 pm

But if I'm not wrong, I think that is the way to include cursors in standalone files, not in the IDE. is it correct?
Runtime Revolution Widgets, tutorials, tips & tricks and more!
http://runrevwidgets.com/wiki

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: How to attach/use revCursors?

Post by Mark » Tue Mar 23, 2010 3:46 pm

ale870,

It just can't be that you don't see a hand in the IDE but do see it in a standalone. Perhaps, your problem isn't that the stack is not included. Try this:

Code: Select all

on mouseUp
  set the cursor to hand
  wait 5 secs
end mouseUp
Do you see the hand?

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

ale870
Posts: 250
Joined: Tue Apr 22, 2008 9:17 am
Contact:

Re: How to attach/use revCursors?

Post by ale870 » Tue Mar 23, 2010 3:52 pm

Yes, I see the hand!!
And then? What is happening?
Runtime Revolution Widgets, tutorials, tips & tricks and more!
http://runrevwidgets.com/wiki

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: How to attach/use revCursors?

Post by Mark » Tue Mar 23, 2010 4:05 pm

ale870,

The cursor property is reset as soon as the handler finishes. To make the cursor change persistent, you need to use the defaultCursor.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

ale870
Posts: 250
Joined: Tue Apr 22, 2008 9:17 am
Contact:

Re: How to attach/use revCursors?

Post by ale870 » Tue Mar 23, 2010 4:13 pm

Thank a lot!
It works perfectly!!!! :D
Runtime Revolution Widgets, tutorials, tips & tricks and more!
http://runrevwidgets.com/wiki

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”