Disappearing Disabled Prop Inspector? and other possible bug

LiveCode Builder is a language for extending LiveCode's capabilities, creating new object types as Widgets, and libraries that access lower-level APIs in OSes, applications, and DLLs.

Moderators: LCMark, LCfraser

Post Reply
PaulDaMacMan
Posts: 683
Joined: Wed Apr 24, 2013 4:53 pm
Contact:

Disappearing Disabled Prop Inspector? and other possible bug

Post by PaulDaMacMan » Wed Apr 01, 2015 11:12 pm

Just started playing around with widgets... wasn't long before I hit a snag. After changing some Navbar widget properties (font-awesome icons) my Property Inspector stop showing up and can't select any controls. It's only when I have this particular stack open that this occurs. This stack is at my home and so I can't attach right now, but can anyone confirm any similar problems?

Can anyone tell me where it pulls font-awesome from... the web? What exact version of the font we are dealing with here? It doesn't appear to be the latest 4.3 version of the font/icons as some of the icons don't jive-up. Version 3.2 maybe?

And finally, when I try to print the card with this widget it results in instant crash.

I know it's early on in the LC 8 cycle but I did a check for a related bug reports and didn't find match.
Wondering if there will be another LiveCode "Jam" for 8.0x?

Mac OS X SnowLeopard 10.6.8
LC 8.0sp1

PaulDaMacMan
Posts: 683
Joined: Wed Apr 24, 2013 4:53 pm
Contact:

Re: Disappearing Disabled Prop Inspector? and other possible

Post by PaulDaMacMan » Fri Apr 03, 2015 3:31 pm

Here is the bad stack from my original post
Attachments
badstack_InspectorBug.livecode.zip
This stack borks property inspector while open
(1.46 KiB) Downloaded 333 times

trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1005
Joined: Sat Apr 08, 2006 3:06 pm
Contact:

Re: Disappearing Disabled Prop Inspector? and other possible

Post by trevordevore » Fri Apr 03, 2015 3:33 pm

@PaulDaMacMan - looks like the printing issue has been addressed internally.

https://github.com/runrev/livecode/comm ... 53532d4be0
Trevor DeVore
ScreenSteps - https://www.screensteps.com

LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder

PaulDaMacMan
Posts: 683
Joined: Wed Apr 24, 2013 4:53 pm
Contact:

Re: Disappearing Disabled Prop Inspector? and other possible

Post by PaulDaMacMan » Fri Apr 03, 2015 5:53 pm

trevordevore wrote:@PaulDaMacMan - looks like the printing issue has been addressed internally.

https://github.com/runrev/livecode/comm ... 53532d4be0
Thanks for that. Though the printing issue was kind of an afterthought for me, I assumed it was due to the early build nature of the version I was trying. However, I find that solution less then optimal: "Widgets are rasterized to a screen-resolution image and then printed." That means you loose the vector paths of an SVG Based Icon or Canvas! Not very good when your goal is high-resolution printing.
My GitHub Repos: https://github.com/PaulMcClernan/
Related YouTube Videos: PlayList

PaulDaMacMan
Posts: 683
Joined: Wed Apr 24, 2013 4:53 pm
Contact:

Re: Disappearing Disabled Prop Inspector? and other possible

Post by PaulDaMacMan » Fri Apr 03, 2015 11:27 pm

PaulDaMacMan wrote: "Widgets are rasterized to a screen-resolution image and then printed." That means you loose the vector paths of an SVG Based Icon or Canvas! Not very good when your goal is high-resolution printing.
Perhaps a setting/parameter could be added to allow higher-then screen-resolution (like "set the widgetCanvas to 300" -- as in 300dpi)
My GitHub Repos: https://github.com/PaulMcClernan/
Related YouTube Videos: PlayList

LCMark
Livecode Staff Member
Livecode Staff Member
Posts: 1232
Joined: Thu Apr 11, 2013 11:27 am

Re: Disappearing Disabled Prop Inspector? and other possible

Post by LCMark » Sat Apr 04, 2015 2:53 pm

@PaulDaMacMan: the rasterisation of widgets for printing is temporary (I figured printing something was better than nothing). We need to do some updates to the internal printing architecture to allow widgets to print with high-fidelity. I filed this after patching the crash: http://quality.runrev.com/show_bug.cgi?id=15133

PaulDaMacMan
Posts: 683
Joined: Wed Apr 24, 2013 4:53 pm
Contact:

Re: Disappearing Disabled Prop Inspector? and other possible

