Cocoa: TDBLookupCombo returns unexpected values
Original Reporter info from Mantis: wittbo
-
Reporter name: Dr. Bodo Wittig
Original Reporter info from Mantis: wittbo
- Reporter name: Dr. Bodo Wittig
Description:
-
If the selection of the combobox changes, the event OnChange is always fired twice, resulting in different property values, none of them corresponds to my real choice.
-
If the same entry is chosen again (i.e. no change in reality), OnChange is fired once retrieving the right property values.
Steps to reproduce:
The example includes a simple SQLite Database (SingleTable.db) with one single table with three columns. This automatically linked to an DBLookupCombobox, where you can select one of five entries. After selection the result of the selection (properties KeyValue and Text) is shown in the TMemo field on the right side. Clicking the button Button1 reads the the same properties and displays them.
Additional information:
This behaviour is only assigned to Cocoa widgetset, not to Carbon, nor to Windows.
Mantis conversion info:
- Mantis ID: 32222
- OS: macOS
- OS Build: 10.10.5
- Platform: iMac 27, MacBook Air 13
- Version: 1.8RC3