Devolution Custom Script Buttons

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
bhall2001
Posts: 107
Joined: Thu Oct 30, 2014 3:54 pm
Location: Manchester, NH

Devolution Custom Script Buttons

Post by bhall2001 » Wed Sep 14, 2016 11:03 pm

I'm curious what you might be using for your custom script buttons for in Devolution. I'll share what I'm doing with 3 of the 4 buttons in my setup.

I use these buttons to copy object references to the clipboard. This is great especially getting references for front and back scripts (among other things). Here's what I have.

Custom 1 Name: ObjID->Clpbd
Script:

Code: Select all

on mouseUp
   if the selectedObject is "" then
      answer error "Nothing Selected..."
   else
      set the clipboardData to the id of the selectedObject
   end if
end mouseUp
Custom 2 Name: ShtRef->Clpbd
Script:

Code: Select all

on mouseUp
   if the selectedObject is "" then
      answer error "Nothing Selected..."
   else
      set the clipboardData to the name of the selectedObject
   end if
end mouseUp
Custom 3 Name: LngRef->Clpbd
Script:

Code: Select all

on mouseUp
   if the selectedObject is "" then
      answer error "Nothing Selected..."
   else
      set the clipboardData to the long name of the selectedObject
   end if
end mouseUp
I'll share my 4th script button and another modification I've made to the Tool pending responses to this post.

Kudos to Richard Gaskin for such a great utility that's totally changed the way I work in the IDE.

Bob Hall

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Location: Berkeley, CA, US
Contact:

Re: Devolution Custom Script Buttons

Post by mwieder » Sun Oct 02, 2016 6:16 pm

Here's one I use frequently:

Name: gRevDevelopment
Script:

Code: Select all

on mouseUp
   global gRevDevelopment
   put not gRevDevelopment into gRevDevelopment
   if gRevDevelopment then
      set the hilite of me to true
   else
      set the hilite of me to false
   end if
end mouseUp

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9840
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Devolution Custom Script Buttons

Post by FourthWorld » Wed Oct 12, 2016 7:20 pm

bhall2001 wrote:I'm curious what you might be using for your custom script buttons for in Devolution.
The one I use most often could just as well sit in a backscript, but I frequently just need to path to a file to do something with so I have:

Code: Select all

on mouseUp
   answer file "Select a file:"
   if it is empty then exit to top
   set the clipboardData["text"] to it
end mouseUp
Kudos to Richard Gaskin for such a great utility that's totally changed the way I work in the IDE.
Very glad you're enjoying it, Bob. For me the quick access to the essential tools, and "only when you need 'em" access to everything else has freed up my development workflow so that it feels more like I'm running an IDE inside my app than squeezing my app inside an IDE.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”