Главная страница
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.037 c
4-1074510385
Oyster
2004-01-19 14:06
2004.04.25
Какой диалог подстраивается под язык системы?


1-1081513836
ivan
2004-04-09 16:30
2004.04.25
рисование поверх компонентов


14-1080559223
Marser
2004-03-29 15:20
2004.04.25
Лесь Подервянский vs Шура Каретный


9-1067034168
V-Isa
2003-10-25 02:22
2004.04.25
wav и mid


3-1080650722
dolmat
2004-03-30 16:45
2004.04.25
Никак не добъюсь полного отображения информации