XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently 2017年 Oct 22日 18:26

All times are UTC - 8 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 2017年 Feb 15日 10:40 
Offline

Joined: 2016年 Sep 16日 03:30
Posts: 23
Hello

I need help for a scripts, for a horizontal menu, I explain myself

I'm doing a horizontal menu with several button of selection ... What I would like is that when I select the button1 ca deselects the others .... I do not know if I am clear enough.

To design the menu navigation buttons I use the "CheckButton"

Thank you all and if necessary I can provide the project :)


Top
 Profile  
 
PostPosted: 2017年 Feb 15日 14:57 
Offline
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4549
This is simple enough. You need to use the .visible = true; or false; script. I have already created a lot of widgets with this mode.

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


Top
 Profile  
 
PostPosted: 2017年 Feb 16日 03:58 
Offline

Joined: 2016年 Sep 16日 03:30
Posts: 23
Ok so my code should be written like this? I really start in java coding, and I do not know yet very well how ca format.

Code:
function checkbutton2OnClick(Sender)
{
  CheckButton1=false;
}


thanks :)


Top
 Profile  
 
PostPosted: 2017年 Feb 16日 04:10 
Offline
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4549
Should be like this:
Code:
function checkbutton2OnClick(Sender)
{
  CheckButton1.visible = false;
}

This is a general and basic code. You need to adjust it if there are more elements/buttons to control.
I started from zero either without any idea about java script. The best way to learn is to open ready widgets with js and study how it works, like I did.. :)
If you have problems it will be better if you attach the .xwp here..

An example:
http://www.kuyuapp.com/xwidget/widgets/ ... Style.html

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


Top
 Profile  
 
PostPosted: 2017年 Feb 16日 04:57 
Offline

Joined: 2016年 Sep 16日 03:30
Posts: 23
thanks man it's exaclty i want, you'r the boss ;)


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

All times are UTC - 8 hours


Who is online

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

Powered by phpBB® Forum Software © phpBB Group