Code:
//u konstruktoru imam Form1->KeyPreview = true;
//probavao sam i sa uslovom al dzaba ne radi
void __fastcall TForm1::Edit6KeyPress(TObject *Sender, wchar_t &Key)
{
switch( Key )
{
case VK_F12:
ShowMessage("fhfghthtye");
break;
}
}
//u konstruktoru imam Form1->KeyPreview = true;
//probavao sam i sa uslovom al dzaba ne radi
void __fastcall TForm1::Edit6KeyPress(TObject *Sender, wchar_t &Key)
{
switch( Key )
{
case VK_F12:
ShowMessage("fhfghthtye");
break;
}
}
edit:
Primetio sam da radi na KeyUp eventu, e sad posto ne znam bas sto je razlika medju KeyUp i KeyPress ako moze neko i to ukratko dami pojasni. Hvala vam.