Print Page | Close Window

InplaceEdit and Up/Down keys

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=5540
Printed Date: 14 May 2024 at 3:02pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: InplaceEdit and Up/Down keys
Posted By: larryp
Subject: InplaceEdit and Up/Down keys
Date Posted: 16 November 2006 at 2:58pm

Is there an easy way to tab to an item that has several constraints and use the up/down keys to scroll through each constraint?  Right now, I can't do that unless I click on the down arrow first or make a change to the CodeJock source.

If I make a change to the following CodeJock soure as noted in red:
 
BOOL CXTReportInplaceEdit::PreTranslateMessage(MSG* pMsg)
{
     if (pMsg->message == WM_KEYDOWN && (pMsg->wParam == VK_DOWN || pMsg->wParam == VK_UP ) {
 
         return CEdit::PretranslateMessage(pMsg);
     }
 
     if (pMsg->message == WM_KEYDOWN && IsDialogMessage(pMsg))
        return True;
 
     return CEdit::PretranslateMessage(pMsg);
}

then this allows me to override PreTranslate in my view class and catch the message.  Once I catch the message, I can determine the row and column, get the item constraints, and figure out the next constraint in the list.  Then, update the edit control to the new text and the value in the item.

This works but I have to change the CodeJock source.  So, I was wondering if anyone knew a way that did not require a change to the source and if not then could CodeJock add this change to the source for the next release?
 
Thanks,
Larry



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