Menu

TAB-VK_DOWN_UP_ENTER_RETURN-EDIT-Windows

2002-10-02
2012-09-26
  • Nobody/Anonymous

    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/Anonymous

      nobody?

       
    • Nobody/Anonymous

      Try a hidden default button (it receives the ENTER) and move the focus with code.
      (GetNextDlgTabItem, SetFocus, etc...)

      rpeter

       
    • Nobody/Anonymous

      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

       
    • Nobody/Anonymous

      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

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.