What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » ListViewControl

ListViewControl
Author: Message:
TheMaskedFace
New Member
*


Posts: 2
Joined: Jul 2006
O.P. ListViewControl
I have a listviewcontrol in my XML file for PLUS LIVE script.Like that;
<Control xsi:type="ListViewControl" Id="LstContacts">
and also I have some columns.
In my js file I want to fill this listview with some datas. I can just fill the first column but not second or other ones...
I use this functions for that;
plusWnd.LstView_AddItem("LstContacts",contact.Name,c);

How can I obtain ListView like a table which is filled within all columns?
07-03-2006 11:59 PM
Profile E-Mail PM Find Quote Report
-dt-
Scripting Contest Winner
*****

Avatar
;o

Posts: 1819
Reputation: 74
35 / Male / Flag
Joined: Mar 2004
RE: ListViewControl

heres the function i use in Rssreader to do it
code:
/*
* ---------------------------
* Void ListViewAddRow (PlusWindow wnd , String id, Array row )
* adds a row to a listView
* ----------------------------
*/
function ListViewAddRow(window,id,row){
    var pos = window.LstView_AddItem(id,row[0]);
    for(var i=1;i<row.length;i++){
        window.LstView_SetItemText(id,pos,i,row[i]);
    }
}



use it like

code:
ListViewAddRow(PlusWnd, "xxx", Array('first column','second column','third column'));


This post was edited on 07-04-2006 at 10:32 AM by -dt-.
[Image: dt2.0v2.png]      Happy Birthday, WDZ
07-04-2006 03:16 AM
Profile PM Web Find Quote Report
TheMaskedFace
New Member
*


Posts: 2
Joined: Jul 2006
O.P. RE: ListViewControl
Thanks a lot...this is awesome
07-04-2006 10:21 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On