TCustomDBComboBox does not call FDatalink.Edit
Original Reporter info from Mantis: TWhyman
-
Reporter name: Tony Whyman
Original Reporter info from Mantis: TWhyman
- Reporter name: Tony Whyman
Description:
As the title says, TCustomDBComboBox.Change calls FDatalink.Modified and TCustomDBComboBox.EditingDone calls FDatalink.UpdateRecord, but FDatalink.Edit is never called.
The result is that if a TCustomDBComboBox is the first control used to edit a record, you always get a "Not in Edit Mode" error - unless edit is by cut and paste - see TCustomDBComboBox.WndProc.
Steps to reproduce:
Database application with a form including a TDBComboBox. Open a record and then select a new value from the drop down list. A "Not in Edit Mode" error should then result.
Additional information:
TCustomDBComboBox.Change should also call FDatalink.Edit - see also TCustomDBComboBox.WndProc for an example.
A patch is attached
Mantis conversion info:
- Mantis ID: 29505
- OS: linux
- OS Build: mint 17
- Platform: amd64
- Version: 1.5 (SVN)
- Fixed in revision: r56789 (#d802e5bb)
- Monitored by: » a.ramos (a.ramos)