CPB Mailing List

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: detect a CR in an TEdit control...



Use the OnKeyPress event

and in the corresponding function :
void __fastcall TForm1::Edit1KeyPress(TObject *Sender, char &Key)
{
    if ( Key = = VK_RETURN){

        .....
    }
}


KEEZER wrote:

>      How?
>
>      I want to runtime detect a carriage return "event" in a TEdit control.
>      Would I use THotKey for this?
>
>      DaveK






W Komornicki's Home Page | Main Index | Thread Index