[SOLVED] How to make VK_TAB move to next row? |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
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/
|
|
mgampi
Senior Member Joined: 14 July 2003 Status: Offline Points: 1201 |
Post Options
Thanks(0)
|
Hi;
How did you solve this? |
|
Martin Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
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 |