« New Phidgets supporte… | Home | MBS Filemaker Plugin,… »

About WebPicture.Preload function


There is a nice undocumented function Preload on the WebPicture class in Real Studio 2011r1. You can use it to load a picture to the browser without displaying it. This is very useful for a slide show where you want to have all picture local. So your code has this steps:
  1. Create picture somewhere
  2. Call Preload to load it. (e.g. in webpage.shown event)
  3. Use it later with some other event like a button action.
As the picture is preloaded, it will show instantaneously.

Check in Web Inspector (Safari) to see when picture is loaded to the website. There is a similar extension available for Firefox, I think.

Download test project: preloadtest.zip
27 03 11 - 14:28
No comments

  
Remember personal info?

Emoticons / Textile


Notify:
Hide email:

Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.