XWidgetSoft Forum
https://bbs.xwidget.com/

layer show/hide with slidepanel
https://bbs.xwidget.com/viewtopic.php?f=8&t=3674
Page 1 of 1

Author:  Jimking [ October 21st, 2013, 7:52 am ]
Post subject:  layer show/hide with slidepanel

I have a button, a slidepanel and a layer on top. I would like to have the layer that will appear ONLY when a slidepanel panel appears/slides... And it will hide when the slidepanel will be hidden. I can image that will be possible but I don't know the script code form..

Author:  Dagedee [ October 21st, 2013, 10:11 am ]
Post subject:  Re: layer show/hide with slidepanel

Do you mean something like this? On button click a layer and a slidepanel will be shown/hidden simultaneously?

function button1OnClick(Sender)
{
widget.cmd("!ShowHideObj=layer1");
slidepanel1.slided = !slidepanel1.slided;
}

Attachment:
slidepanel.rar [3.22 KiB]
Downloaded 379 times

Author:  Jimking [ October 21st, 2013, 10:50 am ]
Post subject:  Re: layer show/hide with slidepanel

Exactly Dagedee! Thanksssss :D
I only changed the code with "!FadeInOutVisibleObj" to have more "cute" animation..! ;)

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/