XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently May 10th, 2025, 12:23 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 17 posts ] 
Author Message
 Post subject: Slider Widget ?
PostPosted: September 16th, 2016, 3:46 am 
Offline

Joined: September 16th, 2016, 3:30 am
Posts: 68
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 :)

_________________
// ===== Contact ===== //
https://discord.gg/9vyhv3F

// ===== My Widget ===== //
http://xwidget.com/xwidget/plus/view.php?aid=2140


Top
 Profile  
 
 Post subject: Re: Slider Widget ?
PostPosted: September 16th, 2016, 4:27 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
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;

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


Top
 Profile  
 
 Post subject: Re: Slider Widget ?
PostPosted: September 16th, 2016, 4:34 am 
Offline

Joined: September 16th, 2016, 3:30 am
Posts: 68
thanks but i want the same effect of this widget "Eker Apps Tab" . Tanks

_________________
// ===== Contact ===== //
https://discord.gg/9vyhv3F

// ===== My Widget ===== //
http://xwidget.com/xwidget/plus/view.php?aid=2140


Top
 Profile  
 
 Post subject: Re: Slider Widget ?
PostPosted: September 16th, 2016, 5:05 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
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..

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


Top
 Profile  
 
 Post subject: Re: Slider Widget ?
PostPosted: September 16th, 2016, 5:15 am 
Offline

Joined: September 16th, 2016, 3:30 am
Posts: 68
no probleme => https://www.sendspace.com/file/jxfmlo

_________________
// ===== Contact ===== //
https://discord.gg/9vyhv3F

// ===== My Widget ===== //
http://xwidget.com/xwidget/plus/view.php?aid=2140


Top
 Profile  
 
 Post subject: Re: Slider Widget ?
PostPosted: September 16th, 2016, 5:42 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
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.

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


Top
 Profile  
 
 Post subject: Re: Slider Widget ?
PostPosted: September 16th, 2016, 5:46 am 
Offline

Joined: September 16th, 2016, 3:30 am
Posts: 68
i have look inside but i'm novice on java....and i don't understand the subtilities....sorry for my bad english :/

_________________
// ===== Contact ===== //
https://discord.gg/9vyhv3F

// ===== My Widget ===== //
http://xwidget.com/xwidget/plus/view.php?aid=2140


Top
 Profile  
 
 Post subject: Re: Slider Widget ?
PostPosted: September 16th, 2016, 6:13 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
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.

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


Top
 Profile  
 
 Post subject: Re: Slider Widget ?
PostPosted: September 16th, 2016, 9:40 am 
Offline

Joined: September 16th, 2016, 3:30 am
Posts: 68
ok and do you have a simple code for the same effect ?

My projet
Image

_________________
// ===== Contact ===== //
https://discord.gg/9vyhv3F

// ===== My Widget ===== //
http://xwidget.com/xwidget/plus/view.php?aid=2140


Top
 Profile  
 
 Post subject: Re: Slider Widget ?
PostPosted: September 16th, 2016, 11:45 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
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

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


Top
 Profile  
 
 Post subject: Re: Slider Widget ?
PostPosted: September 16th, 2016, 12:01 pm 
Offline

Joined: September 16th, 2016, 3:30 am
Posts: 68
I try with slidepanel but I can not seem to have more or the same effect

_________________
// ===== Contact ===== //
https://discord.gg/9vyhv3F

// ===== My Widget ===== //
http://xwidget.com/xwidget/plus/view.php?aid=2140


Top
 Profile  
 
 Post subject: Re: Slider Widget ?
PostPosted: September 16th, 2016, 12:20 pm 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
Remember that IN the sidepanel you can put anything you want that will follow the movement. Only needs some tricky moves

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


Top
 Profile  
 
 Post subject: Re: Slider Widget ?
PostPosted: September 18th, 2016, 3:24 am 
Offline

Joined: September 16th, 2016, 3:30 am
Posts: 68
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

_________________
// ===== Contact ===== //
https://discord.gg/9vyhv3F

// ===== My Widget ===== //
http://xwidget.com/xwidget/plus/view.php?aid=2140


Top
 Profile  
 
 Post subject: Re: Slider Widget ?
PostPosted: September 18th, 2016, 11:15 pm 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
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");

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


Top
 Profile  
 
 Post subject: Re: Slider Widget ?
PostPosted: September 18th, 2016, 11:46 pm 
Offline

Joined: September 16th, 2016, 3:30 am
Posts: 68
thanks :)

_________________
// ===== Contact ===== //
https://discord.gg/9vyhv3F

// ===== My Widget ===== //
http://xwidget.com/xwidget/plus/view.php?aid=2140


Top
 Profile  
 
 Post subject: Re: Slider Widget ?
PostPosted: September 19th, 2016, 9:54 am 
Offline

Joined: September 16th, 2016, 3:30 am
Posts: 68
Hi thanks for your help but i have a little bug....Do you have the code for direction left or right ?

_________________
// ===== Contact ===== //
https://discord.gg/9vyhv3F

// ===== My Widget ===== //
http://xwidget.com/xwidget/plus/view.php?aid=2140


Top
 Profile  
 
 Post subject: Re: Slider Widget ?
PostPosted: September 20th, 2016, 9:06 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
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

_________________
...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 36 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