Print Page | Close Window

Immediate effect of SetAnimationDelay()

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=8097
Printed Date: 28 April 2024 at 9:50pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Immediate effect of SetAnimationDelay()
Posted By: akur
Subject: Immediate effect of SetAnimationDelay()
Date Posted: 20 September 2007 at 5:01am
Hello,

after a call to CXTPDockingPaneManager::SetAnimationDelay(), all the autohidden panes use the new animation times immediately, but the pinnable floating frames do not! They must be pinned and unpinned again by the user first, in order to make them use the new animation times.

This is a problem for our customers, since we offer them an on-the-fly setting for animation times, thus they expect immediate changes in all panes.

Can the floating panes forced somehow to re-initialize/refresh their animation settings?
Thanks, in advance!




Replies:
Posted By: akur
Date Posted: 20 September 2007 at 7:18am
Replacing a line inside CXTPDockingPaneMiniWnd::Expand() does the trick:
Instead of original
m_nSlideStep = m_nStepsCount;
I use now
m_nSlideStep = m_nStepsCount = ResetStepsCount();

However, I handle this just as a workaround for the problem, since I need to modify XTP sources.

Is there any better solution to achieve this without any changes to XTP sources? Just because for me, changing a 3rd party library is always the last option to use.


Posted By: Oleg
Date Posted: 21 September 2007 at 1:12am
Thanks, we will change it also.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net