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

Enable property
Author: Message:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: Enable property
There isn't such a function in the native Plus! Live scripting API which can do this, but you can do this very easily with the Windows API.
code:
Interop.Call("user32", "EnableWindow", Wnd.GetControlHandle("MyComboBox"), false);
where:
  • Wnd is your PlusWnd object.
  • "MyComboBox" is the ID of the control to enable/disable.
  • false can be true or false, whether you want to enable or disable the control.
You can use this on anything which has a valid handle: all kinds of controls (with Wnd.GetControlHandle(...) ) and windows (with Wnd.Handle).
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

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

Messages In This Thread
Enable property - by Noixe on 08-07-2008 at 12:23 PM
RE: Enable property - by Spunky on 08-07-2008 at 01:12 PM
RE: Enable property - by Matti on 08-07-2008 at 01:13 PM
RE: Enable property - by Noixe on 08-07-2008 at 01:53 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