Главная страница
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.022 c
3-1080283449
Лысый
2004-03-26 09:44
2004.04.25
AD)Query


3-1080391582
Karlson
2004-03-27 15:46
2004.04.25
ВЫзов метода DBGrid1CellClick из любого места программы


1-1081333765
Samael6
2004-04-07 14:29
2004.04.25
Acrobat Reader GetVersion()


1-1081316371
SpAwN_gUy
2004-04-07 09:39
2004.04.25
CASE-средство Разработки


1-1081433311
mbgmz
2004-04-08 18:08
2004.04.25
проблема с компонентами