Shoutbox

[?] how do i disable a button on interface window? - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [?] how do i disable a button on interface window? (/showthread.php?tid=70823)

[?] how do i disable a button on interface window? by roflmao456 on 01-18-2007 at 10:25 PM

question above. thx


RE: [?] how do i disable a button on interface window? by matty on 01-18-2007 at 10:32 PM

Use the EnableWindow api.


RE: [?] how do i disable a button on interface window? by roflmao456 on 01-18-2007 at 10:34 PM

quote:
Originally posted by Matty
Use the EnableWindow api.
i can find that in the scripting doc?
RE: [?] how do i disable a button on interface window? by matty on 01-18-2007 at 10:36 PM

http://msdn.microsoft.com/../enablewindow.asp


RE: [?] how do i disable a button on interface window? by roflmao456 on 01-18-2007 at 11:09 PM

code:
Error: Object doesn't support this property or method.
       Line: 32. Code: -2146827850.
lol.. is my code right?

code:
var MP = MsgPlus.CreateWnd("windows.xml","mywnd");
* menu here*

function OnEvent_MenuClicked(id){
switch (id){
case 'p':
MP.EnableWindow("button",false);
break;
}
}

RE: [?] how do i disable a button on interface window? by Dennis Mike on 01-18-2007 at 11:38 PM

Interop.Call("user32","EnableWindow", PlusWnd.GetControlHandle("ControlId"), 0) use the windows32 API for disable control in the interface. 0 for disable  and 1 for eneable