Вниз
Скачать: 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.025 c
1-1081200929
TALLA
2004-04-06 01:35
2004.04.25
Не могу передать строку в DLL на VC++6


14-1081134064
nikitos
2004-04-05 07:01
2004.04.25
Как из число в edit1 отнять из edit2


1-1081417361
Марат
2004-04-08 13:42
2004.04.25
Дата и время


3-1080212284
xxxxxx
2004-03-25 13:58
2004.04.25
select + date


14-1080594690
Andy BitOff
2004-03-30 01:11
2004.04.25
Asm --> Delphi




   Наверх