- December 11, 2008
- 222
- 106
- Home Country
- Germany
Hello,
I'm currently developing my first plugin and I'm having some very basic problems with the GUIFacadeControl.
I'm trying to get the current selected Item in a list (like current selected item in a playlist).
Can somebody please help me?
I'm currently developing my first plugin and I'm having some very basic problems with the GUIFacadeControl.
I'm trying to get the current selected Item in a list (like current selected item in a playlist).
Code:
Imports MediaPortal.GUI.Library
Public Class cGUIHandler
Inherits GUIFacadeControl
<SkinControlAttribute(50)> Public facadeView As GUIFacadeControl = Nothing
Sub New()
MyBase.new(50) ' -> how to call ???
End Sub
Public Sub getSelectedItem()
Dim itemIndex As Integer
Dim cView As GUIControl
cView = CurrentView '-> CurrentView is always Nothing
facadeView = New GUIFacadeControl(GetID)
itemIndex = facadeView.SelectedItem '-> returns zero
End Sub
End Class
Can somebody please help me?