widget properties
Mark Wieder
ahsoftware at sonic.net
Thu Apr 7 01:15:48 EDT 2022
On 4/6/22 19:04, Neville Smythe via use-livecode wrote:
> Unfortunately LC doesn’t respond with a “object does not have this property” error message if you query any old reserved property key for a widget.
It's actually even worse. The clock widget, for instance:
The exported array contains special color options.
These appear in the property inspector colors pane.
You can set the backgroundColor.
You can query the backgroundColor.
But it doesn't appear in the property inspector colors pane.
It also doesn't appear in the custom properties pane.
It does maintain a reasonable value, but it doesn't do anything.
But it *is* serializable.
So does that qualify as a "property" of the widget?
Seems like it might be useful as a way to store "secret" information:
passwords, api keys, etc. that won't appear anywhere and you have to
know about them to query for them in the first place.
--
Mark Wieder
ahsoftware at gmail.com
More information about the use-livecode
mailing list