NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 30 31 32 33 34 … 93 Next »
Loading Large lists - uiSimpleList, UiList

 
  • 0 Vote(s) - 0 Average
Loading Large lists - uiSimpleList, UiList
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#1
2008-07-14, 08:45 AM
Hi, got a pretty large list that's I want to load in uiList - so I can thumbnail it later on but changing viewmode.

Any tips and tricks for loading such a large list (in the 000's).

I've pushed it to a new thread, and then every ten items update the list:
Code:
listCounter++;
if (listCounter % 10 == 0)
    this.internalUIList.setItemList(itemList);
And while this works pretty well, you can't navigate that list as it keeps moving the selected index after each update.
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#2
2008-07-14, 08:47 AM
And and while I'm asking about lists, how can I stop word wrapping...
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#3
2008-07-14, 09:23 AM
Thirdly, sub, can you check (if you have time) the firing of ExitRight froma UiList. ExitLeft seems to be kicked off, but not the right.
InVermont
Offline

Member

Posts: 157
Threads: 10
Joined: Mar 2007
#4
2008-07-14, 03:07 PM
you could try
idx = uiList.getSelectedItemIndex();
uiList.setItemList(itemList);
uiList.suggestSelectionIndex(idx);

that should keep the index where it is.
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#5
2008-07-14, 08:25 PM
Thanks I did think of that but only this morning. Sometimes its good to have a break to "free the mind".

Now I've got to work out that ExitRight problem...
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,953
Threads: 770
Joined: Nov 2003
#6
2008-07-14, 09:00 PM
I just checked and it looks like it should be calling the ExitRight. This is with a UiSimpleList, not UiList? The latter doesnt call ExitRight.

On the wrapping thing, when you define your CompositeImages you can specify the wrap="false" attribute on any <DrawText> elements.
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#7
2008-07-14, 09:16 PM
cool on the wrapping thing.

Ahh, I'm using two UiSimpleLIsts (Artists listing and Album listing) but using a UiList for the title listing so I can switch to icon view. And so this doesn't trigger a exit right...hmm any reason why it doesn't??

Hopefully I can get around that without breaking too much.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,953
Threads: 770
Joined: Nov 2003
#8
2008-07-14, 09:20 PM
psycik Wrote:And so this doesn't trigger a exit right...hmm any reason why it doesn't??
It just wasnt something I needed when I originally created the UiList, since these were only really intended for use on simple screens with buttons on the left and list on the right. I did have the ExitRight() for the UiSimpleList, since I used three of these on the Search Guide screen and needed to be able to switch between these lists.
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#9
2008-07-14, 09:26 PM
Can it be added for next release possibly?? I just know to get around it I'm going to need a bunch of if (key == right and screen = title) type statements where for everything else I've managed to be really generic and use keymappings.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,953
Threads: 770
Joined: Nov 2003
#10
2008-07-14, 09:31 PM
If you remind me when the release gets a bit closer then I'll try to add it.

I cant modify the existing UiList.CommandCallback interface to add this method, since that'd break every existing plugin, but I can look into adding an optional UiList.CommandCallback2 interface which adds the ExitRight().
« 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
  Loading Local Video Files Syler 25 7,827 2021-03-07, 09:20 PM
Last Post: Syler
  Images in lists using a lot of memory cncb 4 4,308 2015-11-12, 12:02 AM
Last Post: sub
  uiList not redrawing when replacing items cncb 10 6,130 2015-10-02, 07:52 PM
Last Post: mvallevand
  Trouble loading .NET System assemblies bgowland 3 2,621 2013-10-31, 02:37 AM
Last Post: bgowland
  Multiple lists like in Search Screen cncb 7 3,613 2012-08-08, 09:11 PM
Last Post: cncb
  Lists: HORIZONTAL_ICON and VERTICAL_ICON imilne 5 2,770 2011-06-02, 06:55 PM
Last Post: imilne
  Skin question - how to centre a list UiList control on screen? McBainUK 2 2,063 2011-02-17, 08:46 AM
Last Post: McBainUK
  A foreign dll in the plugin folder breaks loading further plugins tmrt 10 5,809 2010-11-30, 04:48 AM
Last Post: sub
  Detecting selection in UiList imilne 0 1,400 2010-11-04, 10:20 PM
Last Post: imilne
  UiList vs UiSimpleList mvallevand 1 1,515 2010-01-02, 04:38 AM
Last Post: sub

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

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

Linear Mode
Threaded Mode