XWidgetSoft Forum https://www.bbs.xwidget.com/ |
|
Need help for menu coding :) https://www.bbs.xwidget.com/viewtopic.php?f=8&t=6596 |
Page 1 of 1 |
Author: | Rom [ February 15th, 2017, 10:40 am ] |
Post subject: | Need help for menu coding :) |
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 ![]() |
Author: | Jimking [ February 15th, 2017, 2:57 pm ] |
Post subject: | Re: Need help for menu coding :) |
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. |
Author: | Rom [ February 16th, 2017, 3:58 am ] |
Post subject: | Re: Need help for menu coding :) |
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 ![]() |
Author: | Jimking [ February 16th, 2017, 4:10 am ] |
Post subject: | Re: Need help for menu coding :) |
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 |
Author: | Rom [ February 16th, 2017, 4:57 am ] |
Post subject: | Re: Need help for menu coding :) |
thanks man it's exaclty i want, you'r the boss ![]() |
Page 1 of 1 | All times are UTC - 8 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |