Главная страница
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.024 c
14-1080416440
Undert
2004-03-27 22:40
2004.04.25
Как вам такое зверское письмецо и провёрнутые делишки от меня ?


3-1080631521
bav9
2004-03-30 11:25
2004.04.25
Использование команды Update в LocalSQL Дельфи


11-1064220903
RA
2003-09-22 12:55
2004.04.25
Form.CanResize:=true


3-1080573122
vantage10
2004-03-29 19:12
2004.04.25
Как получить список таблиц


7-1077527796
Brenagwynn
2004-02-23 12:16
2004.04.25
Отлов Lock Computer в 2000/XP