Can a picture be a button or vice versa??

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
tenzin khedrup
Posts: 5
Joined: Mon Oct 22, 2007 7:00 pm

Can a picture be a button or vice versa??

Post by tenzin khedrup » Sat Oct 27, 2007 4:32 am

I am very new to RR and would like to create an image that is a button. Imagine the rectangular shaped "Revolution Forums" picture in the very top left of this window as a button. I want to be able to make it function like a button and look like its been clicked.
Whats the easiest way to achieve this?

Thanks in advance
Tenzin.

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

Post by Mark » Sat Oct 27, 2007 10:42 am

tenzin khedrup,

Code: Select all

set the icon of btn 1 to 1004
if the id of your image is 1004.

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

Post Reply