XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently May 10th, 2025, 2:24 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Slide with delay?
PostPosted: May 16th, 2015, 3:18 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
How can I control two slidepanels at the same time adding a delay for the slide movement between them? (o,5 sec for example)

Code:
function button1Click(Sender)
{
  slidepanel1.slided = !slidepanel1.slided;

  slidepanel2.slided = !slidepanel2.slided;
}

How should be the "timeout" form between the two codes..?

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


Top
 Profile  
 
 Post subject: Re: Slide with delay?
PostPosted: May 18th, 2015, 6:22 pm 
Offline
User avatar

Joined: March 8th, 2013, 10:27 pm
Posts: 353
Code:
function button1Click(Sender)
{
  slidepanel1.slided = !slidepanel1.slided;
   sleep(500); //in milliseconds
  slidepanel2.slided = !slidepanel2.slided;
}


Hangs the widget sometimes though, if on high load :(

_________________
Life is a myriad game... Just play it!


Top
 Profile  
 
 Post subject: Re: Slide with delay?
PostPosted: May 19th, 2015, 1:28 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
Thanks :)

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


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

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 38 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