Вниз
Скачать: 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.033 c
3-1080560267
stelius
2004-03-29 15:37
2004.04.25
Опять про скорость


6-1077011555
AlexNx
2004-02-17 12:52
2004.04.25
Indy SMTP Client and Proxy?


3-1080655692
DimonNew
2004-03-30 18:08
2004.04.25
Компонеты Rave и ADO.NET


1-1081245924
V-Isa
2004-04-06 14:05
2004.04.25
Как получить матрицу битов изображения символа.


1-1081507555
Srg
2004-04-09 14:45
2004.04.25
Создание собственного компонента




   Наверх