OnGetItems event is not called, when TComboBox is empty
Original Reporter info from Mantis: ivo_steinmann@gmx.net
-
Reporter name: Ivo Steinmann
Original Reporter info from Mantis: ivo_steinmann@gmx.net
- Reporter name: Ivo Steinmann
Description:
When I set TComboBox to csDropDownList and assign a callback to the OnGetItems. OnGetItems is never called, if there are no elements already in the dropdown list. The control is grayed (same as Enable := False) if there are no elements.
My current workaround is to add a empty element to the list. Then on OnGetItems I delete this empty element and add the right elements, if there are any. If there are no elements to add, I add a empty dummy again.
Mantis conversion info:
- Mantis ID: 12850
- OS: Linux Gentoo i386
- OS Build: latest
- Build: 17886
- Platform: Pentium4 2.5ghz
- Version: 0.9.27 (SVN)
- Fixed in version: 1.0.0
- Fixed in revision: 18339 (#9777610c)
- Target version: 1.0.0