Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - [SOLVED] How to make VK_TAB move to next row?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

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

 Post Reply Post Reply
Author
Message
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: [SOLVED] How to make VK_TAB move to next row?
    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/
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post 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
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.172 seconds.