![]() |
ShowPane bSetFocus issue ? |
Post Reply ![]() |
Author | |
nickpap ![]() Newbie ![]() ![]() Joined: 09 May 2008 Status: Offline Points: 4 |
![]() ![]() ![]() ![]() ![]() Posted: 24 February 2009 at 5:38am |
Hello,
I'm currently using XTP v12.1.0 and I have an issue with CXTPDockingPaneManager->ShowPane not honoring the bSetFocus parameter. I've created several panes and I attempt to control which ones appear depending on some conditions. I'm using ShowPane to display and ClosePane to hide each pane in turn. The problem is that ShowPane always sets the focus to the newly displayed pane, although I tried passing FALSE in the bSetFocus parameter. This code does not work: this->ShowPane(pPane, pnItem->wOptions & PPI_OPT_SET_FOCUS); //pass TRUE in bSetFocus only when option is set So, I'm using this workaround: if (!(pnItem->wOptions & PPI_OPT_SET_FOCUS)) //workaround to correctly manage not to set focus to shown pane { CXTPDockingPane* pActivePane = this->GetActivePane(); //get the currently selected pane this->ShowPane(pPane, FALSE); //doesn't seem to honor the bSetFocus parameter... this->ShowPane(pActivePane); //set the focus back } else this->ShowPane(pPane); //use default bSetFocus = TRUE |
|
ToolkitPro v12.1.0
Windows XP SP3 32bit VS 2005 C/C++ MFC |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
I tried with our PaneSample and seems it works.
try add FALSE in void CMainFrame::OnShowPane(UINT nID) method and check this sample. Do you see same ? |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |