XWidgetSoft Forum
https://www.bbs.xwidget.com/

Attach core and styling via js after clone object
https://www.bbs.xwidget.com/viewtopic.php?f=8&t=2935
Page 1 of 1

Author:  Eliont [ April 12th, 2013, 11:39 pm ]
Post subject:  Attach core and styling via js after clone object

Hello and good time of day.

How to attach core to new object after cloning?
Code:
function text1OnClick(Sender)
{
  var txt = text1.Clone(text1);
  txt.parent = text1;
  txt.Visible =true;
  txt.text = 'text';
  txt.top = 0;
}


And set style (background gradient for example) to it?

Author:  Tony [ April 13th, 2013, 1:17 am ]
Post subject:  Re: Attach core and styling via js after clone object

txt.core = cpucore1;
txt.coreformat = "%percent";

Author:  Eliont [ April 13th, 2013, 2:36 am ]
Post subject:  Re: Attach core and styling via js after clone object

Big thanks.

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/