MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Community Skins and Plugins » Plugins


Plugins Plugins developed and maintained by users. Want to create your own plugin? Start a thread in here.

Reply
 
Thread Tools Display Modes
Old 2006-05-06, 02:35   #1 (permalink)
Retired Team Member
 
Join Date: Jul 2005
Posts: 314
Thanks: 0
Thanked 8 Times in 4 Posts


Default how to fill a listview with data?

hi,
i want to start my own plugin.
for that i need to read all the files inside of a directory and add them to a listview.
but since i cant find any documentetion, i have no clue on how to do this.

can anyone please tell me hwo to do it?
wertzui is offline   Reply With Quote
Old 2006-05-06, 18:27   #2 (permalink)
Portal Member
 
Join Date: Apr 2006
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts


Default

in your skin add a listview

in your dev add in declaration :
[SkinControlAttribute(ID_OF_YOUR_LISTVIEW)] protected GUIListControl mylistview=null;



and then you can use object mylistview


mylistview.Clear();


etc...
pitie is offline   Reply With Quote
Old 2006-05-06, 19:07   #3 (permalink)
Retired Team Member
 
Join Date: Jul 2005
Posts: 314
Thanks: 0
Thanked 8 Times in 4 Posts


Default

but in wich function do i have to put the code, so it will automatically get executed when the plugin is displayed?
wertzui is offline   Reply With Quote
Old 2006-05-08, 01:17   #4 (permalink)
Retired Team Member
 
Join Date: Jun 2005
Posts: 250
Thanks: 0
Thanked 0 Times in 0 Posts


Send a message via Yahoo to egonspengleruk
Default

Quote:
Originally Posted by wertzui
but in wich function do i have to put the code, so it will automatically get executed when the plugin is displayed?
In the OnPageLoad() fn
egonspengleruk is offline   Reply With Quote
Reply

Bookmarks

Tags
data, fill, listview

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
(original thread) MP-TVSeries Inker My TVSeries 666 2007-02-21 22:15
DVB-T EPG missing data for some channels MikeB Electronic Program Guide 0 2007-01-10 10:25
[Plug-in] XMLTV Import duplicates program data joboehl pre 1.0 RC1 2 2006-11-04 20:39
TV Data - No Data Available Technifide Installation, configuration support 6 2006-09-27 22:34
Are you getting epg data for BBC channels? sciutand WebEPG 5 2005-06-27 16:12


All times are GMT +1. The time now is 08:32.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden