Shoutbox

[Help] 3 Question's - 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: [Help] 3 Question's (/showthread.php?tid=61638)

[Help] 3 Question's by icepick66 on 06-26-2006 at 07:45 PM

Ok, my first post lol, here it goes

Basically, i have this window, made from the xml, and i have a text-box, what i want when a button is pressed a text-box contents is sent to the registry, and then can be read later.

Also i want to know how to enable/disable buttons from the script

And how do i add images to the window

Thank-you Very much


RE: [Help] 3 Question's by icepick66 on 06-27-2006 at 01:50 PM

anyone know? :(


RE: [Help] 3 Question's by pollolibredegrasa on 07-07-2006 at 03:38 PM

Sorry to bump this, but has anyone got an answer for question number 2?

IS there a function to enable/disable buttons on a window?

At the moment im using the following code to enable a button:

code:
        var btnReplyWnd;
        btnReplyWnd = wndResp.GetControlHandle("BtnReply");
        Interop.Call("User32","EnableWindow", btnReplyWnd, 1);
(1 is to enable, 0 is to disable)

but I'd like to know if there's an easier way?

Any help appreciated :)
RE: [Help] 3 Question's by matty on 07-07-2006 at 03:49 PM

You can use the

code:
OnWindowIdEvent_CtrlClicked(pPlusWnd, sControlId){
    //pPlusWnd is the Plus! object for the window
    //sControlId is the Id of the control that is clicked

    //To get the text use the following :
    var sText = pPlusWnd.GetControlText('myTextBox');
}

To store it in the registry take a look at this page I made.
http://mattyg.ca/geshi/registry.php