InplaceEdit and Up/Down keys |
Post Reply |
Author | |
larryp
Groupie Joined: 15 January 2005 Location: United States Status: Offline Points: 61 |
Post Options
Thanks(0)
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
|
|
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 |