XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently 2017年 Nov 23日 14:14

All times are UTC - 8 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 2015年 Dec 23日 19:18 
Offline
User avatar

Joined: 2013年 Jul 29日 09:13
Posts: 572
When a layer is made opaque using the fadeto command:

aboutUsLayer.FadeTo(0,1);

- any links on the layer are still clickable. This is wrong. When a layer has an opacity of zero then it should equate to the following:

aboutUsLayer.visible = false;

In this case the layer is not visible so you cannot interact with it.

The fadeto command is incorrect in the way it operates allowing interaction with an invisible layer.


Top
 Profile  
 
PostPosted: 2017年 May 11日 01:03 
Offline
User avatar

Joined: 2013年 Jul 29日 09:13
Posts: 572
Workaround - To restore normal functionality you will have to change the layer visibility to false once the fadeTo has accomplished its task. The xwidget method of doing this is to use a synchronised timeout function:

Code:
aboutUsLayer.FadeTo(0,2); // xwidget code to fade the layer in two seconds
setTimeout("fadeDone",2000); //the timeout in milliseconds must match the fade measured in seconds.

//function that is called when the fadeout is completed
function fadeDone () {
aboutUsLayer.visible = false;
}


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Powered by phpBB® Forum Software © phpBB Group