[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/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 - Move text with top of progress bar (%NetInSpeedK)
XWidgetSoft Forum
https://bbs.xwidget.com/

Move text with top of progress bar (%NetInSpeedK)
https://bbs.xwidget.com/viewtopic.php?f=8&t=5327
Page 1 of 1

Author:  anonymouswidget [ December 3rd, 2014, 1:55 pm ]
Post subject:  Move text with top of progress bar (%NetInSpeedK)

Hello
i am totally newb in xwidget script and can not "bind" my text (%NetInSpeedK value) with the top of the progress bar with same core and tag.
I found the vertical volume slider widget from qiancang and tried to adapt it to my needs but didn't succeed to make move this text...
Could somebody help me please?
The original code :
function progressbar1OnChange(Sender)
{
text1.top = progressbar1.thumb.top;
}
Thank you :)

Author:  Jimking [ December 3rd, 2014, 6:27 pm ]
Post subject:  Re: Move text with top of progress bar (%NetInSpeedK)

I made something similar:
http://jimking.deviantart.com/art/PURE- ... -483588366

BUT since the %NetInSpeedK value when used with progressbar is not actually the real %value of your connection speed, but works more like an activity meter, I don't think that will work anyway..
I think Tony will fix it in XW v2.0.
Please read this:
viewtopic.php?f=3&t=3697

Author:  anonymouswidget [ December 3rd, 2014, 9:45 pm ]
Post subject:  Re: Move text with top of progress bar (%NetInSpeedK)

thank you, il Will wait for it to be fixed ... Will study the Widget you placed on link, it is exactly what i want

Author:  Jimking [ December 4th, 2014, 9:11 am ]
Post subject:  Re: Move text with top of progress bar (%NetInSpeedK)

Yes, check the widgets at the right part of the screenshot that use the function you want..
As I told you I don't think that will work using the net% but you can give a try.

Author:  anonymouswidget [ December 4th, 2014, 11:43 am ]
Post subject:  Re: Move text with top of progress bar (%NetInSpeedK)

You're right for NetIn. I'll wait an fix.
i tried the same thing with ram but text doesn't move with thumb...

function progressbar1OnChange(Sender)
{
text1.top = progressbar1.thumb.top-10;
}
where have i failed ?

edit: I checked yours that works perfect and compared with mine : i don't see what's going wrong... :x
edit: I tried this :

function ramcore1OnUpdate(Sender)
{
var ramvalue = parseInt(ramcore1.get("%PhysPercent"));
}
function progressbar1OnChange(Sender)
{
text1.top = progressbar1.height/100*ramvalue ;
}
...no way just made yoghourt javascript melting sh*t . think the trick is simple and i didnt see

Author:  Jimking [ December 4th, 2014, 1:04 pm ]
Post subject:  Re: Move text with top of progress bar (%NetInSpeedK)

Be sure that you have assign the ramcore1onupdate tag. Add/copy only the script is not enough.

Author:  anonymouswidget [ December 4th, 2014, 1:32 pm ]
Post subject:  Re: Move text with top of progress bar (%NetInSpeedK)

i am not sure to understand... i've assigned core ramcore with tag %PhysPercent to both progressbar and text.

i don't see where to put a tag ramcore1onupdate or ramcore1onchange. I give up for tonight.

good night.

Author:  Jimking [ December 4th, 2014, 2:38 pm ]
Post subject:  Re: Move text with top of progress bar (%NetInSpeedK)



Attachments:
qq.jpg
qq.jpg [ 139.46 KiB | Viewed 2822 times ]

Author:  anonymouswidget [ December 4th, 2014, 9:57 pm ]
Post subject:  Re: Move text with top of progress bar (%NetInSpeedK)

That was it ! i didn't assign progressbar1onchange. now it Works. thank you so much you were very helpfull. Will post my Widgets when finished

Author:  Jimking [ December 5th, 2014, 4:12 am ]
Post subject:  Re: Move text with top of progress bar (%NetInSpeedK)

You're welcome. :)

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