XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently 2017年 Apr 28日 04:07

All times are UTC - 8 hours




Post new topic Reply to topic  [ 17 posts ] 
Author Message
 Post subject: Slider Widget ?
PostPosted: 2016年 Sep 16日 03:46 
Offline

Joined: 2016年 Sep 16日 03:30
Posts: 23
Hi, I'm new to the forum and would like some help to create a widget ... I'm trying to create a Slider widget in JavaScript but I can not. Is a person have a code or some explanation see even a tutorial ? Thank you :)


Top
 Profile  
 
 Post subject: Re: Slider Widget ?
PostPosted: 2016年 Sep 16日 04:27 
Online
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4405
The designer supports the creation of the slide layers so no need special js to create it from the scratch.
Same thing for the tag codes that are already exist for that function. :)
You can also use this code to control multiple slidepanels depending of what you want to do.

slidepanel1.slided = !slidepanel1.slided;

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


Top
 Profile  
 
 Post subject: Re: Slider Widget ?
PostPosted: 2016年 Sep 16日 04:34 
Offline

Joined: 2016年 Sep 16日 03:30
Posts: 23
thanks but i want the same effect of this widget "Eker Apps Tab" . Tanks


Top
 Profile  
 
 Post subject: Re: Slider Widget ?
PostPosted: 2016年 Sep 16日 05:05 
Online
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4405
Rom wrote:
thanks but i want the same effect of this widget "Eker Apps Tab" . Tanks

Could you please send me the link of this ""Eker Apps Tab" widget..? Is for XWidget or Rainmeter..

I have many widgets with slide function in my gallery so maybe I can send you a similar one..

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


Top
 Profile  
 
 Post subject: Re: Slider Widget ?
PostPosted: 2016年 Sep 16日 05:15 
Offline

Joined: 2016年 Sep 16日 03:30
Posts: 23
no probleme => https://www.sendspace.com/file/jxfmlo


Top
 Profile  
 
 Post subject: Re: Slider Widget ?
PostPosted: 2016年 Sep 16日 05:42 
Online
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4405
Let me check what particular has this widget.
The best way to learn is to take a ready widget, 'look inside' and see how the things work.

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


Top
 Profile  
 
 Post subject: Re: Slider Widget ?
PostPosted: 2016年 Sep 16日 05:46 
Offline

Joined: 2016年 Sep 16日 03:30
Posts: 23
i have look inside but i'm novice on java....and i don't understand the subtilities....sorry for my bad english :/


Top
 Profile  
 
 Post subject: Re: Slider Widget ?
PostPosted: 2016年 Sep 16日 06:13 
Online
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4405
Rom wrote:
i have look inside but i'm novice on java....and i don't understand the subtilities....sorry for my bad english :/

Hmm.. You selected not a simple widget Rom :)
..and for a novice user on java it's hard to explain what each line/part does.. You can take this widget and replace the images with yours leaving the same script. But surely it will be not an easy job..

I'm not the expert here on js, but I suggest you to start with something more easy and clean.
Personally when I started to use XWidget I had no idea about js but starting from simple widgets and looking inside I started to understand how it works. I suggest you to do like this way.

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


Top
 Profile  
 
 Post subject: Re: Slider Widget ?
PostPosted: 2016年 Sep 16日 09:40 
Offline

Joined: 2016年 Sep 16日 03:30
Posts: 23
ok and do you have a simple code for the same effect ?

My projet
Image


Top
 Profile  
 
 Post subject: Re: Slider Widget ?
PostPosted: 2016年 Sep 16日 11:45 
Online
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4405
Hmm.. You can use some 'tricks' using slidepanels and layers that don't need special js. So when you click on a button a slidepanel will open and the rest will close etc.
A javascript works when you have the right components in place. So depends also on this. I'm sorry but this period I'm busy to create something similar and send you a demo. You need to make some tests by yourself

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


Top
 Profile  
 
 Post subject: Re: Slider Widget ?
PostPosted: 2016年 Sep 16日 12:01 
Offline

Joined: 2016年 Sep 16日 03:30
Posts: 23
I try with slidepanel but I can not seem to have more or the same effect


Top
 Profile  
 
 Post subject: Re: Slider Widget ?
PostPosted: 2016年 Sep 16日 12:20 
Online
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4405
Remember that IN the sidepanel you can put anything you want that will follow the movement. Only needs some tricky moves

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


Top
 Profile  
 
 Post subject: Re: Slider Widget ?
PostPosted: 2016年 Sep 18日 03:24 
Offline

Joined: 2016年 Sep 16日 03:30
Posts: 23
ok i try today thanks :)

Edit : Do you have a code just for slidepanel In ? or slidepanel Out ?
Code:
slidepanel1.slided = !SlidePanelIn;
Does't work


Top
 Profile  
 
 Post subject: Re: Slider Widget ?
PostPosted: 2016年 Sep 18日 23:15 
Online
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4405
That code is wrong.. Here what you can use:

Slide in/out:
Code:
slidepanel1.slided = !slidepanel1.slided;

Slide in/out multiple slidepanels:
Code:
slidepanel1.slided = !slidepanel1.slided;
slidepanel2.slided = !slidepanel2.slided;

Slide in:
Code:
widget.cmd("!SlidePanelIn=slidepanel1");

Slide out:
Code:
widget.cmd("!SlidePanelOut=slidepanel1");

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


Top
 Profile  
 
 Post subject: Re: Slider Widget ?
PostPosted: 2016年 Sep 18日 23:46 
Offline

Joined: 2016年 Sep 16日 03:30
Posts: 23
thanks :)


Top
 Profile  
 
 Post subject: Re: Slider Widget ?
PostPosted: 2016年 Sep 19日 09:54 
Offline

Joined: 2016年 Sep 16日 03:30
Posts: 23
Hi thanks for your help but i have a little bug....Do you have the code for direction left or right ?


Top
 Profile  
 
 Post subject: Re: Slider Widget ?
PostPosted: 2016年 Sep 20日 09:06 
Online
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4405
Rom wrote:
Hi thanks for your help but i have a little bug....Do you have the code for direction left or right ?

The slidepanel component has settings by itself on the right tab of the designer. You don't need code for that.
You can choose the slide direction from there

_________________
Image
...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  [ 17 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 1 guest


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:  
cron

Powered by phpBB® Forum Software © phpBB Group