Post 2 made on Sunday September 11, 2016 at 12:52 |
Lyndel McGee RC Moderator |
Joined: Posts: | August 2001 12,999 |
|
|
In PEP2, there is no way to view pages side-by-side as you could do in PEP1 so there is no way to set the same image for one or more pages using a common 'Properties' dialog.
With PEP2, however, you can assign a background image at the Activity Level which will apply for all pages in that activity. Unfortunately, there is no way to access this image via script.
So, on to another way to attempt this.
The System Activity and Page are know in ProntoScript by 'tags' (ProntoScript Names) of 'PS_SYSTEM'.
So, in theory, you could put a panel on your System page and assign it a system-wide unique ProntoScript name of 'SYSTEM_PAGE_CUSTOM_BACKGROUND'.
Via script, in the 'PAGE' script you could then try the following
var backWidget = GUI.widget('SYSTEM_PAGE_CUSTOM_BACKGROUND');
// TODO - do whatever you want with this widget - set images, etc...
If the above does not work, try
var backWidget = CF.widget('SYSTEM_PAGE_CUSTOM_BACKGROUND','PS_SYSTEM','PS_SYSTEM');
// TODO - do whatever you want with this widget - set images, etc...
Note that whenever you jump to a new page, you will have to repeat this process all over again.
Lyndel
|
|
Lyndel McGee Philips Pronto Addict/Beta Tester
|
|