Properties Inspector
I would like to try modifying the Properties Inspector but am unable to locate a template stack . . . Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: HTMLTEXT of a Browser Widget in Properties Inspector?
> BR wrote: > and you have a "flicker" as the "cache" htmltext seems to load > and then the my code set it. > > So, now the question is... is the htmltext of browser widget > a saved property? I already answered both in my last post! Especially: = To avoid flicker hide the widget until it is ready (a few ticks) = The htmltext *is* a persistent property *of the widget*, saved with the stack. The htmltext are instructions for libbrowser to build the native display. It is NOT a saved videobuffer of the current native display. So it takes some time (a few ticks) to build this native display again, especially if there are images to load. Properties of widgets are user visible if the author implemented this. To make the htmltext of the widget user visible is no good idea because this would make the property inspector (mostly) unresponsive. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: HTMLTEXT of a Browser Widget in Properties Inspector?
Wow! That’s look like a minefield! I vote to this: should we make a enhancement request? ** It would be a great feature if it were possible to delete the cache. ** I *finally* go the old htmltext/cache to go went away. But it too several reboots and I tested on my Android etc. until it "becames" the new htmltext. BUT that "cache" seems to be persistent... and you have a "flicker" as the "cache" htmltext seems to load and then the my code set it. So, now the question is... is the htmltext of browser widget a saved property? Hmm. I turned off --set htmltext of widget "Loader" to fld "loaderHTML" [Save the scripts/stack] Reboot Livecode...Ahha! Gotcha! The widget "Loader" shows the htmltext as if it were are persistence property. But then "what?!" it suddenly disappears, leaving the widget "Loader" emptyblank white space (until on browserDocumentLoadComplete pURL hides it and show the widget "body" ) So that why it "flashes" on start up. We see a) some "mysterious" htmlText "momentary" persistent property b) which is suddenly replaced with set htmltext of widget "Loader" to fld "loaderHTML" So that makes two enhancement requests: 1 ** It would be a great feature if it were possible to delete the cache. ** 2. give the option to make the htmlText a browser widget a persistence property (so that is doesn't disappear after a moment) AND if that "check box" is selected, make it to available to the developer just like the content of a field. BR hh wrote: Browser widget: A. URL There are some problems with caching if one sets the URL and reloads. Then the chance is really big that you get fooled by the cache. I tried even to delete the widget and create a new one with the same URL. Also unloadig the url doesn't help. I couldn't catch with several traps a cache file on disk, probably it is in RAM. This is confirmed by the fact that a restart of LiveCode helps. ** It would be a great feature if it were possible to delete the cache. ** ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: HTMLTEXT of a Browser Widget in Properties Inspector?
Browser widget: A. URL There are some problems with caching if one sets the URL and reloads. Then the chance is really big that you get fooled by the cache. I tried even to delete the widget and create a new one with the same URL. Also unloadig the url doesn't help. I couldn't catch with several traps a cache file on disk, probably it is in RAM. This is confirmed by the fact that a restart of LiveCode helps. ** It would be a great feature if it were possible to delete the cache. ** B. HTMLtext But I have no problem with the htmltext of the widget. The widget saves the current htmltext with its properties (in the stack) whenever you save the stack. And it loadsit whenever you open the card conating the widget. The htmltext is not the content of the widget after you were doing some javascript in it. It is what you did set as htmltext. What I usually do is = set the htmltext to empty on closeCard = set it again on (pre)openCard. For the loader widget you could on preopenCard 1. hide the widget 2. set the htmltext 3. wait 3 ticks with messages (the widget needs some time for setting its property array) 4. display the widget p.s. The htmltext was never visible in the property inspector but you can always look at it by put the htmltext of widget into fld 1 [Don't put it into msg if you have inline images or LC will become slow.] ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: HTMLTEXT of a Browser Widget in Properties Inspector?
I can't help you but thanks for the tip to ask for the htmltext property when i need the page code. On Thu, Jan 17, 2019 at 2:26 PM Sannyasin Brahmanathaswami via use-livecode wrote: > I have a strange phenomena > > 1) The htmltext of the browser widget does not seem to be available in the > Properties Inspection > a. I could have sworn there was link/field to it in > previous version of LC > b. It is not available in a custom property > > 2) I set the htmltext of widget "loader" to empty. > > 3) Set the htmltext of widget "loader" to a field (using HH's method, it > is good for editing) > > 4) Save the stack, reload, there is a "flash" of *some* htmltext (as it > were caching in the background) then it loads the field, which is > different? > > I had some CSS wrong in the first HTMLTEXT and corrected in later… Now I > still see the "cached" version that is quickly replaced by my code > > set htmltext of widget "Loader" to fld "loaderHTML" > > Where is the previous htmltext of the browser widget hiding? > > > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
HTMLTEXT of a Browser Widget in Properties Inspector?
I have a strange phenomena 1) The htmltext of the browser widget does not seem to be available in the Properties Inspection a. I could have sworn there was link/field to it in previous version of LC b. It is not available in a custom property 2) I set the htmltext of widget "loader" to empty. 3) Set the htmltext of widget "loader" to a field (using HH's method, it is good for editing) 4) Save the stack, reload, there is a "flash" of *some* htmltext (as it were caching in the background) then it loads the field, which is different? I had some CSS wrong in the first HTMLTEXT and corrected in later… Now I still see the "cached" version that is quickly replaced by my code set htmltext of widget "Loader" to fld "loaderHTML" Where is the previous htmltext of the browser widget hiding? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode