Вниз
Скачать: 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 вся ветка

Скачать: CL | DM;



Память: 0.44 MB
Время: 0.021 c
3-1080142744
softmasters
2004-03-24 18:39
2004.04.25
Строка коннекта


14-1080807209
Zaika
2004-04-01 12:13
2004.04.25
STALKER


14-1080664560
}|{yk
2004-03-30 20:36
2004.04.25
Черная кошка и белый кот


1-1081590998
CCh
2004-04-10 13:56
2004.04.25
Dll в системе


1-1081603762
ipavels
2004-04-10 17:29
2004.04.25
Многомерный массив в аргументах функции




   Наверх