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
bsouthuk
Posts: 261
Joined: Fri Dec 05, 2008 7:25 pm

Buttons

Post by bsouthuk » Wed Jan 21, 2009 3:18 pm

Wonder if someone can help me on this:

I want to activate 3 buttons when I click on a completely different button. I have different scrypts in each of the 3 buttons so when I click button 4 for example I want the other 3 buttons to perorm their scripts. Does anybody know the code i need to put into button 4 to activate the other 3 buttons?

Thanks

Daniel

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

Post by FourthWorld » Wed Jan 21, 2009 4:47 pm

By "activate" do you mean they're currently disabled, or that you want to trigger them?

To enable them:

on mouseUp
enable btn "Button1"
end mouseUp

To trigger:

on mouseUp
send "mouseUp" to btn "Button1"
end mouseUp

or:

on mouseUp
click at the loc of btn "Button1"
end mouseUp
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

bsouthuk
Posts: 261
Joined: Fri Dec 05, 2008 7:25 pm

Post by bsouthuk » Wed Jan 21, 2009 6:59 pm

I wanted to trigger them - either way you've answered my question!

Thanks very much for that.

Daniel

Post Reply