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

General Help with Interfaces
Author: Message:
Toneo
Junior Member
**

Avatar
Epic.

Posts: 35
Reputation: 2
28 / Male / Flag
Joined: Jul 2007
Wink  RE: General Help with Interfaces
Hmm.

First, to create your window:
var Wnd = MsgPlus.CreateWnd('XMLFile.xml','WindowIdentifier');
This creates your window, and it can be accessed through Wnd, as declared.

I also recommend you have your window initialization code in a seperate function for flexibility.

And to add items to a ListView, use this.

Wnd.LstView_AddItem("ListView","MainText",Data[Number],Position[Number]);
Note: Parameters Data and Position are optional!

Okay, so say you wanted to add three items, you could do this in two ways.

Way one:

var Wnd = MsgPlus.CreateWnd('XMLFile.xml','WindowIdentifier'); //Initialize Window!
Wnd.LstView_AddItem("ListView","Item 1",0); //Add Item 1
Wnd.LstView_AddItem("ListView","Item 2",1); //Add Item 2
Wnd.LstView_AddItem("ListView","Item 3",2); //Add Item 3

// And repeat for each item. 0, 1, 2 .etc are the data for each element

Way two:

var Wnd = MsgPlus.CreateWnd('XMLFile.xml','WindowIdentifier'); //Initialize Window!
var items = new Array('ItemOne','ItemTwo','ItemThree','ItemFour','ItemFive');

for (i=0; i<=items.length; i++)
{
Wnd.LstView_AddItem("ListView",items[i],2); //Add Item based on array
}

Hopefully that helped! If you have any other problems ask me.
Although I don't think I answered your question correctly, did I?

.plsc File Attachment: ListViewTest.plsc (1.39 KB)
This file has been downloaded 278 time(s).

This post was edited on 11-30-2007 at 07:32 PM by Toneo.
[Image: signature-user=291&back=4&clr=12,102,237&size=80.png]
11-30-2007 07:30 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
General Help with Interfaces - by Crazed on 11-30-2007 at 06:27 AM
RE: General Help with Interfaces - by Toneo on 11-30-2007 at 07:30 PM
RE: General Help with Interfaces - by Crazed on 11-30-2007 at 07:50 PM
RE: General Help with Interfaces - by Toneo on 11-30-2007 at 07:54 PM
RE: General Help with Interfaces - by Crazed on 11-30-2007 at 08:23 PM
RE: General Help with Interfaces - by Toneo on 11-30-2007 at 08:41 PM
RE: General Help with Interfaces - by Crazed on 12-01-2007 at 01:58 AM
RE: General Help with Interfaces - by Toneo on 12-01-2007 at 07:46 AM
RE: General Help with Interfaces - by Matti on 12-01-2007 at 09:09 AM
RE: General Help with Interfaces - by Toneo on 12-01-2007 at 09:40 AM
RE: General Help with Interfaces - by CookieRevised on 12-01-2007 at 02:11 PM
RE: General Help with Interfaces - by vikke on 12-01-2007 at 02:38 PM
RE: General Help with Interfaces - by Crazed on 12-01-2007 at 06:11 PM
RE: General Help with Interfaces - by Toneo on 12-03-2007 at 04:17 PM


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