roadbeer69
Programmer
Hi All,
I have a TLabeledEdit object and an OnKeyUp event handler for it. In the event handler, I check to see if the user has pressed enter, and if they have, I enter the text in the TLabeledEdit object into a TListView. My problem is that when this happens, the machine's bell sounds. I haven't been able to find any way to stop this from happening. Below is an example of what I am doing in my OnKeyUp event handler. Can anyone please help me? Thanks in advance.
void __fastcall TMyFrame::OnKeyUpMyLabeledEdit(TObject *Sender, WORD &Key, TShiftState Shift)
{
//If there is anything in the edit box...
if (myLabeledEdit->GetTextLen() > 0)
{
if (Key == VK_RETURN)
{
//Add the contents of myLabeledEdit to a
//TListView.
//...
}
}
}
I have a TLabeledEdit object and an OnKeyUp event handler for it. In the event handler, I check to see if the user has pressed enter, and if they have, I enter the text in the TLabeledEdit object into a TListView. My problem is that when this happens, the machine's bell sounds. I haven't been able to find any way to stop this from happening. Below is an example of what I am doing in my OnKeyUp event handler. Can anyone please help me? Thanks in advance.
void __fastcall TMyFrame::OnKeyUpMyLabeledEdit(TObject *Sender, WORD &Key, TShiftState Shift)
{
//If there is anything in the edit box...
if (myLabeledEdit->GetTextLen() > 0)
{
if (Key == VK_RETURN)
{
//Add the contents of myLabeledEdit to a
//TListView.
//...
}
}
}