Print Page | Close Window

Context menu key from keyboard doesn't work

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Syntax Edit
Forum Description: Topics Related to Codejock Syntax Edit
URL: http://forum.codejock.com/forum_posts.asp?TID=11530
Printed Date: 11 December 2024 at 6:27pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Context menu key from keyboard doesn't work
Posted By: peerschindel
Subject: Context menu key from keyboard doesn't work
Date Posted: 22 July 2008 at 5:11am
Hello all,
 
like someone has written in another message in the forum:
The Syntax Edit control is really o.k., but why couldn't it reach 99%
instead of stopping at 95%.
Another small issue (like the 2 from yesterday):
The context menu key from the keyboard doesn't work
(this can be seen e.g. in the "MDITextEditor" sample where there's
source code to try to handle the case, but the message never comes to
there).
The reason is, that "CXTPSyntaxEditCtrl::OnContextMenu" does
 
...
if (m_pParentWnd && rcWnd.PtInRect(point))
{
    CWnd::HideCaret();
    m_pParentWnd->SendMessage(WM_CONTEXTMENU,
        (WPARAM)pWnd->GetSafeHwnd(),
        (LPARAM)MAKELONG(point.x, point.y));
    ...
 
and if the point is (-1,-1) (due to invocation from keyboard)
the context menu message is never send to the parent e.g.
the edit view.
Ok, again, it can be workaround (with or without changing the
library source code). But it would be much nicer if it would be
o.k. out of the box.
 
Best regards

 




Replies:
Posted By: mdoubson
Date Posted: 27 January 2009 at 11:41am
Fixed. Get release 13 (Feb 2009)



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