GUIListControl: How can I access/get the Items? (1 Viewer)

Nova

Portal Pro
November 8, 2005
77
0
Hi Guys, :)

Does anybody know, how I can get the added Items of a GUIListControl (as strings or as GUIListItems)?

Thanks for your help! :)

Your Nova
 

Bavarian

Retired Team Member
  • Premium Supporter
  • April 4, 2005
    698
    167
    Germany, Bayern
    Home Country
    Germany Germany
    Hi nova,

    you can get it by GUIListItem, like

    for (int i = 0; i < listView.Count; i++) GUIListItem aItem = listView;


    By the way, do you know javascript in C#?

    Bavarian :D
     

    Nova

    Portal Pro
    November 8, 2005
    77
    0
    Wow, really so easy. :)
    I tried it with GetControlById(int id) ..... etc. :)

    Thanks for your help Bavarian!

    No, I don't know JavaScript in C#, but maybe I can help you... (see you at ICQ).

    Your Nova
     

    Users who are viewing this thread

    Similar threads

    Sums up the problem I am having. Sorry if I wasn't clear. No, #selectedthumb is not preserved on going to the next window. That's exactly what I am trying to solve. An example is moving from mytvrecordedtv.xml to mytvRecordedInfo. The variable changes from a screen grab thumbnail from the video file to a channel logo during...
    Sums up the problem I am having. Sorry if I wasn't clear. No, #selectedthumb is not preserved on going to the next window. That's...
    Good evening, I have a basic understanding of using skin.setstring and am able to set a skin property when a control gets focus...
    Replies
    2
    Views
    832
    Thanks for the information. I completely new to this topic but your reply is exactly what I needed. Appreciate it!
    Thanks for the information. I completely new to this topic but your reply is exactly what I needed. Appreciate it!
    After initially having some success with MP2 (ver. 2.4.1).....I've been trying to get TVMosaic to work. Now, I seem to have...
    Replies
    2
    Views
    1K
    So far I needed to limit the media items to respect the token limit of ChatGPT. Now the complete media items can be used, because the movie list is splitted into chunks of a specified size and responses for each chunk are concentrated into the result list :) private async Task<string> GenerateResponseWithGPT(string searchQuery...
    So far I needed to limit the media items to respect the token limit of ChatGPT. Now the complete media items can be used, because...
    Hi, I'm planning to write a plugin for MediaPortal 2, that supports users to find the right media items with help of AI...
    Replies
    6
    Views
    926
    I tried setting the windows screensaver to power off the display on my MP1 HTPC but in fact it only blanks the screen ("no video signal") on the TV I suspect the AVR has something to do with that. If I manually put the TV only into standby when TV is playing but paused then on wakeup I could not immediately take it out of pause and...
    I tried setting the windows screensaver to power off the display on my MP1 HTPC but in fact it only blanks the screen ("no video...
    Hi all, I´m using MP 1.30 at the moment and have a problem which also exists on my system on previous versions. So I don´t think...
    Replies
    3
    Views
    842
    Hi, yes, you are right. The official x64 1.32 is buggy. You can try a new installers from this post if you like.
    Hi, yes, you are right. The official x64 1.32 is buggy. You can try a new installers from this post if you like.
    hi, I'm setting up a new computer and have installed MP 1.3.2 after a few goes and getting all the prereqs installed, I was...
    Replies
    3
    Views
    721
    Top Bottom