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:
putting the time/date on a panel
This thread has 2 replies. Displaying all posts.
Post 1 made on Thursday February 14, 2008 at 01:56
Jimmy Bellagio
Advanced Member
Joined:
Posts:
January 2008
854
Is it possible to put the time and date on a panel? (or anything else)

Thanks
James S. Bellagio
Post 2 made on Thursday February 14, 2008 at 02:23
PS2
Long Time Member
Joined:
Posts:
October 2005
76
On February 14, 2008 at 01:56, Jimmy Bellagio said...
Is it possible to put the time and date on a panel? (or
anything else)

Thanks

Use GUI.getDisplayDate() and GUI.getDisplayTime() to get the date and time and assign it to the label associated with the panel.
Post 3 made on Thursday February 14, 2008 at 03:12
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
13,006
I'm presuming you are very new to JavaScript/ProntoScript here so I'll add some further details.


On your page, simply give your Panel a tag name such as DATE_TIME and then do the following in your Page Script (not the Activity Script):

var w = GUI.widget('DATE_TIME');
if (w)
w.label=GUI.getDisplayDate() + ' ' + GUI.getDisplayTime();
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