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

Popup ListBox
Author: Message:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: Popup ListBox
quote:
Originally posted by 7d5
But why have the choices static? isn't it possible to dynamically generate values in the listbox depending on the input in the textbox?
That's already implemented. Instead of passing an array as fourth argument to the constructor, you can pass a function in the following format:
code:
function AutoCompleteCallback(oAutoComplete, sInputText) {
     //oAutoComplete = the instance of the AutoComplete class
     //sInputText = the current text input
}
The function should then return an array of strings to display in the list. If you want to hide the list, simply return an empty array. So yes, you could implement all those fancy AJAX stuff and such. :P
quote:
Originally posted by 7d5
One more thing....can't i have this listbox appear on normal Wnd and not a PlusWnd? something like this

Exmaple
I'm afraid you can't. The Plus! Live scripting API gives us abilities to work with custom Plus! windows, but modifying a chat window isn't possible. It'd require advanced hooking methods such as the ones Plus! Live uses, but I think enabling this for use by scripts would be very complicated and thus it's not available to use by scripts.

I can assure you: if it would have been available to scripts, you'd already have seen a script using it somewhere before! :P
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
11-01-2008 08:00 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Popup ListBox - by 7d5 on 10-30-2008 at 09:02 PM
RE: Popup ListBox - by Matti on 10-31-2008 at 09:17 AM
RE: Popup ListBox - by 7d5 on 10-31-2008 at 10:32 PM
RE: Popup ListBox - by Matti on 11-01-2008 at 08:00 AM
RE: Popup ListBox - by SmokingCookie on 11-01-2008 at 02:16 PM
RE: Popup ListBox - by 7d5 on 11-07-2008 at 10:45 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