Jump to content
Forum Roportal
Sign in to follow this  
Scrib

Delphi

Rate this topic

Recommended Posts

Incearca cu butonul - [NU cel de la keypad din dreapta de tot, ci cel de pe langa Enter]

 

Dar.. de ce nu cu sageti?

Share this post


Link to post
Share on other sites

Este de dorit ca toate trecerile sa se faca prin Enter; e de dorit sa gasesc solutia

Edited by Scrib

Share this post


Link to post
Share on other sites

Pai atunci ai putea face ca atunci cand apesi pe Enter sa se simuleze si o apasare a butonului -

Dai la Event-urile de la DateTimePicker-ul respectiv iar la OnKeyDown faci o astfel de procedura:

if key=13 then
begin
 keybd_event(189,0,0,0);
 keybd_event(189,0,KEYEVENTF_KEYUP,0);
end;

[Daca tasta apasata a fost Enter(13) se va simula cu keybd_event o apasare a butonului -]

Edited by Shockeru

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×