NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 15 16 17 18 19 … 93 Next »
Bending ListView to my will (a variation on a theme)

 
  • 0 Vote(s) - 0 Average
Bending ListView to my will (a variation on a theme)
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,661
Threads: 767
Joined: Nov 2003
#11
2011-04-12, 03:19 AM
mvallevand Wrote:So if I understand this SetVisibleIndex is the first item showing and SetSelectionIndex is the menu selection. To override defaults I expect will be very important to read the number of rows from the skin in case a skin changes things and also plan for changes from icon/list/wall modes.
Yes, you'd probably need to be care. If you're not you could end up with the selected item noting being visible, though it'll probably correct itself when you press up/down/left/right to move to a different element.
Ommina
Offline

Senior Member

Posts: 330
Threads: 39
Joined: Feb 2006
#12
2011-05-07, 10:47 PM
OK - is there anything else that would constrain the value of SetVisibleIndex() ? Regardless of what I send it, it seems to be pretty much ignored. I've trimmed it down to

someValue = GetVisibleIndex();
SetVisibleIndex( someOtherValue );
someThirdValue = GetVisibleIndex();

The value of GetVisibleIndex() isn't changing after the call to Set.

Using the LIST viewmode. (At this point I'm not using the other views at all, not sure if I will.)

Any ideas ?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,661
Threads: 767
Joined: Nov 2003
#13
2011-05-08, 03:24 AM
When you set the VisibleIndex, would the SelectedIndex also have been visible? If not, then it probably would have ignored your requested VisibleIndex to ensure the selected item was visible.
Ommina
Offline

Senior Member

Posts: 330
Threads: 39
Joined: Feb 2006
#14
2011-05-08, 03:29 AM
sub Wrote:When you set the VisibleIndex, would the SelectedIndex also have been visible? If not, then it probably would have ignored your requested VisibleIndex to ensure the selected item was visible.

Yep, absolutely. It would move the selected index within the visible subsection down a bit, but it would remain within the 14 visible.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,661
Threads: 767
Joined: Nov 2003
#15
2011-05-08, 04:09 AM
See if this patch helps.
Ommina
Offline

Senior Member

Posts: 330
Threads: 39
Joined: Feb 2006
#16
2011-05-08, 04:13 AM
Gah, didn't you just get home? It could have waited a bit, really!

But yes, that fixed it up. Thanks for checking into it.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,839
Threads: 954
Joined: May 2006
#17
2011-05-08, 04:24 AM
Welcome back sub, that worked for a problem I was having too.

Thanks.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,661
Threads: 767
Joined: Nov 2003
#18
2011-05-08, 04:41 AM
Ommina Wrote:Gah, didn't you just get home?
Yep. Havnt slept yet. Currently suffering through jet lag - the room is kind of spinning, and I've got a major headache.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,839
Threads: 954
Joined: May 2006
#19
2011-05-20, 05:24 AM
I have been playing a bit and if I am in Icon mode, and have a visible index where
(index % rows) != 0 , the first column will be screwed and navigation will be off.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,661
Threads: 767
Joined: Nov 2003
#20
2011-05-20, 05:53 AM
mvallevand Wrote:I have been playing a bit and if I am in Icon mode, and have a visible index where
(index % rows) != 0 , the first column will be screwed and navigation will be off.
Ok, I've made a change that should fix this in the next release. Basically it'll adjust the visible row index being set to ensure it's aligned correctly.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): « Previous 1 2


Possibly Related Threads…
Thread Author Replies Views Last Post
  That listview Fade Effect Ommina 0 1,309 2011-04-26, 11:42 PM
Last Post: Ommina
  Bending ButtonStrip to my will - Setting button attributes at runtime Ommina 7 3,215 2011-04-10, 04:43 PM
Last Post: sub
  Cape-City's myHTPC Theme / Skin for GB-PVR Cape-City 5 2,217 2005-09-28, 08:14 PM
Last Post: nitrogen_widget
  Scan Theme fini 15 5,424 2004-12-01, 08:24 AM
Last Post: blader_se
  new theme fini 42 12,730 2004-11-25, 01:14 AM
Last Post: fini
  Here A pic Of Spiderman Skin theme.. darrin75 1 1,815 2004-11-22, 07:06 AM
Last Post: darrin75

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

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

Linear Mode
Threaded Mode