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