XWidgetSoft Forum https://www.bbs.xwidget.com/ |
|
Help using checkbuttons https://www.bbs.xwidget.com/viewtopic.php?f=8&t=6955 |
Page 1 of 1 |
Author: | sparrow 91 [ October 22nd, 2018, 7:45 am ] |
Post subject: | Help using checkbuttons |
Hi. I'd like to have some check boxes in my custom widget which is going to be a Christmas shopping tracker. I'd like a checkbox for specifications such as 'bought', 'wrapped' etc. The problem is whenever the widget reloads the check boxes don't remember their last state. Is there some code I can use to get the check boxes to remember their last state, i.e checked or unchecked so that they all don't reset on reload? Thank you. |
Author: | Jimking [ October 22nd, 2018, 9:40 am ] |
Post subject: | Re: Help using checkbuttons |
Hello. Could you please attach here a screenshot or better the .xwp to check from the inside what do you mean? |
Author: | Jimking [ October 22nd, 2018, 11:36 pm ] |
Post subject: | Re: Help using checkbuttons |
Hmm.. I see. I will check the checkbox function. Meanwhile I'm thinking another way. You can use two images for each box and use the show/hide function with each clickon. Let me do some tests and I will reply to you attaching a demo widgets. |
Author: | sparrow 91 [ October 23rd, 2018, 7:45 am ] |
Post subject: | Re: Help using checkbuttons |
Thank you. I think I have tried that approach come to think of it. The show/hide doesn't save when reloaded though. |
Author: | Jimking [ October 24th, 2018, 2:43 am ] |
Post subject: | Re: Help using checkbuttons |
You need to use a script to save certain configurations of a widget sparrow 91. Some advanced functions require java script. Depends on the design. I will reply asap.. |
Author: | sparrow 91 [ October 24th, 2018, 10:14 am ] |
Post subject: | Re: Help using checkbuttons |
Thanks |
Author: | Jimking [ October 24th, 2018, 10:47 am ] | ||
Post subject: | Re: Help using checkbuttons | ||
Ok. I created a demo widget with a trick, using 2 images/ 1 button with my way/script and works fine. ![]() One little thing is that for the "button1" I used the background->solidcolor->transparency 1 to make the button clickable because my images are transparent. Using a background image as you did behind the checked/unchecked images, normally you don't have to do this extra trick. To reload widgets you can directly press F5 on the widget.
|
Author: | sparrow 91 [ October 25th, 2018, 7:51 am ] |
Post subject: | Re: Help using checkbuttons |
Perfect, thank you. |
Author: | Jimking [ October 25th, 2018, 10:16 am ] |
Post subject: | Re: Help using checkbuttons |
You're welcome ![]() |
Page 1 of 1 | All times are UTC - 8 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |