I have ten edittext boxes for input in my dialog.(pardon my English)
With the TAB i can switch from one to another.
I'd like that when i push ENTER,RETURN or KEYDOWN it behaves the same.
I tried several combinations with WM_KEYDOWN,then a switch and VK_DOWN ...
SetFocus(GetDlgItem(hwnd, ID_SOMETHING) but it doesn't do anything.
Probably there is an easy way for doing this therefore my request for help.
Thanks YF (2002-06-24) for your earlier reply on 'UpdateWindow during calculation'.
WM
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Found it myself=in resource file put the accelerators for VK_DOWN,UP,RETURN.
Then in my program=>case VK_UP:Posit=GetFocus()+SetFocus(GetNextDlgTabItem(hwnd,Posit,TRUE));
Sorry for this (now) stupid question.
Anyway thanks
WM
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Found it myself=in resource file put the accelerators for VK_DOWN,UP,RETURN.
Then in my program=>case VK_UP:Posit=GetFocus()+SetFocus(GetNextDlgTabItem(hwnd,Posit,TRUE));
Sorry for this (now) stupid question.
Thanks anyway
WM
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have ten edittext boxes for input in my dialog.(pardon my English)
With the TAB i can switch from one to another.
I'd like that when i push ENTER,RETURN or KEYDOWN it behaves the same.
I tried several combinations with WM_KEYDOWN,then a switch and VK_DOWN ...
SetFocus(GetDlgItem(hwnd, ID_SOMETHING) but it doesn't do anything.
Probably there is an easy way for doing this therefore my request for help.
Thanks YF (2002-06-24) for your earlier reply on 'UpdateWindow during calculation'.
WM
nobody?
Try a hidden default button (it receives the ENTER) and move the focus with code.
(GetNextDlgTabItem, SetFocus, etc...)
rpeter
Found it myself=in resource file put the accelerators for VK_DOWN,UP,RETURN.
Then in my program=>case VK_UP:Posit=GetFocus()+SetFocus(GetNextDlgTabItem(hwnd,Posit,TRUE));
Sorry for this (now) stupid question.
Anyway thanks
WM
Found it myself=in resource file put the accelerators for VK_DOWN,UP,RETURN.
Then in my program=>case VK_UP:Posit=GetFocus()+SetFocus(GetNextDlgTabItem(hwnd,Posit,TRUE));
Sorry for this (now) stupid question.
Thanks anyway
WM