Context menu key from keyboard doesn't work |
Post Reply |
Author | |
peerschindel
Groupie Joined: 12 July 2008 Status: Offline Points: 11 |
Post Options
Thanks(0)
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
|
|
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
Fixed. Get release 13 (Feb 2009)
|
|
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 |