Shoutbox

RadioControl - 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: RadioControl (/showthread.php?tid=81225)

RadioControl by sliverman on 01-26-2008 at 12:25 PM

I would like making walk puts RadioControl and that the synthaxe changes of [c]  towards [a] but I do not know how to make, here is my code :

code:
function OnPanelColorPseudoEvent_CtrlClicked(Wnd, ControlId)
{
    Radio(ControlId);
}

function Radio(ControlId){
    if(ControlId=="WndPseudo.RadCouleurTexte"){
        if(ControlId.substr(0,19)=="PanelColor.BtnColor"){
        WndPseudo.EditBox_ReplaceSel("txtPseudo","[c="+ControlId.substr(ControlId.length-2,ControlId.length)+"][/c]");
        }
    }
    else if(ControlId=="WndPseudo.RadCouleurFond"){
        if(ControlId.substr(0,19)=="PanelColor.BtnColor"){
        WndPseudo.EditBox_ReplaceSel("txtPseudo","[a="+ControlId.substr(ControlId.length-2,ControlId.length)+"][/a]");
        }
    }
}


I have create a new function because window puts are various windows children and otherwise I do not know how to make

Can you help me please ?

Sorry for my English