[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4668: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4670: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4671: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4672: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
XWidgetSoft Forum :: View topic - HELP: How to clone a widget in code CLOSED
XWidgetSoft Forum
https://bbs.xwidget.com/

HELP: How to clone a widget in code CLOSED
https://bbs.xwidget.com/viewtopic.php?f=8&t=6227
Page 1 of 1

Author:  yereverluvinuncleber [ March 12th, 2016, 7:16 am ]
Post subject:  HELP: How to clone a widget in code CLOSED

In another engine it is possible to clone/spawn a new instance of a widget in code.

Therefore you can click on a button and create a widget that is a copy of the current widget. This is useful when you want to create something like a drive gauge the first of which is C: and then subsequent instances would monitor D:, E: &c.

I know this is possible from the dashboard but that is a cumbersome method that I want to avoid. Specifically I want to do it in code.

I would like a button that can be clicked to spawn a new instance of the widget. Is this possible? Has anyone down this already?

Author:  Jimking [ March 12th, 2016, 9:00 am ]
Post subject:  Re: HELP: How to clone a widget in code

I don't know if you mean this, but I can tell 2 ways that are too easy..! :)
1) If you want to create a new clone widget (and make some small changes on the second one) go to the XWidget's folder and simply make a copy of the widget's folder. Then rename the folder like "xxx 2" or whatever. Then open the XWidget dock with the installed widgets, right click - Refresh to appear the new widget. Edit the new one and change the name of the widget (same as the folder)

2) XWidget has default tag code for the right click options to duplicate the running widget. (I use it for the hdd widgets or for the aquarium fishes)

XWidget designer has all lot of ready functions through the tags. I don't understand why you don't want to use them...

Author:  yereverluvinuncleber [ March 12th, 2016, 12:37 pm ]
Post subject:  Re: HELP: How to clone a widget in code

No I don't mean that.

I mean I have a running gauge widget. I want to spawn another identical running widget. The same widget running twice, just as in spawning a new process.

I want it done in code, not using the dashboard or the start same widget. I want to be able to call the same function as "start same widget" but on on a button press instead I can create a duplicate widget.

Author:  Jimking [ March 12th, 2016, 2:12 pm ]
Post subject:  Re: HELP: How to clone a widget in code


Author:  yereverluvinuncleber [ March 13th, 2016, 11:21 am ]
Post subject:  Re: HELP: How to clone a widget in code

THAT is what I wanted. Thankyou very much indeed.

If it works it will be invaluable.

Author:  Jimking [ March 13th, 2016, 12:37 pm ]
Post subject:  Re: HELP: How to clone a widget in code


Author:  yereverluvinuncleber [ March 14th, 2016, 9:31 am ]
Post subject:  Re: HELP: How to clone a widget in code

It works perfectly and is exactly what I wanted.

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