NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 26 27 28 29 30 … 93 Next »
a uiList question

 
  • 0 Vote(s) - 0 Average
a uiList question
idkpmiller
Offline

Posting Freak

Posts: 817
Threads: 141
Joined: May 2006
#1
2009-01-03, 04:14 AM
toying with the viewmodes offered by uiList for me to be able to make good use of them I need to be able to return the name of the selected item, I am sure this is easy but it seems to escape me at the moment.

Any clues appreciated

Thanks
Let the Games begin...Round 2!
GameZone v2.9.6 - PVRx2 1.4.7 compatible!

[Image: 1299379.png]
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,716
Threads: 767
Joined: Nov 2003
#2
2009-01-03, 04:21 AM
There is no name as such. You can call uiList.GetSelectedItem(), which returns an object of type UiList.Item or UiList.Container. Once you cast to one of these, you can get the hashtable of args or parameters that were used to create that item. You can then get whatever parameter you're interested in (@name).
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#3
2009-01-03, 04:58 AM (This post was last modified: 2009-01-03, 10:07 PM by bgowland.)
Example from the dvbt radio plugin...
Code:
object o = uiList.getSelectedItem();
if (o is UiList.Item)
{
    string ChannelName;
    Bitmap ChannelLogo;

    ChannelName = (o as UiList.Item).properties["@channelName"].ToString();
    ChannelLogo = (Bitmap)(o as UiList.Item).properties["@channelLogo"];
    ...
}

Cheers,
Brian
idkpmiller
Offline

Posting Freak

Posts: 817
Threads: 141
Joined: May 2006
#4
2009-01-03, 10:40 AM
yep twas a mind melt.... DUH!

Thanks
Let the Games begin...Round 2!
GameZone v2.9.6 - PVRx2 1.4.7 compatible!

[Image: 1299379.png]
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Web API only_new Question Gazavant 6 2,687 2021-04-04, 06:54 PM
Last Post: sub
  Another Artwork question scJohn 15 8,173 2019-09-10, 05:33 PM
Last Post: nonob
  WEB API GuidService/Listing question(s) scJohn 6 4,296 2017-08-09, 02:18 PM
Last Post: scJohn
  skin question pBS 2 3,347 2016-06-18, 07:03 PM
Last Post: pBS
  uiList not redrawing when replacing items cncb 10 5,695 2015-10-02, 07:52 PM
Last Post: mvallevand
  Another SQL question bgowland 15 7,250 2014-05-21, 08:09 AM
Last Post: bgowland
  Timing.Info question mvallevand 2 2,074 2013-04-19, 03:54 AM
Last Post: mvallevand
  N-PVR db3 EPG_EVENT time format question bgowland 3 2,100 2011-03-12, 05:26 AM
Last Post: bgowland
  Ping UncleJohnsBand (question about npvr soap) ioan 2 2,051 2011-02-18, 01:12 AM
Last Post: UncleJohnsBand
  Skin question - how to centre a list UiList control on screen? McBainUK 2 1,848 2011-02-17, 08:46 AM
Last Post: McBainUK

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

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

Linear Mode
Threaded Mode