Reply to thread

Ok I've played around with this some more and I've managed to populate the subitems. But they don't display at all for some reason. 


Can someone please help me figure out what I'm missing?


Here's the code I'm working with:


[code]        Dim Men As MediaPortal.GUI.Library.GUIButtonControl

        Dim Itm As MediaPortal.GUI.Library.GUIListItem

        Dim x As Integer


        Men = GetControl(24)

        Men.Visible = True

        MediaPortal.GUI.Library.GUIButtonControl.ClearControl(GetID, Men.GetID)


        For x = 0 To 10


            Itm = New MediaPortal.GUI.Library.GUIListItem("test" & x)

            Men.AddSubItem(Itm)


        Next

        Itm = Men.GetSubItem(0)

        MsgBox(Itm.Label)


        Itm = Nothing

        Men = Nothing[/code]


I've also tried using the Add method, but they are not selectable and appear to have to be manually positioned which I'd rather not do. It makes more sense to me for the positioning to be handled by the screen file.


Top Bottom