Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2004.04.25;
Скачать: CL | DM;

Вниз

Change focus to the next control in focus   Найти похожие ветки 

 
Boguslaw   (2003-10-07 02:45) [0]

HEllo,

I want to do this :

procedure TForm1.KodRapKeyDown(Sender: PControl; var Key: Integer;
 Shift: Cardinal);
begin
if (Key = VK_RETURN) and (Shift = 0) then PostMessage(Sender.Handle,WM_NEXTDLGCTL, 0, 0);
end;

But it seems not working in KOl right ? How can I do the same ? I know I can change Key from VK_RETURN to VK_TAB but this way is not perfect (according to WinAPI this message also modifies the border around the control)


 
Vladimir Kladov   (2003-10-07 15:55) [1]

procedure TForm2.EditBox1KeyDown(Sender: PControl; var Key: Integer;
 Shift: Cardinal);
begin
 if Key = VK_RETURN then
 begin
   Key := 0;
   Form.GotoControl( VK_TAB );
 end;
end;



Страницы: 1 вся ветка

Текущий архив: 2004.04.25;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.022 c
1-1081235063
jenbond
2004-04-06 11:04
2004.04.25
Проблемма со сборкой проекта


4-1077798972
DennisLNC
2004-02-26 15:36
2004.04.25
Drag&Drop на WinAPI


14-1081233338
Думкин
2004-04-06 10:35
2004.04.25
С днем рождения! 6 апреля.


3-1080460711
Dimagenius
2004-03-28 11:58
2004.04.25
Как осуществить поиск в таблице базы данных?


14-1080882768
Девушка
2004-04-02 09:12
2004.04.25
Выполнено, но с ошибками на странице