XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently May 10th, 2025, 11:17 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 11 posts ] 
Author Message
PostPosted: June 5th, 2013, 8:14 pm 
Offline
User avatar

Joined: March 22nd, 2013, 3:49 am
Posts: 154
Hi,

I'm looking for a way of how to make the arrows for Up- & Download lighten up as soon as network traffic is being detected.
In the example below you see the arrow for Upload lightning up as long as data transfer is active.
How do we make this feature work in xwidget please?

Image

Thanks
Image


Top
 Profile  
 
PostPosted: June 7th, 2013, 1:59 pm 
Offline
User avatar

Joined: June 12th, 2012, 11:05 am
Posts: 257
Location: Barcelona
Attachment:
netwidget.XWidgetPkg [6.57 KiB]
Downloaded 365 times

Tell me if this serves you. Quite simply shows a picture whenever the values ​​change ("on change"). But: the "light" comes on when the value changes up or down. I do not know if that's. In any case, would have to write a code to change only when the value increases.
I use this function "on change" for lot of things.

Code:
function downtextOnChange(Sender)
{
up.visible = true;
sleep (100)
up.visible = false;
}

function uptextOnChange(Sender)
{
down.visible = true;
sleep (100)
down.visible = false;
}


Top
 Profile  
 
PostPosted: June 7th, 2013, 2:14 pm 
Offline
User avatar

Joined: March 22nd, 2013, 3:49 am
Posts: 154
Hi Armando,

that's pretty awesome!
Thank you very much!

If possible, I would prefer a constant "light" as long as data transfer is active.
Only if data transfer is down to zero, the light should go off.

Do you think that's possible?
Thanks!
Image


Top
 Profile  
 
PostPosted: June 7th, 2013, 2:28 pm 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
Cov, you will not rest until someone makes it!! :lol:

_________________
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
PostPosted: June 7th, 2013, 2:32 pm 
Offline
User avatar

Joined: March 22nd, 2013, 3:49 am
Posts: 154
That's because I love widgets so much! Image


Top
 Profile  
 
PostPosted: June 7th, 2013, 2:43 pm 
Offline
User avatar

Joined: June 12th, 2012, 11:05 am
Posts: 257
Location: Barcelona
Yes, it's easy,
give me some minutes... :)


Top
 Profile  
 
PostPosted: June 7th, 2013, 3:01 pm 
Offline
User avatar

Joined: March 22nd, 2013, 3:49 am
Posts: 154
Armando wrote:
Yes, it's easy
See Mr. jimking? It's easy! Image


Top
 Profile  
 
PostPosted: June 7th, 2013, 3:25 pm 
Offline
User avatar

Joined: June 12th, 2012, 11:05 am
Posts: 257
Location: Barcelona
This would works, but... for some reason doesn't works...



Code:
function uptextOnChange(Sender)
{
  if(uptext.text==0)
    {
    up.visible = false;
     }
 else
     {
    up.visible = true;
      }
}

function downtextOnChange(Sender)
{
 if(downtext.text==0)
    {
    down.visible = false;
     }
 else
     {
    down.visible = true;
      }
}


Top
 Profile  
 
PostPosted: June 7th, 2013, 3:31 pm 
Offline
User avatar

Joined: March 22nd, 2013, 3:49 am
Posts: 154
Armando wrote:
This would works, but... for some reason doesn't works...

Oh! haha, never mind.
Thank you very much for trying! Image


Top
 Profile  
 
PostPosted: June 9th, 2013, 3:07 pm 
Offline

Joined: June 18th, 2012, 12:07 am
Posts: 268
Same topic with solution http://bbs.xwidget.com/viewtopic.php?f=7&t=3193


Top
 Profile  
 
PostPosted: June 10th, 2013, 1:23 am 
Offline
User avatar

Joined: March 22nd, 2013, 3:49 am
Posts: 154
Thanks a lot!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: Bing [Bot] and 42 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Powered by phpBB® Forum Software © phpBB Group