XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently May 1st, 2025, 12:46 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: February 15th, 2017, 10:40 am 
Offline

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

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

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


Top
 Profile  
 
PostPosted: February 15th, 2017, 2:57 pm 
Offline
User avatar

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

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


Top
 Profile  
 
PostPosted: February 16th, 2017, 3:58 am 
Offline

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

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

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


Top
 Profile  
 
PostPosted: February 16th, 2017, 4:10 am 
Offline
User avatar

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

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


Top
 Profile  
 
PostPosted: February 16th, 2017, 4:57 am 
Offline

Joined: September 16th, 2016, 3:30 am
Posts: 68
thanks man it's exaclty i want, you'r the boss ;)

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

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


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 4 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