XWidgetSoft Forum https://xwidget.com/bbs/ |
|
HELP: start/stop work functions when menuitem.checked https://xwidget.com/bbs/viewtopic.php?f=8&t=5653 |
Page 1 of 1 |
Author: | Oletik [ April 26th, 2015, 11:59 am ] |
Post subject: | HELP: start/stop work functions when menuitem.checked |
Some element of my widget have functions "panelOnMouseWheelUp" and "panelOnMouseWheelDown". I need if the menuitem is checked - functions work, if the menuitem is not checked - functions don't work. |
Author: | Oletik [ April 27th, 2015, 10:19 am ] |
Post subject: | Re: HELP: start/stop work functions when menuitem.checked |
can anyone help? |
Author: | Jimking [ April 27th, 2015, 12:36 pm ] |
Post subject: | Re: HELP: start/stop work functions when menuitem.checked |
Attach your. xwp please.. To understand what do you mean.. |
Author: | Oletik [ April 28th, 2015, 8:32 am ] | ||
Post subject: | Re: HELP: start/stop work functions when menuitem.checked | ||
It's widget example.
|
Author: | Jimking [ April 28th, 2015, 8:48 am ] |
Post subject: | Re: HELP: start/stop work functions when menuitem.checked |
Need to be more clear Oletik.. The script for the un/checked menu works, butw what do you mean with "scroll"..? Because you put an image inside..Maybe you mean "slide"..? |
Author: | Jimking [ April 29th, 2015, 1:00 pm ] |
Post subject: | Re: HELP: start/stop work functions when menuitem.checked |
Hmm.. Now I understand. I will try to find the solution. @meme can find it in 5 mins though ![]() |
Author: | meme [ April 29th, 2015, 7:37 pm ] |
Post subject: | Re: HELP: start/stop work functions when menuitem.checked |
Modify to this.. Code: function panelOnMouseWheelUp(Sender)
{ if(menuitem1.checked) { var PY = image.top; image.MoveTo( 75,PY+50,0.2,0,0,0,false) } } function panelOnMouseWheelDown(Sender) { if(menuitem1.checked) { var PY = image.top; image.MoveTo( 75,PY-50,0.2,0,0,0,false) } } |
Author: | Oletik [ April 30th, 2015, 7:37 am ] |
Post subject: | Re: HELP: start/stop work functions when menuitem.checked |
Thank you, It's what I wanted. But how to save in INI position "Image" where I stopped move it if I reload widget or restart computer? |
Author: | meme [ May 1st, 2015, 12:07 am ] | ||
Post subject: | Re: HELP: start/stop work functions when menuitem.checked | ||
Try this....
|
Author: | meme [ May 2nd, 2015, 1:17 pm ] |
Post subject: | Re: HELP: start/stop work functions when menuitem.checked |
Do others experience the annoyance that when using mouse wheel functions they do not work unless the widget has focus. ![]() By that I mean you must click on the widget before the mouse wheel function works, if you click away the widget loses focus and the mouse wheel functions do not work again until you click on the widget again. If so.... The first click can be avoided by adding Code: function widgetOnLoad() { forceToFround(); } All other clicks can be avoided by adding Code: function widgetOnEnter()
{ forceToFround(); } |
Author: | Oletik [ May 3rd, 2015, 7:57 am ] |
Post subject: | Re: HELP: start/stop work functions when menuitem.checked |
Thank you very much for help, meme! I did all what I wanted! |
Page 1 of 1 | All times are UTC - 8 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |