What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [?] how do i disable a button on interface window?

[?] how do i disable a button on interface window?
Author: Message:
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
29 / Male / Flag
Joined: Nov 2006
Status: Away
O.P. [?] how do i disable a button on interface window?
question above. thx
[quote]
Ultimatess6
: What a noob mod
01-18-2007 10:25 PM
Profile PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [?] how do i disable a button on interface window?
Use the EnableWindow api.
01-18-2007 10:32 PM
Profile E-Mail PM Find Quote Report
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
29 / Male / Flag
Joined: Nov 2006
Status: Away
O.P. RE: [?] how do i disable a button on interface window?
quote:
Originally posted by Matty
Use the EnableWindow api.
i can find that in the scripting doc?
[quote]
Ultimatess6
: What a noob mod
01-18-2007 10:34 PM
Profile PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [?] how do i disable a button on interface window?
http://msdn.microsoft.com/../enablewindow.asp
01-18-2007 10:36 PM
Profile E-Mail PM Find Quote Report
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
29 / Male / Flag
Joined: Nov 2006
Status: Away
O.P. RE: [?] how do i disable a button on interface window?
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;
}
}

This post was edited on 01-18-2007 at 11:09 PM by roflmao456.
[quote]
Ultimatess6
: What a noob mod
01-18-2007 11:09 PM
Profile PM Web Find Quote Report
Dennis Mike
Junior Member
**

Avatar

Posts: 59
Reputation: 2
33 / Male / –
Joined: Jan 2007
RE: [?] how do i disable a button on interface window?
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
01-18-2007 11:38 PM
Profile PM Web 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