What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Question] Enable/disable controls

[Question] Enable/disable controls
Author: Message:
mathieumg
Full Member
***


Posts: 181
Reputation: 2
34 / Male / Flag
Joined: May 2004
RE: RE: [Question] Enable/disable controls
quote:
Originally posted by RaceProUK
Patchou should have included an EnableControl() in the scripting engine: it's a common enough task.


code:
function EnableControl(Control)
{
var ControlHandle = null;
ControlHandle = wndResp.GetControlHandle(Control);
Interop.Call("User32","EnableWindow", ControlHandle, 1);
}

function DisableControl(Control)
{
var ControlHandle = null;
ControlHandle = wndResp.GetControlHandle(Control);
Interop.Call("User32","EnableWindow", ControlHandle, 0);
}


Possibly there is a way to improve it by making ToggleEnableControl()

This post was edited on 07-08-2006 at 05:48 AM by mathieumg.
Official MessengerPlus! Live French Translator
Official StuffPlug 3 French Translator

:)
07-08-2006 05:48 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Question] Enable/disable controls - by OcuS on 07-07-2006 at 09:58 PM
RE: [Question] Enable/disable controls - by pollolibredegrasa on 07-07-2006 at 10:08 PM
RE: [Question] Enable/disable controls - by OcuS on 07-07-2006 at 10:17 PM
RE: [Question] Enable/disable controls - by RaceProUK on 07-07-2006 at 10:20 PM
RE: RE: [Question] Enable/disable controls - by mathieumg on 07-08-2006 at 05:48 AM
RE: [Question] Enable/disable controls - by cooldude_i06 on 07-07-2006 at 10:29 PM
RE: RE: RE: [Question] Enable/disable controls - by CookieRevised on 07-08-2006 at 03:03 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