Вниз
Скачать: CL | DM;

Ненужный Beep   Найти похожие ветки 

← →
Жук ©   (2003-02-07 17:11) [0]

Есть процедурка :
procedure TFPrinc1.FormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);
begin
// ПЕРЕНАПРАВЛЕНИЕ ENTER -> TAB
if Key=13 then begin
if ActiveControl is TDBLookupComboBox
then begin
if not TDBLookupComboBox(ActiveControl).ListVisible
then begin
Key := 0;
FindNextControl(ActiveControl, true, true, false).SetFocus;
end;
end
else begin
Key := 0;
FindNextControl(ActiveControl, true, true, false).SetFocus;
end;
end;
// Раскрываем список combobox
if (Key=32) and (ActiveControl is TDBLookupComboBox) and (not TDBLookupComboBox(ActiveControl).ListVisible)
then TDBLookupComboBox(ActiveControl).DropDown;
end;
Если она попадает на DBEdit, то на end"е динамик пищит Beep. Как от этого избавиться ?


← →
Александр Спелицин ©   (2003-02-08 20:02) [1]

Уберите клавиатурные сообщения из очереди через PeekMessage:
PeekMessage (M, ActiveControl.hWnd, WM_KEYFIRST, WM_KEYLAST, True)



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.44 MB
Время: 0.012 c
8-6628
AD
2002-12-29 12:34
2003.04.03
Графический шрифт


1-6422
Uran
2003-03-20 09:59
2003.04.03
Как изменить тип линии в TChart?


3-6415
BubbleGum
2003-03-16 10:13
2003.04.03
Returns the ANSI value for the leftmost character in a character


3-6357
SiJack
2003-03-14 12:22
2003.04.03
Как в DbGrid сделать отдельную колонку не редактируемой


7-6819
User_OKA
2003-02-07 14:19
2003.04.03
MessageDlgPos




   Наверх