Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Immediate effect of SetAnimationDelay()
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Immediate effect of SetAnimationDelay()

 Post Reply Post Reply
Author
Message
akur View Drop Down
Senior Member
Senior Member


Joined: 16 May 2006
Status: Offline
Points: 139
Post Options Post Options   Thanks (0) Thanks(0)   Quote akur Quote  Post ReplyReply Direct Link To This Post Topic: Immediate effect of SetAnimationDelay()
    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!

Back to Top
akur View Drop Down
Senior Member
Senior Member


Joined: 16 May 2006
Status: Offline
Points: 139
Post Options Post Options   Thanks (0) Thanks(0)   Quote akur Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 21 September 2007 at 1:12am
Thanks, we will change it also.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.143 seconds.