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

Login:
Pass:
 
 

Topic:
Possible to script change of background image?
This thread has 1 response. Displaying all posts.
Post 1 made on Friday September 9, 2016 at 17:14
darkages
Long Time Member
Joined:
Posts:
October 2005
14
I have done some identical pages just to be able to switch background image.
Can this be done with a script instead?, to change the background in system properties on the fly.

Regards
Post 2 made on Sunday September 11, 2016 at 12:52
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,992
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

Jump to


Protected Feature Before you can reply to a message...
You must first register for a Remote Central user account - it's fast and free! Or, if you already have an account, please login now.

Please read the following: Unsolicited commercial advertisements are absolutely not permitted on this forum. Other private buy & sell messages should be posted to our Marketplace. For information on how to advertise your service or product click here. Remote Central reserves the right to remove or modify any post that is deemed inappropriate.

Hosting Services by ipHouse