Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   Trucos (https://www.clubdelphi.com/foros/forumdisplay.php?f=52)
-   -   Desplegar DatetimePicker - código - Teclas (https://www.clubdelphi.com/foros/showthread.php?t=80484)

marcoszorrilla 26-06-2006 00:31:53

Desplegar DatetimePicker - código - Teclas
 
Código Delphi [-]
procedure TForm1.Button1Click(Sender: TObject);
begin
SendMessage(DateTimePicker1.Handle, WM_SYSKEYDOWN, VK_DOWN, 0);
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
 DateTimePicker1.Setfocus;
keybd_event(VK_F4,0,0,0);//F4 down
keybd_event(VK_F4,0,KEYEVENTF_KEYUP,0)//F4 up
end;


La franja horaria es GMT +2. Ahora son las 08:20:21.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi