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
-
dalkin
- Posts: 183
- Joined: Wed Jul 04, 2007 2:32 am
-
Contact:
Post
by dalkin » Mon Jul 09, 2007 1:39 am
Does anyone know whether a graphic object can be made draggable in a stand-alone app?
-
BvG
- VIP Livecode Opensource Backer

- Posts: 1239
- Joined: Sat Apr 08, 2006 1:10 pm
-
Contact:
Post
by BvG » Mon Jul 09, 2007 7:55 am
I know!
Check out the drag command, or if that does not suffice, you can set the location of your graphic relative to the mouse in a repeat loop.
Various teststacks and stuff:
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
-
dalkin
- Posts: 183
- Joined: Wed Jul 04, 2007 2:32 am
-
Contact:
Post
by dalkin » Mon Jul 09, 2007 8:42 am
Before I posted this, I tried searching the dictionary and it returns the following, none of which is relevant:
http://www.stoplaughing.com.au/images/Picture1.png
If you know of another location where I could get the info, it'd be appreciated.
-
malte
- Posts: 1098
- Joined: Thu Feb 23, 2006 8:34 pm
-
Contact:
Post
by malte » Mon Jul 09, 2007 8:54 am
Hi,
the easiest way is the grab command.
on mouseDown
grab me
end mouseDown
If you need to constrain the movement let us know.
All the best,
Malte
-
dalkin
- Posts: 183
- Joined: Wed Jul 04, 2007 2:32 am
-
Contact:
Post
by dalkin » Mon Jul 09, 2007 9:02 am
Malte, thanks very much - right on the money!
-
BvG
- VIP Livecode Opensource Backer

- Posts: 1239
- Joined: Sat Apr 08, 2006 1:10 pm
-
Contact:
Post
by BvG » Mon Jul 09, 2007 12:19 pm
ah sorry, i always confuse grab with drag, my bad!
Various teststacks and stuff:
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
-
Lynn P.
- Posts: 79
- Joined: Sun Apr 09, 2006 1:09 pm
Post
by Lynn P. » Mon Jul 09, 2007 2:05 pm
BvG wrote:ah sorry, i always confuse grab with drag, my bad!
LOL! You're not the only one Björnke. "Grab" always feels like such a hostile and forward thing to do with a poor little Rev object, so it never enters my mind.
Lynn P.
