문제

I have a descendant of TCustomControl and want to process Tab key when user press it. But when I press Tab key the focused control on the form just changed. And OnKeyDown and OnKeyPress events didn't fire. How to solve the problem?

도움이 되었습니까?

해결책

Have the component handle the WM_GETDLGCODE message so it can return the DLGC_WANTTAB flag. See the answer to this question for an example.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top