TListView does not give the correct column widths when in FormDestroy
Original Reporter info from Mantis: eny
-
Reporter name: Eddy
Original Reporter info from Mantis: eny
- Reporter name: Eddy
Description:
When in a FormDestroy event and accessing the column widhts of a TListView (report style), the column widths are wrong. Not the actual column widths are given, but the column widths at the time of program start (design time widths).
Tested with: Lazarus-0.9.27-21258-fpc-2.2.5-20090817-win32.
(The problem occurred in a June-2009 version, but still exists in the latest version.)
Additional information:
The attached example shows the problem: change the width of any column and move the mouse cursor over the listview: this updates the form caption so the correct widths are shown. Then close the application. A file is written that shows the incorrect column widths.
Mantis conversion info:
- Mantis ID: 14371
- Version: 0.9.27 (SVN)
- Fixed in version: 0.9.29 (SVN)
- Fixed in revision: 25124 (#fa0ab5a8)
- Target version: 1.0.0
- LazTarget: 1.0