On 13/12/2011 06:25, Ludo Brands wrote:
There is actually a very small problem: when selecting a line with
MasterID =3 the dropdownbox will select the first xxx
instead of the
second.

Please create a specific bugreport for dbgrid so i can provide a patch

DBGrid? It is the dropdownbox of the TDBLookupComboBox that highlights the
wrong xxx. There is no DBGrid involved.

Sorry. I'm referring to your first mail:

Mon, 12 Dec 2011 16:06:22 +0100 (CET)


"

Don't know if this is in the scope of the changes you made but the lookup in
the dbgrid (picklist) is (still?) broken

"
In your test program, select in TDBLookupComboBox the second xxx, MasterID
of the datasource is updated to 3. That is fixed. Update uses key instead of
listvalue. Now the other way around: select in the datasource a record with
MasterID = 3, open the dropdownbox in TDBLookupComboBox and you'll see the
first xxx highlighted. There is still a locate of the listvalue instead of
key.

This is the internal GUI toolkit (win32) behavior. We cant change that.

The same thing occurs with a vanilla combobox. There's no call in LCL or widgetset involved

Luiz


--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to