XWidgetSoft Forum https://www.bbs.xwidget.com/ |
|
Reflection Effect Problem https://www.bbs.xwidget.com/viewtopic.php?f=8&t=2001 |
Page 1 of 1 |
Author: | Nutu [ August 19th, 2012, 8:24 am ] |
Post subject: | Reflection Effect Problem |
Hi! I'm making a new widget, and I added to the right-click menu two buttons: Reflection Off and Reflection On. The buttons should Enable and Disable the Reflection of the main docking box, but only the Reflection Off works. Here is the code: Code: function ReflectionOnClick(Sender) { if(Background.Effect.Reflection.Enabled = true) { Background.Effect.Reflection.Enabled = false; widget.Height = 605; } } function ReflectionOnOnClick(Sender) { if(Background.Effect.Reflection.Enabled = false) { Background.Effect.Reflection.Enabled = true; widget.Height = 675; } } Thanks for the help! Best regards, Nutu' |
Author: | qiancang [ September 6th, 2012, 5:36 am ] |
Post subject: | Re: Reflection Effect Problem |
Hi , Nutu , your code has one problem if you want to judge , you need to use "==" , but not "=" the same effect using only one right-click menu button: Code: function menuitem1OnClick(Sender)
{ Background.Effect.Reflection.Enabled = !Background.Effect.Reflection.Enabled; widget.height= 1280 - widget.height // 605+675=1280 } |
Author: | Nutu [ September 9th, 2012, 4:58 pm ] |
Post subject: | Re: Reflection Effect Problem |
Thanks a lot. It works now ![]() |
Page 1 of 1 | All times are UTC - 8 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |