Not ideal but I will look into this option. Thanks :) Rob Martin Software Engineer
phone 03 377 0495 fax 03 377 0496 web www.chreos.com Wild Software Ltd ----- Original Message ----- From: "kj nz" <[EMAIL PROTECTED]> To: "NZ Borland Developers Group - Delphi List" <[EMAIL PROTECTED]> Sent: Friday, October 22, 2004 11:41 PM Subject: Re: [DUG] TDBLookupCombo > > > > 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 > _______________________________________________ Delphi mailing list [EMAIL PROTECTED] http://ns3.123.co.nz/mailman/listinfo/delphi
