NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 45 46 47 48 49 … 93 Next »
how to force redraw?

 
  • 0 Vote(s) - 0 Average
how to force redraw?
Wakalaka
Offline

Posting Freak

Posts: 926
Threads: 161
Joined: Jan 2007
#1
2007-03-27, 09:31 AM
I have a timer in the plugin I'm developing in C# and can't figure out how to force a redraw. I have "bool b; render(out b);" but this doesn't work. Digging through MSDN help to figure it out, but so far am coming up empty.
NPVR 4.1.0.180302 o Kodi 17.6 o EventGhost 0.5.0.rc4 o SAF 6.3.2 o SchedulesDirect
[SIZE="1"]
Case: Apevia X-Qpack HTPC o Motherboard: Asus P8H67-MLE o CPU: Intel Core i3-2100 o RAM: 8 GB o OS: Win7 64-bit
Tuner: HDHomeRun dual tuner o Leaf SkyHDTV antenna o Remote: Microsoft MCE
Hard drives: Samsung 500 GB SSD, Seagate 2 TB SATA2, Samsung 540 GB SATA2 o Input: Logitech USB keyboard & mouse
Video: ATI Radeon 7750 o Monitor: Viewsonic 27" VX2703MH-LED, LG 55" LCD TV
[/SIZE]
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#2
2007-03-27, 09:40 AM
or set needsrendering method the return true
Wakalaka
Offline

Posting Freak

Posts: 926
Threads: 161
Joined: Jan 2007
#3
2007-03-27, 09:44 AM (This post was last modified: 2007-03-27, 09:53 AM by Wakalaka.)
Can you elaborate? I'm new to GB-PVR plugin development. My code has the following (I used the plugin example skeleton, stocks plugin, and weather plugin to get to the point I'm at now). I just need to force a redraw when my timer event occurs.

public bool needsRendering()
{
// TODO: Add needsRendering implementation
return false;
}

// TODO: Replace with your render implementation
public System.Drawing.Image render(out bool requiresMoreRendering)
{
requiresMoreRendering = false;
NPVR 4.1.0.180302 o Kodi 17.6 o EventGhost 0.5.0.rc4 o SAF 6.3.2 o SchedulesDirect
[SIZE="1"]
Case: Apevia X-Qpack HTPC o Motherboard: Asus P8H67-MLE o CPU: Intel Core i3-2100 o RAM: 8 GB o OS: Win7 64-bit
Tuner: HDHomeRun dual tuner o Leaf SkyHDTV antenna o Remote: Microsoft MCE
Hard drives: Samsung 500 GB SSD, Seagate 2 TB SATA2, Samsung 540 GB SATA2 o Input: Logitech USB keyboard & mouse
Video: ATI Radeon 7750 o Monitor: Viewsonic 27" VX2703MH-LED, LG 55" LCD TV
[/SIZE]
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#4
2007-03-27, 09:58 AM
Set up some sort of update variable and have it set to false.

Code:
public bool needsRendering()
{
// TODO: Add needsRendering implementation
    if (updateScreen)
    {
         return true;
         updateScreen= false;
    }
    else
         return false;
    return updateScreen;
}

Then when you timer does it's thing set updateScreen to true. That will trigger needsrendering, then you can reset it back to false;

Or as part of NeedRendereing you can test the value of your timer against something rather than wait for the timer event to kick off (if that's what you are doing).
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  More "efficient" redraw? cncb 50 11,569 2012-01-14, 08:56 PM
Last Post: cncb
  Is there a way to force a re-render? InVermont 6 2,306 2010-07-31, 07:06 PM
Last Post: sub
  Force full screen update mvallevand 3 2,130 2010-01-14, 05:11 PM
Last Post: mvallevand
  Force screen saver on? psycik 2 1,486 2008-01-05, 08:08 PM
Last Post: psycik
  Possible to force a refresh? McBainUK 3 1,730 2006-01-22, 09:17 AM
Last Post: McBainUK

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

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

Linear Mode
Threaded Mode