Widget properties
Monte Goulding
monte at appisle.net
Wed Apr 6 18:44:53 EDT 2022
I suspect this will be classed as not a bug as there has never been any intention of supporting the properties for widgets as far as I’m aware but it might be worth submitting it anyway and detailing your use case. I think if you look at the old lcVCS discussions on the forums from before my time on the LC team Mark implemented import/export widget in response to my needs there. The properties is really not that worthwhile for widgets as it would only ever support the common object properties like visible, rect etc.
Thinking back when I did a PR for the properties soon after LC went open source it should have been deprecated instead of accepting it. I wouldn’t have understood that was the best thing to do at the time though. It really would be better to add all the other object types to the import/export commands. One reason I think it would be good for you to submit a bug report is it could be changed to a docs bug and resolved by deprecating the properties, adding a note about the lack of widget support and the import/export command that can be used there and perhaps opening a feature request to support other objects in import/export.
Cheers
Monte
> On 6 Apr 2022, at 10:03 pm, Neville Smythe via use-livecode <use-livecode at lists.runrev.com> wrote:
>
> Is it not a bug that
>
> the properties of widget “foo”
>
> returns empty (for all values of foo)?
>
> No rect, no visible, no disabled etc, even though these clearly are settable and functional properties of the widget.
>
> You can
>
> export widget “foo” to array “bar”
>
> but that gives the intrinsic properties of the widget not the usual object properties. Oh and don’t forget the reserved word “array” in the above line, that causes an IDE crash (bug 23655 <https://quality.livecode.com/show_bug.cgi?id=23655> confirmed)
>
> Neville
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list