Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - InplaceEdit and Up/Down keys
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

InplaceEdit and Up/Down keys

 Post Reply Post Reply
Author
Message
larryp View Drop Down
Groupie
Groupie


Joined: 15 January 2005
Location: United States
Status: Offline
Points: 61
Post Options Post Options   Thanks (0) Thanks(0)   Quote larryp Quote  Post ReplyReply Direct Link To This Post Topic: InplaceEdit and Up/Down keys
    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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.