NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 11 12 13 14 15 … 93 Next »
Busy/Wait Indicator?

 
  • 0 Vote(s) - 0 Average
Busy/Wait Indicator?
cncb
Offline

Senior Member

Posts: 729
Threads: 112
Joined: Aug 2011
#1
2011-11-13, 07:03 PM
Is there an easy way to do this? I don't want to throw up a 'message' since it is shown too long and would rather have a more subtle indicator that I could turn on/off easily while my plugin takes a while to do something.
My Plugins: PhotoFilter, MusicMonkey, Windows Desktop Gadget
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,677
Threads: 767
Joined: Nov 2003
#2
2011-11-13, 07:13 PM
There is nothing built in that would do this for you.

The GUI runs on one thread, so if you're doing some lengthy operation on that main thread, the UI is effectively going to be frozen until you tell it what to draw on the screen. For this type of scenario you can look into running that operation on a background thread, and just have the main thread return UI elements that indicate something is loading, or please wait or similar.

Regarding the generic message call, you can get it to disappear by calling the API will a null message.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,879
Threads: 954
Joined: May 2006
#3
2011-11-13, 08:10 PM
In MB4 I do this a few times. When I need to do something lengthy like a music library scan, I create an instance of a SimplePopup and then I keep it open updating the popup's skin as needed. I also use the popup as the window for rendering tracks while they play with a separate skin from the main skin.

Martin
cncb
Offline

Senior Member

Posts: 729
Threads: 112
Joined: Aug 2011
#4
2011-11-13, 08:53 PM
The delay is not that long so I'll probably just hope the user is patient but I'll keep these options in mind. Thanks.
My Plugins: PhotoFilter, MusicMonkey, Windows Desktop Gadget
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,879
Threads: 954
Joined: May 2006
#5
2011-11-13, 09:08 PM
Ok if it is only a short delay you could just clear the message box with PluginHelperFactory.GetPluginHelper().ShowMessage("");

Martin
Jaggy
Offline

Posting Freak

Carterton, NZ
Posts: 3,625
Threads: 148
Joined: Mar 2006
#6
2011-11-13, 10:28 PM
As a user the lack of a Busy/Wait Indicator is a real pain as either a message popup jumps up on screen & more often than not it stays there way toooooooooooo long (like changing the sort order in Recordings) or like a number of plugins in particular (especially when using my snail computer as the server) they don't show any indication at all that anything is happening & you are left wondering is it????.... on the other hand the TVListings plugin (even though I don't like it as a plugin as I feel it doesn't really look or feel like a NextPVR plugin as it is now, it looks & feels like an old plugin ported to work in NextPVR) has a real neat busy/wait indicator.
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#7
2011-11-20, 09:28 PM
mvallevand Wrote:Ok if it is only a short delay you could just clear the message box with PluginHelperFactory.GetPluginHelper().ShowMessage("");

Martin

Just to hijack, do I have to keep setting it for the message to stay up? I'm finding it only stays for for a little while then clears automatically.

Do I have to use a popup for one that the user has to clear?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,677
Threads: 767
Joined: Nov 2003
#8
2011-11-20, 10:22 PM
psycik Wrote:Do I have to use a popup for one that the user has to clear?
Yes. There is a SimpleMessageBox class you can use for this though. Just tell it the message and the names to display on the button(s).
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Using C#: Update EPG and wait for end dero 12 5,454 2008-12-10, 12:37 PM
Last Post: Sheik Yerbouti
  'Please wait...' type popups? bgowland 8 2,994 2007-10-26, 02:14 PM
Last Post: bgowland
  ZProcess/FFmpeg wait time... zehd 2 1,756 2006-11-18, 06:00 PM
Last Post: zehd
  Changing the color of the timeline indicator...tv guide? Mtlca401 0 1,149 2006-01-09, 07:39 PM
Last Post: Mtlca401

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

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

Linear Mode
Threaded Mode