Print Page | Close Window

[SOLVED] How to make VK_TAB move to next row?

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=17335
Printed Date: 15 May 2024 at 1:50am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [SOLVED] How to make VK_TAB move to next row?
Posted By: znakeeye
Subject: [SOLVED] How to make VK_TAB move to next row?
Date Posted: 27 September 2010 at 11:07am
Solved it :)
 
XTP 12.0.1 in this case.
 
I have a report control inside a dialog. Pressing Tab (or Shift+Tab) inside the control moves the focus to the next/previous control. Instead of this, I want it to move the selection to the next row and start editing the item. So far I have not succeeded. The tab-key keeps setting the focus to the next control... Have you got any tips?
 
My attempts include:
 
UINT CMyReportControl::OnGetDlgCode()
{
   return DLGC_WANTALLKEYS;
}
 
void CMyReportControl::OnChar(...)
{
   if (nChar == VK_TAB)
   {
        ...
        GetNavigator()->MoveDown();
   }
   else
        CXTPReportControl::OnChar(...);
}
 
I even tried checking focus inside CMyDialog::PreTranslateMessage... :(
 
Please help!


-------------
PokerMemento - http://www.pokermemento.com/



Replies:
Posted By: mgampi
Date Posted: 28 February 2011 at 7:25am
Hi;

How did you solve this?


-------------
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017



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