XWidgetSoft Forum https://www.bbs.xwidget.com/ |
|
WindowZPosition bug https://www.bbs.xwidget.com/viewtopic.php?f=3&t=5507 |
Page 1 of 1 |
Author: | shrike [ February 23rd, 2015, 5:25 pm ] | ||
Post subject: | WindowZPosition bug | ||
Attachment: testZPosition.gif [ 96.05 KiB | Viewed 9868 times ] This code should change z-order every two seconds. But it does this only once. Code: function datetimecore1OnUpdate(Sender)
{ if (widget.WindowZPosition >= 1) { widget.WindowZPosition = -1; text1.Text = "Bottom"; } else { widget.windowZPosition = 2; text1.Text = "Top"; } }
|
Author: | Jimking [ February 24th, 2015, 11:05 am ] |
Post subject: | Re: WindowZPosition bug |
I can't help you with the script but I think you should use the "timercore" instead of datetimecore... |
Author: | shrike [ February 24th, 2015, 1:15 pm ] | ||
Post subject: | Re: WindowZPosition bug | ||
If anybody else is experiencing this bug I found a "fix". It will cause widget to blink when changing z-order, but it's better than nothing. Code: function datetimecore1OnUpdate(Sender)
{ if (widget.WindowZPosition >= 1) { text1.Text = "Bottom"; setZOrder(-1); } else { text1.Text = "Top"; setZOrder(2); } } function setZOrder(z) { setZOrder.z = z; widget.Hide(); // Blink widget.Show(); // } function widgetOnShow() { if (typeof setZOrder.z != 'undefined') widget.WindowZPosition = setZOrder.z; }
|
Author: | shrike [ February 25th, 2015, 12:47 pm ] |
Post subject: | Re: WindowZPosition bug |
Even the above trick fails sometimes ![]() |
Author: | Jimking [ February 26th, 2015, 6:25 am ] |
Post subject: | Re: WindowZPosition bug |
As I told you since you want a function that it repeats every 2 secs I think you should use the timecore core. Example: http://jimking.deviantart.com/art/Lazer ... -417202701 |
Author: | shrike [ February 26th, 2015, 1:19 pm ] |
Post subject: | Re: WindowZPosition bug |
Right. I could also try setDelay() or setTimeout(). But what it has to do with the bug? Isn't this an off-topic here? |
Author: | meme [ February 26th, 2015, 11:46 pm ] |
Post subject: | Re: WindowZPosition bug |
Quote: Quote: This code should change z-order every two seconds. But it does this only once. I tried your first widget and it seems to work OK every two seconds top / bottom and in front / behind another widget. As you have said the code is executing every two seconds in either method. I can not see the problem. |
Author: | shrike [ February 27th, 2015, 5:35 am ] |
Post subject: | Re: WindowZPosition bug |
meme wrote: I can not see the problem. I added GIF to OP so anybody could see the problem now. |
Author: | digigamer [ February 27th, 2015, 7:45 am ] |
Post subject: | Re: WindowZPosition bug |
Same here ... Couldn't reproduce your case |
Author: | shrike [ February 27th, 2015, 8:43 am ] |
Post subject: | Re: WindowZPosition bug |
digigamer wrote: Couldn't reproduce your case Maybe you need to click in another window to see the effect. Btw I have XWidget 1.9.3.1022 Attachment: testZPosition (2).gif [ 285.64 KiB | Viewed 9863 times ] |
Author: | meme [ February 27th, 2015, 12:47 pm ] |
Post subject: | Re: WindowZPosition bug |
Quote: Maybe you need to click in another window to see the effect True, once another window is made active, WindowZPosition = 2 appears to not work. If the widget is made active it works again. Once it looses the most top position it can not regain it via WindowZPosition, but if set to top most will maintain it with show / hide. |
Author: | digigamer [ March 30th, 2015, 7:25 am ] |
Post subject: | Re: WindowZPosition bug |
meme wrote: Quote: Maybe you need to click in another window to see the effect True, once another window is made active, WindowZPosition = 2 appears to not work. If the widget is made active it works again. Once it looses the most top position it can not regain it via WindowZPosition, but if set to top most will maintain it with show / hide. And this is documented here: http://docs.xwidget.com/index.php?title ... _functions bringToFront() sets the Z-Index behind the scenes |
Page 1 of 1 | All times are UTC - 8 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |