Главная страница
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.025 c
1-1081170427
vv_fran
2004-04-05 17:07
2004.04.25
Почему дата 12/30/1899 - нулевая в Делфи?


1-1081450349
Rim
2004-04-08 22:52
2004.04.25
Help


8-1074540760
nonameoo
2004-01-19 22:32
2004.04.25
Полноэкранный режим


1-1081015278
Федя Мегатронов
2004-04-03 22:01
2004.04.25
Ничего не компилиться при повторном открытии ! помогите !


14-1080624885
Layner
2004-03-30 09:34
2004.04.25
НАТО на границе России.