Is there any way of setting the onClick event to not occur until the user
has not typed a key for a certain period of time? I guess not but is there
another event / way of achieving this effect?



You'll have to put a timer on the form. Set it disabled to begin with and with whatever interval you think is appropriate to wait before activating the query.


In the event OnTimer fire your query and then disable the timer eg

procedure TForm1.Timer1Timer(Sender: TObject);
begin
  DoQuery;
  Timer1.Enabled := false;
end;

Which event are you currently using to fire the query? I'd set Timer1.Enabled := true in the OnKeyDown event and in the OnClick event of the ComboBox. OnKeyPress may be Ok for you but won't respond to the arrow keys as the user moves up and down the drop down list so may not be so good.

Kit Jackson
_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to