Attributes

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
RossG
Posts: 247
Joined: Thu Jan 08, 2015 7:38 am

Attributes

Post by RossG » Tue Jun 14, 2016 3:30 am

Is there a source which will give me all the attributes
of a button (or any other object)?

Particularly (in reference to a button) the one which makes it active/inactive.

Looked in the usual places without success.
Is age an excuse? Eighty-four and counting.
Programming powered by coffee.

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

Re: Attributes

Post by FourthWorld » Tue Jun 14, 2016 4:27 am

Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9648
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Attributes

Post by dunbarx » Tue Jun 14, 2016 4:56 am

Richard's offering likely makes use of the "properties" property. Make a field. Try this in a button:

Code: Select all

on mouseUp
   get the properties of btn 1
   combine it with return and tab
   put it into fld 1
end mouseUp
The extra stuff is because the "properties" returns an array.

Craig Newman

RossG
Posts: 247
Joined: Thu Jan 08, 2015 7:38 am

Re: Attributes

Post by RossG » Thu Jun 16, 2016 8:24 am

Richard
Sometimes when LC find an error the alert box is in indecipherable font.

Well...

I recall this was discussed here some time ago. Any answers?
Attachments
4W Properties.png
Is age an excuse? Eighty-four and counting.
Programming powered by coffee.

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”