home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
GUIListcontrol: centered icon for single Listitem
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Scrounger" data-source="post: 843745" data-attributes="member: 87610"><p>Thanks for the advice.</p><p>I still tried this but i didn't get it to work. I use the following function to define the listitem and add them to listcontrol.</p><p> </p><p>[CODE] Public Shared Sub AddListControlItem(ByVal WindowId As Integer, ByVal Listcontrol As GUIListControl, ByVal idProgram As Integer, ByVal ChannelName As String, ByVal titelLabel As String, Optional ByVal timeLabel As String = "", Optional ByVal infoLabel As String = "", Optional ByVal ImagePath As String = "")</p><p> </p><p> Dim lItem As New GUIListItem</p><p> </p><p> Dim test As New GUIImage(idProgram)</p><p> test.FileName = ImagePath</p><p> test.Centered = True</p><p> test.KeepAspectRatio = True</p><p> test.Size = New MediaPortal.Drawing.Size(Listcontrol.ImageWidth, Listcontrol.ImageHeight)</p><p> test.SetPosition(Listcontrol.IconOffsetX, Listcontrol.IconOffsetY)</p><p> </p><p> lItem.Label = titelLabel</p><p> lItem.Label2 = timeLabel</p><p> lItem.Label3 = infoLabel</p><p> lItem.ItemId = idProgram</p><p> lItem.Path = ChannelName</p><p> lItem.Icon = test</p><p> </p><p> GUIControl.AddListItemControl(WindowId, Listcontrol.GetID, lItem)</p><p> </p><p> 'MyLog.Debug("[AddListControlItem]: ImagePath: " & ImagePath)</p><p> </p><p> End Sub[/CODE]</p><p> </p><p>Can someone please help me with this problem. Or is a plugin out there, with such a function?</p></blockquote><p></p>
[QUOTE="Scrounger, post: 843745, member: 87610"] Thanks for the advice. I still tried this but i didn't get it to work. I use the following function to define the listitem and add them to listcontrol. [CODE] Public Shared Sub AddListControlItem(ByVal WindowId As Integer, ByVal Listcontrol As GUIListControl, ByVal idProgram As Integer, ByVal ChannelName As String, ByVal titelLabel As String, Optional ByVal timeLabel As String = "", Optional ByVal infoLabel As String = "", Optional ByVal ImagePath As String = "") Dim lItem As New GUIListItem Dim test As New GUIImage(idProgram) test.FileName = ImagePath test.Centered = True test.KeepAspectRatio = True test.Size = New MediaPortal.Drawing.Size(Listcontrol.ImageWidth, Listcontrol.ImageHeight) test.SetPosition(Listcontrol.IconOffsetX, Listcontrol.IconOffsetY) lItem.Label = titelLabel lItem.Label2 = timeLabel lItem.Label3 = infoLabel lItem.ItemId = idProgram lItem.Path = ChannelName lItem.Icon = test GUIControl.AddListItemControl(WindowId, Listcontrol.GetID, lItem) 'MyLog.Debug("[AddListControlItem]: ImagePath: " & ImagePath) End Sub[/CODE] Can someone please help me with this problem. Or is a plugin out there, with such a function? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
GUIListcontrol: centered icon for single Listitem
Contact us
RSS
Top
Bottom