problem with translating an accelerator table

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ayan4u
    New Member
    • Apr 2007
    • 86

    problem with translating an accelerator table

    ok i have a main window hWnd and created an edit dialogue box as a child window(gEditBox )

    i have an acclerator table to access the menu items in hWnd

    when i am in the edit box nothing happens if I use the key combinations for my menu items but when my focus is in the main window i.e., my caret is NOT blinkin in the edit box window , the key combinations are working.

    Is it that the accelerator keys are not translated and dispatched when my focus is in the edit box....
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    I believe the keys only work when there is no user interface. Read this.

    Comment

    • ayan4u
      New Member
      • Apr 2007
      • 86

      #3
      Originally posted by weaknessforcats
      I believe the keys only work when there is no user interface. Read this.
      what do you mean by not having user interface...the link you provided says

      Accelerators are shortcut keys for program commands on a menu or toolbar AND FOR commands that do not have a user-interface

      so in my case it should work....and i know its working but only when the focus is on the main window( when i press the key combinations).. .its not working when my focus is on the edit box window i.e., when I am in the edit box window (gEditBox) the message is actually not getting dispatched...

      For better understanding of my problem should i post my code here

      Comment

      • ayan4u
        New Member
        • Apr 2007
        • 86

        #4
        just to give a bump...

        Comment

        • ayan4u
          New Member
          • Apr 2007
          • 86

          #5
          just another bump....can someone really give a solution to it....

          Comment

          Working...