Article View: comp.lang.pascal.delphi.databases
Article #123Re: Combined DBEdit / DBLookupCombo
From: Christian R. Conrad
Date: Thu, 21 May 1998 00:00
Date: Thu, 21 May 1998 00:00
33 lines
2044 bytes
2044 bytes
On Mon, 18 May 1998 14:00:40 GMT, marc.scheuner@no.spam.please.ch
(Marc Scheuner) wrote:
> I have the following setup: I have a TDBEdit control to enter a code
> value, and a TDBLookupCombo that will display the clear text of the
> codes and select the code (a numerical value) into the same field as
> referenced by the TDBEdit object.
> When I enter a value in the TDBEdit and leave the field, the
> TDBLookupCombo gets updated, as expected, and vice-versa.
> But how can I get the DBLookupCombo to update *WHILE* I am typing in
> codes in the TDBEdit? I tried to find a method to "synchronize" these
> two controls, but even studying the VCL source code didn't reveal any
> "legal" (i.e. "public") way to do so. Any hints?
I dunno...
Perhaps a Locate on the Lookup data set in the OnChange event of the
DBEdit. Unless that leads to an endless loop? But it shouldn't, should
it, for the first call to Locate should find the correct value (if one
exists), and then the second should only find the same --> no change.
I think, but no guarantees... Try it out for yourself, and good luck!
Christian R. Conrad
--
Proud and sole owner of all opinions (except quotes) expressed above!
======================================================================
"Wave goodbye to RISC. It's the rotary engine of computing."
Brad Aisa, in comp.lang.pascal.delphi.advocacy
Technical Details
Message-ID:
<35643a0e.99644801@news.eunet.fi>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<35603e79.28536603@news.bernoise.ch>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ffff5,e7d952be6847e3ad X-Google-Attributes: gidffff5,public X-Google-Thread: 10de66,e7d952be6847e3ad X-Google-Attributes: gid10de66,public From: christian.conrad@hedengren.fi (Christian R. Conrad) Subject: Re: Combined DBEdit / DBLookupCombo Date: 1998/05/21 Message-ID: <35643a0e.99644801@news.eunet.fi> X-Deja-AN: 355242342 References: <35603e79.28536603@news.bernoise.ch> Reply-To: christian.conrad@hedengren.fi Organization: Oy Tositieto - Realdata Ab Newsgroups: comp.lang.pascal.delphi.databases,borland.public.delphi.database.sqlservers