Custom Revolution tools

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
hamlynart
Posts: 101
Joined: Wed Mar 19, 2008 7:10 pm
Contact:

Custom Revolution tools

Post by hamlynart » Sun Aug 31, 2008 1:36 pm

Hi again,

Back last millenium I used to use a great piece of software called mTropolis which was very like Revolution in many ways. One great function was being able to create tools to add to the standard toolset and have them work like plugins. Is there a way to do this in Revolution? For example I'd like to do something like this:

on mouseUp
move the selectedObject of stack "myOtherStack" to random 100,100
end mouseUp

Any help would be much appreciated.

Best

Jim

gyroscope
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 404
Joined: Tue Jan 08, 2008 3:44 pm
Contact:

Post by gyroscope » Sun Aug 31, 2008 1:49 pm

Hi Jim

There are many plugins for Rev, all helping in many ways. But I personally don't quite understand:
create tools to add to the standard toolset and have them work like plugins
Perhaps it's my age...:wink:

You can get your prob sorted with straightforward code, without the need for any sort of plugin, one way might be:

Code: Select all

on mouseUp
   put random(100) into tUpDown
   put random(100) into tLeftRight
   set the location of me -- or graphic "SuchandSuch" -- to tUpDown,tLeftRight
end mouseUp
Hope that's been of some help to you.... :)

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Post by BvG » Sun Aug 31, 2008 2:25 pm

The "problem" is that Rev is made with Rev itself. As you could quite simply add a button to the iconbar or toolbar yourself, there's not much incentive for RunRev to add a special way to do additions.

There is a plugin menu item under the development menu, but that's mostly a library loading place.
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

hamlynart
Posts: 101
Joined: Wed Mar 19, 2008 7:10 pm
Contact:

Post by hamlynart » Sun Aug 31, 2008 11:01 pm

My code was just an example. I want to be able to make a custom tool pallet which can be used for all my projects. It turns out that I've actually figured out how to do it - I just needed to drop my project into the plugins folder and restart Revolution.

Thanks

Jim

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10045
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Post by FourthWorld » Mon Sep 01, 2008 7:45 pm

Tools in Rev are a snap: just make whatever you like and store it in your plugins folder.

In Rev, see Development->Plugins
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply