Page 1 of 1
Focusable and other words
Posted: Thu Sep 18, 2014 1:33 pm
by Chilton
Hi,
Where can I get a list of what words appear in the properties panel vs what they actually are, for the purpose of scripting?
For example, there's a "focusable" button in the panel for text objects. What's the script equivalent?
Thank you!
-Chilton
Re: Focusable and other words
Posted: Thu Sep 18, 2014 1:37 pm
by Klaus
Hi Chilton,
do this:
1. open the Preferences in Livecode
2. Section "General", on top of the chard check "Property labels are" -> "Name of Livecode property"
3. Close the prefs and now you see the Livecode terms in the property inspector
Best
Klaus
Re: Focusable and other words
Posted: Thu Sep 18, 2014 1:43 pm
by Chilton
Fantastic!
That saves a ton of time and removes most of the remaining issues I've been running into.
I'm not sure why they decided against using the right terms to begin with, or at least some version of them, but at this point I just want the product done so I don't care
-Chilton
Re: Focusable and other words
Posted: Thu Sep 18, 2014 4:21 pm
by dunbarx
Hi.
It was just for readability. For example "focus" is a native command, and it is easy to see what it means. If you set the "focusable" of an object in the inspector, you similarly sort of get what you are doing to that object, even though there is no such word in the dictionary.
The 'traversalOn" property is the actual property that allows the user to "focus" on an object, that is, to have the object pay any attention at all to a mouseClick, say. This property name, whatever you think about it, is not terribly intuitive. Hence the preference option. Most other changes, if you toggle the preference as you watch the inspector, simply rewrite the descriptive name to the property name. Mostly, only the case and number of words changes.
Craig Newman
Re: Focusable and other words
Posted: Thu Sep 18, 2014 5:01 pm
by FourthWorld
dunbarx wrote:The 'traversalOn" property is the actual property that allows the user to "focus" on an object, that is, to have the object pay any attention at all to a mouseClick, say. This property name, whatever you think about it, is not terribly intuitive.
Traversal comes from the old Motif world, where MetaCard was born, referring to the ability to traverse controls with the keyboard. Adding "On" to it seems redundant, and in the modern multi-platform world, where we use different nomenclature for that, this is among the things I'm hoping Open Language can help us clean up by providing more memorable synonyms for.
Re: Focusable and other words
Posted: Sat Sep 20, 2014 10:33 am
by SparkOut
You can set the preferences to show the "intuitive" names in the property inspector and when you hover the mouse cursor over the name, you should get a tooltip that indicates the property name. I find that the best of both worlds, obviously you can decide for yourself.