NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 17 18 19 20 21 … 93 Next »
Suppressing the Date/Time field from global.xml

 
  • 0 Vote(s) - 0 Average
Suppressing the Date/Time field from global.xml
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#1
2010-11-18, 12:05 AM
When my code is running as the default screensaver, I have a completely black screen to work with. But if I start it from the Main Menu, the Date/Time and nowplaying info is displayed over the top.

I know this is to do with the order in which the screen elements are rendered, but is there any way to suppress or over-ride the Date/Time display field from global.xml (and the nowplaying info)?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#2
2010-11-18, 12:24 AM
If one or more elements in your render list have a name that starts with 'screensaver' then it wont put the date time over them.
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#3
2010-11-18, 12:43 AM
sub Wrote:If one or more elements in your render list have a name that starts with 'screensaver' then it wont put the date time over them.
I'm using the code you posted for me some time ago
Code:
Bitmap black = new Bitmap(32, 32);
            Graphics g = Graphics.FromImage(black);
            g.Clear(Color.Black);
            g.Dispose();
            blackUiElement = new UiElement("screensaver-black", new RectangleF(0, 0, 100, 100), black);
and this is my render list
Code:
renderList.Add(blackUiElement);
            renderList.AddRange(currentViewStatic.GetRenderList());
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,118
Threads: 957
Joined: May 2006
#4
2010-11-18, 12:43 AM
I have wanted to suppress now playing on WebRadio since it was added. Would it be possible if there was something named NowPlaying to not show it until the screen saver activates?

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#5
2010-11-18, 12:45 AM
ACTCMS Wrote:I'm using the code you posted for me some time ago
Code:
Bitmap black = new Bitmap(32, 32);
            Graphics g = Graphics.FromImage(black);
            g.Clear(Color.Black);
            g.Dispose();
            blackUiElement = new UiElement("screensaver-black", new RectangleF(0, 0, 100, 100), black);
and this is my render list
Code:
renderList.Add(blackUiElement);
            renderList.AddRange(currentViewStatic.GetRenderList());
That should do, but only applies to screensaver's run the regular way (ie, as a popup not the active screen)
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#6
2010-11-18, 01:01 AM
sub Wrote:That should do, but only applies to screensaver's run the regular way (ie, as a popup not the active screen)
So if I changed my code to display a fullscreen popup on top of the normal UI, it would work when running as a plugin - ie started from the main menu?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#7
2010-11-18, 01:22 AM
The screen saver is just a regular popup, so yes if you show it as a popup, then it should suppress the date time.
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#8
2010-11-18, 01:36 AM
I'll have a try at that then... thanks
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Status field values in Table SCHEDULED_RECORDING scJohn 2 2,404 2019-07-03, 07:01 PM
Last Post: sub
  Extending end time. mvallevand 5 4,157 2018-10-17, 01:21 PM
Last Post: jcole998
  Web Client: Slow with separate thread and date not obscured cncb 32 16,310 2016-10-10, 02:01 PM
Last Post: mvallevand
  Scheduled_Recordings - Filename field limited to 50 characters? JavaWiz 6 4,572 2015-10-28, 10:46 PM
Last Post: JavaWiz
  Extending recording time mvallevand 2 2,507 2014-09-14, 01:04 AM
Last Post: sub
  Time to make Touch web Service less experimental fred250 106 29,372 2014-06-15, 09:13 PM
Last Post: fred250
  <StartTime> and <EndTime> time formats? spinnaker 3 2,556 2013-10-25, 01:48 AM
Last Post: spinnaker
  Interpretting RECURRING_RECORDING match_rules field bgowland 7 3,427 2013-04-24, 02:54 AM
Last Post: bgowland
  SQL SELECT DISTINCT (and not distinct at the same time) bgowland 2 4,054 2012-01-22, 10:19 PM
Last Post: bgowland
  Date Time display Northpole 0 1,479 2011-08-01, 04:28 PM
Last Post: Northpole

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode