Post 3 made on Friday January 4, 2008 at 18:21 |
Barry Gordon Founding Member |
Joined: Posts: | August 2001 2,157 |
|
|
To elaborate, panels have one image and buttons have two. Think of the images as held in an array refrenced by indicies 0 and 1, Perhaps someday Philips will allow this array to be expandable and to hold many images for animation
The getImage method of a widget takes as an argument the index into the image array of that widget and returns a structure suitable to be used by the setImage method
The setImage method takes two arguments, the first being exactly that returned by the getImage method and the secondf the index into the widgets array of images where the gotten image is to be placed.
As Lyndel nicely shows most of us just use the getImage method on the source of the image as the first argument of setImage.
I am not sure if you can store the result of a getImage method in a prontoscript variable, but it would be nice if you could... Lyndel? I guess one could just try it out.
|
|
|