NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 60 61 62 63 64 … 93 Next »
Possible to force a refresh?

 
  • 0 Vote(s) - 0 Average
Possible to force a refresh?
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#1
2006-01-21, 09:20 PM
I'm currently working on the Files plugin and would like to add a "Please wait. 5 of 6 items copied." type message but unsure how to do it.
Code flow is like this:
  1. User chooses copy on a menu
  2. Itterate over items to copy and send copy commands to Windows.
I would like to show the "Please wait" message between steps 1 and 2. Ie
  1. User presses chooses copy on a menu
  2. Set "Please wait" message to visible (then in render() render the message)
  3. Program itterate over items to copy and send copy commands to Windows.
  4. Hide "Please wait" message
The problem is that the message is never shown because the copy commands seem to take over. GBPVR only calls the render() method after the files copy.

Anyone know if it is possible to force a render call? Or maybe an alternative way of doing it? pluginHelper.ShowMessage() would work but I understand it has problems and shouldnt be used.
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,802
Threads: 769
Joined: Nov 2003
#2
2006-01-22, 12:43 AM
You can return true from needsRendering() if you need to rerender. You'd probably need to be doing your file copying on a background thread though.
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#3
2006-01-22, 01:55 AM
yeah i do it how sub suggestions, just return true from needsRendering, and update the message shown in the seperate copy thread.

theres a pluginHelper.ForceRefresh(); method, but thats a messy way to do it.
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#4
2006-01-22, 09:17 AM
sub Wrote:You can return true from needsRendering() if you need to rerender. You'd probably need to be doing your file copying on a background thread though.
Thought this would be the way to do it. Time to read up on threads then...
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Refresh Rate imilne 3 1,906 2011-09-04, 06:08 PM
Last Post: sub
  Is there a way to force a re-render? InVermont 6 2,394 2010-07-31, 07:06 PM
Last Post: sub
  Force full screen update mvallevand 3 2,212 2010-01-14, 05:11 PM
Last Post: mvallevand
  Force screen saver on? psycik 2 1,541 2008-01-05, 08:08 PM
Last Post: psycik
  how to force redraw? Wakalaka 3 1,797 2007-03-27, 09:58 AM
Last Post: psycik
  Theater plugin does not refresh. nv40 1 1,686 2006-06-05, 07:10 AM
Last Post: McBainUK
  Screen Refresh MVP how?? psycik 2 1,726 2006-04-09, 02:35 AM
Last Post: psycik
  config the default screen refresh reven 10 3,847 2005-03-13, 03:09 AM
Last Post: reven
  Recording Service Refresh jsather 6 2,433 2005-03-11, 04:20 AM
Last Post: jrockintuitive

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

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

Linear Mode
Threaded Mode