NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 36 37 38 39 40 … 93 Next »
Any chance to add a second list to BaseButtonListUiTask ?

 
  • 0 Vote(s) - 0 Average
Any chance to add a second list to BaseButtonListUiTask ?
lupus11
Offline

Junior Member

Posts: 30
Threads: 3
Joined: Dec 2005
#1
2007-12-27, 06:45 PM
As I can see from the class definition, there is only one list in BaseButtonListUiTask. Is there any chance to handle a second list, using this class ? What would be a good starting sample to handle two lists (left and right) ?

Thank You
lupus
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#2
2007-12-27, 06:54 PM
Sorry, I dont have any sample for you that does anything like that.

You might be better off using the BaseButtonUiTask base class instead, and using two UiSimpleList objects. You can see UiSimpleList class in use in the weather sample's AddCity popup.
lupus11
Offline

Junior Member

Posts: 30
Threads: 3
Joined: Dec 2005
#3
2007-12-27, 07:36 PM
Wow, that was quick. Thank You Sub. I will give it a try.

lupus
lupus11
Offline

Junior Member

Posts: 30
Threads: 3
Joined: Dec 2005
#4
2007-12-28, 01:23 PM
I successfully managed to implement two UiSimpleLists. Now a new question came up: The one that has the focus should be active, the other one should be inactive.
I can handle this using the Activate/Deactivate functions the list. However in the "not active" state the GetRenderList function returns an empty render list. If I just set the active flag to false in the debugger (without calling Deactivate) everything works fine and the list is painted deactivated. What am I doing wrong ?

Thank you and sorry about the beginner's question, I have been doing MFC for years but .NET is quite new to me

lupus
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#5
2007-12-28, 03:25 PM
Just calling Activate/Deactivate should do the job.

If you want, you can email the project to me to look at for you. If you do want to do this, let me know and I'll PM you my email address.
lupus11
Offline

Junior Member

Posts: 30
Threads: 3
Joined: Dec 2005
#6
2007-12-28, 05:16 PM
It would be very kind of you to have a look at code. What I am trying to do, is to port my personal version of MusicAlbums to the new interface. I had spent quite some time to add database and exteded playlist support to the "classic" version and now found out, that the UI just does not look good in 720x480 on my HD television.

Thank You
lupus
lupus11
Offline

Junior Member

Posts: 30
Threads: 3
Joined: Dec 2005
#7
2008-01-02, 02:24 PM
Hello Sub,

attached is a slighly modified version of the "Hello World" sample, that describes my problem. It contains two list boxes. I want to switch the focus by CursorLeft and CursorRight and want the list boxes to show up activated or deactivated. However if I enable the Activate/Deactivate functions in the keyboard I handler I start getting errors at rendering time. It is most probably just a simple bug, but I do not get behind it. The lines are marked with "PROBLEM" in the code

Thanks a lot for your help
lupus
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#8
2008-01-02, 04:19 PM
Your problem was occuring because you didnt have one of the UISimpleList composite images defined in your skin.xml. Add something like this:

Code:
    <CompositeImage name="RightListListSelectedInactive" size="65.0,5.0">
                <DrawCommonImage name="ListSelectedInactiveItemBackground"/>
            <DrawText text="@name" loc="7,12" size="100,100" textStyle="GeneralTextStyle" align="Left"/>
            </CompositeImage>
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#9
2008-01-02, 04:19 PM
Your problem was occuring because you didnt have one of the UISimpleList composite images defined in your skin.xml. Add something like this:

Code:
    <CompositeImage name="RightListListSelectedInactive" size="65.0,5.0">
                <DrawCommonImage name="ListSelectedInactiveItemBackground"/>
            <DrawText text="@name" loc="7,12" size="100,100" textStyle="GeneralTextStyle" align="Left"/>
            </CompositeImage>
lupus11
Offline

Junior Member

Posts: 30
Threads: 3
Joined: Dec 2005
#10
2008-01-02, 09:07 PM
Thanks a lot ! What a quick support again !

lupus11
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Channels List by Channel Group Name scJohn 1 2,815 2018-01-05, 10:45 PM
Last Post: mvallevand
  Channel List (native controller) psycik 2 3,154 2017-06-19, 09:14 AM
Last Post: psycik
  List of "IEventNotification" events? reven 8 3,530 2012-11-01, 10:56 PM
Last Post: reven
  Building a list of files in media folders (npvr Music and Videos) bgowland 2 1,930 2012-02-05, 10:29 AM
Last Post: bgowland
  Update NewSyleListPlugin Button list dynamically? psycik 2 1,813 2011-12-22, 12:25 AM
Last Post: mvallevand
  Single row horizontal list in popup? cncb 4 2,255 2011-09-28, 09:48 PM
Last Post: cncb
  A list of changing images McBainUK 1 1,890 2011-06-21, 04:36 PM
Last Post: sub
  Multiple views for a single list imilne 18 5,732 2011-04-22, 11:06 PM
Last Post: sub
  Skin question - how to centre a list UiList control on screen? McBainUK 2 1,903 2011-02-17, 08:46 AM
Last Post: McBainUK
  List of Skin Elements ACTCMS 7 3,258 2010-12-22, 12:06 AM
Last Post: ACTCMS

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

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

Linear Mode
Threaded Mode