Вниз
Скачать: 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.026 c
7-1077884817
xShadow
2004-02-27 15:26
2004.04.25
Отображение константы для PE файла


1-1081134995
Извращенец2
2004-04-05 07:16
2004.04.25
Уменьшение размеров приложения


9-1068037261
Delpher_Gray
2003-11-05 16:01
2004.04.25
Изображения большого размера в PowerDraw !?!


3-1080716517
-SeM-
2004-03-31 11:01
2004.04.25
Бинарная логика в Firebird


14-1081178734
Тимур
2004-04-05 19:25
2004.04.25
Flash игры




   Наверх