NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 3 4 5 6 7 … 93 Next »
uiList not redrawing when replacing items

 
  • 0 Vote(s) - 0 Average
uiList not redrawing when replacing items
cncb
Offline

Senior Member

Posts: 729
Threads: 112
Joined: Aug 2011
#1
2015-10-01, 04:42 PM
When a video is finished playing, I am completely replacing the items in my uiList (NewStyleButtonListPlugin) with a call to SetListObjects(). However, for some reason the list is not redrawn until I change the current selected item with the arrow keys. Is there a way to force the list to redraw? I have tried to explicitly return true in NeedsRendering() rather than relying on the base class but it still does not redraw.
My Plugins: PhotoFilter, MusicMonkey, Windows Desktop Gadget
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#2
2015-10-01, 04:47 PM
cncb Wrote:I have tried to explicitly return true in NeedsRendering() rather than relying on the base class but it still does not redraw.
That should be forcing it to happen. Do you see GetRenderList() called in response to your NeedsRendering()?

For that test, you may need to make sure your NeedsRendering() call also calls uiList.NeedsRendering(), rather than a hard coded "return true", because some controls do internal redrawing in NeedsRendering().
cncb
Offline

Senior Member

Posts: 729
Threads: 112
Joined: Aug 2011
#3
2015-10-01, 05:04 PM
It turns out NeedsRendering() is not even called when it "returns" from playing a video until a press the arrow keys?
My Plugins: PhotoFilter, MusicMonkey, Windows Desktop Gadget
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#4
2015-10-01, 05:13 PM
I can check. Was this just on a regular PC install? Not webclient?
cncb
Offline

Senior Member

Posts: 729
Threads: 112
Joined: Aug 2011
#5
2015-10-01, 05:23 PM
Yes, regular PC.
My Plugins: PhotoFilter, MusicMonkey, Windows Desktop Gadget
cncb
Offline

Senior Member

Posts: 729
Threads: 112
Joined: Aug 2011
#6
2015-10-01, 08:10 PM
I just found the IPluginHelper.ForceRender() which seems to do the trick. Thanks.
My Plugins: PhotoFilter, MusicMonkey, Windows Desktop Gadget
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,186
Threads: 958
Joined: May 2006
#7
2015-10-01, 08:20 PM
cncb Wrote:I just found the IPluginHelper.ForceRender() which seems to do the trick. Thanks.

That is the API call I asked sub to add URL trigger for in webclient, it could even be an unused keystroke. I'd then call that from after video stop.

Martin
cncb
Offline

Senior Member

Posts: 729
Threads: 112
Joined: Aug 2011
#8
2015-10-01, 11:04 PM
mvallevand Wrote:That is the API call I asked sub to add URL trigger for in webclient, it could even be an unused keystroke. I'd then call that from after video stop.

That would be great. Thanks.
My Plugins: PhotoFilter, MusicMonkey, Windows Desktop Gadget
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,186
Threads: 958
Joined: May 2006
#9
2015-10-01, 11:07 PM
It would help a lot of users, I've had other requests for the watched indicator to come up in recordings after playback and this should trigger that too.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#10
2015-10-02, 06:22 PM
mvallevand Wrote:That is the API call I asked sub to add URL trigger for in webclient, it could even be an unused keystroke. I'd then call that from after video stop.

Martin
Ok, I'll add a API for this. Remind me when we start pre-release testing in a few days.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Skin question - how to centre a list UiList control on screen? McBainUK 2 1,934 2011-02-17, 08:46 AM
Last Post: McBainUK
  Detecting selection in UiList imilne 0 1,344 2010-11-04, 10:20 PM
Last Post: imilne
  UiList vs UiSimpleList mvallevand 1 1,420 2010-01-02, 04:38 AM
Last Post: sub
  UiList.ViewMode.MODE_COVERS mvallevand 3 1,941 2009-11-29, 07:55 PM
Last Post: psycik
  a uiList question idkpmiller 3 1,829 2009-01-03, 10:40 AM
Last Post: idkpmiller
  Loading Large lists - uiSimpleList, UiList psycik 10 3,604 2008-07-14, 10:08 PM
Last Post: psycik

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

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

Linear Mode
Threaded Mode