Print Page | Close Window

Problem with context-menu in focused pane

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=14526
Printed Date: 31 January 2025 at 9:47am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Problem with context-menu in focused pane
Posted By: znakeeye
Subject: Problem with context-menu in focused pane
Date Posted: 14 June 2009 at 7:27pm
XTP 13.
 
Pane X is not focused. When I right-click it, a context-menu is displayed. The menu items are incorrectly updated due to the fact that pane X is not focused! (I override OnCmdMsg...).
 
I've tried calling SetFocus() in CMyPaneChildWnd::OnRButtonDown(), but the focus is gained after the context-menu is dismissed. How can I make sure my window has focus before the menu is displayed? In Explorer items get focused immediately when right-clicking...!
 
Thanks!


-------------
PokerMemento - http://www.pokermemento.com/



Replies:
Posted By: Oleg
Date Posted: 15 June 2009 at 3:15am
Hi,
 
Call m_paneManager.UpdatePanes() after SetFocus line.


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


Posted By: znakeeye
Date Posted: 16 June 2009 at 4:09am
Thanks a lot! Have had this problem for months :P

-------------
PokerMemento - http://www.pokermemento.com/



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