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:
Noixe
Junior Member
**


Posts: 25
– / Male / Flag
Joined: Jul 2008
O.P. Enable property
Hello

Is there a property to disable a combobox?

I would a fuction as:

Wnd.Combo_Enable("MyComboBox", false);


Bye
08-07-2008 12:23 PM
Profile E-Mail PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: Enable property
It requires calling the EnableWindow API via Inteorp.Call and cannot be done by Plus! (currently a limitation)

code:
Interop.Call("user32", "EnableWindow", PlusWnd.GetControlHandle("YourControl"), false);
<Eljay> "Problems encountered: shit blew up" :zippy:
08-07-2008 01:12 PM
Profile PM Find Quote Report
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
Noixe
Junior Member
**


Posts: 25
– / Male / Flag
Joined: Jul 2008
O.P. RE: Enable property
Thanks!
08-07-2008 01:53 PM
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