In my program I am not trapping KB events (yet). I do process
the ESC key because it generates the message %IDCANCEL. I
want to do something with the ENTER key using its message
%IDOK. But I find that the ENTER key always sends a message
with the ID of the last button drawn on the screen
(CONTROL ADD BUTTON). I confirmed this by moving buttons
around on the screen and get a different ID depending on
the last button drawn.
I know that the focus is always set to the first button on the
screen, not the last. And I have removed all %WS_TABSTOP
options from all buttons.
Does anyone have any idea what "option" I have set that causes
the ENTER key to identify itself as the last button on the
screen instead of delivering %IDOK.
the ESC key because it generates the message %IDCANCEL. I
want to do something with the ENTER key using its message
%IDOK. But I find that the ENTER key always sends a message
with the ID of the last button drawn on the screen
(CONTROL ADD BUTTON). I confirmed this by moving buttons
around on the screen and get a different ID depending on
the last button drawn.
I know that the focus is always set to the first button on the
screen, not the last. And I have removed all %WS_TABSTOP
options from all buttons.
Does anyone have any idea what "option" I have set that causes
the ENTER key to identify itself as the last button on the
screen instead of delivering %IDOK.
Comment