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

Disabling a button?
Author: Message:
ryxdp
Senior Member
****


Posts: 804
Reputation: 16
29 / Male / Flag
Joined: Jun 2006
O.P. Disabling a button?
Well, I've looked around in the docs and it seems there is no property to enable/disable a button in a PlusWnd, but I thought it must be possible using SendControlMessage() or even Interop.Call(). I tried the former, using the message 0xA (WM_ENABLE) but it's apparently only for windows. So is there a way to disable and enable buttons in the interfaces?

Thanks :)
04-12-2009 06:53 AM
Profile PM Find Quote Report
davidpolitis
Full Member
***


Posts: 371
Reputation: 16
Joined: Aug 2006
RE: Disabling a button?
quote:
Originally posted by ryxdp
So is there a way to disable and enable buttons in the interfaces?
javascript code:
var ControlHandle = PlusWnd.GetControlHandle("TestBttn");
Interop.Call("User32", "EnableWindow", ControlHandle, 0 /* Change to 1 to enable */);

This post was edited on 04-12-2009 at 10:49 AM by davidpolitis.
04-12-2009 10:34 AM
Profile PM Find Quote Report
ryxdp
Senior Member
****


Posts: 804
Reputation: 16
29 / Male / Flag
Joined: Jun 2006
O.P. RE: Disabling a button?
Thanks :P I had no idea those kinds of functions worked on controls as well.
04-12-2009 10:47 AM
Profile PM Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: Disabling a button?
quote:
Originally posted by ryxdp
Thanks :P I had no idea those kinds of functions worked on controls as well.
Actually, what we call a control is nothing more than a child window in a parent window with some very special capabilities. :) This means you can also send window messages to a control and (if Plus! would support this) monitor control notifications.
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
04-12-2009 01:44 PM
Profile E-Mail 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