Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Select an AutoHidden pane from code
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Select an AutoHidden pane from code

 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: Select an AutoHidden pane from code
    Posted: 04 January 2007 at 8:10am
Hello,

I've got an undesired animation effect when trying to select one of the tabs of my autohidden panes. E.g. 'FileView' is selected (1st pic) and I need to select 'ResourceView' (to achieve the state on 2nd pic). So I call pResView->Select(). However, by calling this, 'ResourceView' not only gets selected, it also quickly goes expanding, then immediately collapsing. Can this quick rollout-rollin action be omitted somehow? I just need to silently select that pane.



Thank you, in advance!

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: 04 January 2007 at 2:48pm
Hi,
It must expand but not collapse it. Can you attach sources of changes you done?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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: 05 January 2007 at 6:07am
It is collapsed immediately, because in our application, some special controls "steal" focus from time to time. So, to be honest, collapsing is a secondary problem for me. Primarily I'd like to know why is it expanding, or in other words: can I select that tab _without_ expanding it?
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: 05 January 2007 at 9:08am
Hi,
try get parent  CXTPDockingPaneTabbedContainer and call
 
pTabbedContainer->SelectPane(CXTPDockingPane* pPane, BOOL bSetFocus, BOOL bDelayRedraw)
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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: 08 January 2007 at 4:14am
This is exactly what I needed. Thank you.
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.156 seconds.