Your Universal Remote Control Center
RemoteCentral.com
Philips Pronto Professional Forum - View Post
Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Original thread:
Post 3 made on Tuesday January 13, 2009 at 10:42
GuerillaBuild
Long Time Member
Joined:
Posts:
December 2008
79
although it is a similar method to pthornhill, you can also use setImage and getImage to dynamically load widget graphics. If I want to use a different pressed or released state image on a button widget, I can pull a different graphic from a different page or from a web or local PC location (with the help of some tcp sockets) .

ex: currentwidget.setImage(someotherwidget.getImage(0),1);

The above gets the released state graphic (0) from someotherwidget and assigns it to the pressed state of currentwidget (1).

There are a number of other things you can do to make a large number of widgets manageable: Use the group function in PEP2 to make object positioning easier. Place hidden objects off page (set the PEP2 editor to landscape and with the TSU9400 at least, you get extra editing space to work with. If you save and download the xcf with objects outside the screen bounds, they still transfer to the Pronto. The nice part is that you can use script to move the object into view as you have in your original example. Thus use 'top' and 'left' to shunt the image into place. If your code is fluid, it should look like a slide in effect.
You can hide almost anything until you have to put the drywall up!


Hosting Services by ipHouse