-
How to replace string to source text in script??
Hi, i actually have this script but i dont know how to change what i put inside my string and change my source text
Here is my code, and when i press the button change the text.
//AQUÍ EMPIEZA A CREARSE LA VENTANA DEL PANEL{
function myScript(thisObj){
function myScript_buildUI(thisObj){
var myPanel = (thisObj instanceof Panel) ? thisObj : new Window("palette","Panel Estudio Voraz",undefined,{resizable:true});res = "group{orientation:'column',\
groupOne: Panel{text:'Master', orientation:'column',alignment:['fill','fill'],alignChildren:['fill','fill'],\
txtWrite: EditText{text:''},\
txtBtn: Button{text:'Press'},\
},\
}";myPanel.grp = myPanel.add(res);
var Btn = myPanel.grp.groupOne.txtBtn
var a = "hola"
var bstr = myPanel.grp.groupOne.txtWrite.text
Btn.onClick = function()
{}
//END PANEL --------------------------- NO PONER NADA ABAJO DE ESTA LÍNEA -------------------------------
return myPanel;}
var myScriptPal = myScript_buildUI(thisObj);
if((myScriptPal != null) && (myScriptPal instanceof Window)){
myScriptPal.center();
myScriptPal.show();
}}
myScript(this);
}
Sorry, there were no replies found.