Post by PaulDaMacMan » Sat Apr 04, 2015 5:20 pm

Awesome!
As I said, I know it's early on in the LC8 dev cycle but I've been looking into the Skia rendering engine and I'm just so damn excited! I can't wait for Widgets & Open Language to mature! Looking forward to better/native sound/music capabilities in LC!

I see there are some updates to some widget things on git hub and I'm getting a little confused and have more questions:
I uninstalled "SVG Icon" to get ready to update it to the revised and more appropriately named "SVG Path" (as well as having inverting bug fix?),
and decided to test a SVG path based path animation stack I whipped up using SVG Icon's iconPath parameter WITHOUT having the widget I used installed and it still worked!

^So this mean widgets get embedded into a stack? ...or card? once they are placed?

^Then is there anyway of getting the original name or type /version number of the original widget from a widget placed on a card?

As mentioned in this forum, with the hopeful coming of the widget & library extension explosion about to take place,
there will have to be some very good widget management system in place!
My GitHub Repos: https://github.com/PaulMcClernan/
Related YouTube Videos: PlayList

PaulDaMacMan
Posts: 683
Joined: Wed Apr 24, 2013 4:53 pm
Contact:

Re: Disappearing Disabled Prop Inspector? and other possible

Post by PaulDaMacMan » Wed Apr 08, 2015 7:30 pm

PaulDaMacMan wrote: ^So this mean widgets get embedded into a stack? ...or card? once they are placed?
Actually took the time to read the builder guide! :oops:
"LiveCode saves this data along with instances of the widget in the stack file." (btw, there's a typo in the guide right before this)

Still the instances that are saved have no meta info about the original that the instance was created from attached to them.
Could it be possible to have say PaulsSuperGreatWidget v.1.0 AND PaulsSuperGreatWidget v2.0 in the same stack?

I know you brilliant LiveCode peoples are probably already on/or past this, but I thought I'd throw it out there anyway.
My GitHub Repos: https://github.com/PaulMcClernan/
Related YouTube Videos: PlayList

trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1005
Joined: Sat Apr 08, 2006 3:06 pm
Contact:

Re: Disappearing Disabled Prop Inspector? and other possible

Post by trevordevore » Wed Apr 08, 2015 7:36 pm

I don't know how to get the version of the widget, but you can check the "kind" property.
Trevor DeVore
ScreenSteps - https://www.screensteps.com

LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder

PaulDaMacMan
Posts: 683
Joined: Wed Apr 24, 2013 4:53 pm
Contact:

Re: Disappearing Disabled Prop Inspector? and other possible

Post by PaulDaMacMan » Thu Apr 09, 2015 1:31 am

Yes, the "kind of me" returns the Reverse DNS of the widget (community.livecode.pgmcclernan.supergreatwidget), but "version of me" returns the engine version.
I believe I read somewhere that the meta system that is currently in place is only temporary and will be replaced in a later revision.
I guess for now I'll tack on the version number to the reverse DNS ID (community.livecode.pgmcclernan.supergreatwidget002)
It seems 8.0dp1 has trouble replacing an already installed version properly anyway (at least with libraries / icon.png have to quit and restart to check).
My GitHub Repos: https://github.com/PaulMcClernan/
Related YouTube Videos: PlayList

LCMark
Livecode Staff Member
Livecode Staff Member
Posts: 1232
Joined: Thu Apr 11, 2013 11:27 am

Re: Disappearing Disabled Prop Inspector? and other possible

Post by LCMark » Mon Apr 13, 2015 1:57 pm

Versioning is still a 'to be implemented' feature :)

When a widget is saved to a stackfile, it is saved with the array generated by OnSave and the full name of the widget 'type'. In a future iteration, it will also save along with it the version of widget's module.

We still have yet to finalize the details, however one current option is that a widget will be able to implement multiple OnLoad handlers - one for each supported widget version. As a widget is entirely defined by its state returned by OnSave, a suitably implemented widget will be able to support older versions by implementing an OnLoad handler for a previous version of the widget's state structure.

PaulDaMacMan
Posts: 683
Joined: Wed Apr 24, 2013 4:53 pm
Contact:

Re: Disappearing Disabled Prop Inspector? and other possible

Post by PaulDaMacMan » Wed May 06, 2015 6:51 pm

Finally got around to posting a bug report for the stack in the original post.
Bug 15328 http://quality.runrev.com/show_bug.cgi?id=15328
My GitHub Repos: https://github.com/PaulMcClernan/
Related YouTube Videos: PlayList

Post Reply