Page 1 of 1

Attributes

Posted: Tue Jun 14, 2016 3:30 am
by RossG
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.

Re: Attributes

Posted: Tue Jun 14, 2016 4:27 am
by FourthWorld

Re: Attributes

Posted: Tue Jun 14, 2016 4:56 am
by dunbarx
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

Re: Attributes

Posted: Thu Jun 16, 2016 8:24 am
by RossG
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?