TListView.BeginUpdate does nothing
Original Reporter info from Mantis: JoshyFun @joshyfun
-
Reporter name: José Mejuto
Original Reporter info from Mantis: JoshyFun @joshyfun
- Reporter name: José Mejuto
Description:
Win32 (at least) TListView begin/end update does nothing as it calls the inherited method BeginUpdate which does nothing in Windows platform.
Additional information:
Proposed patch in file "\lcl\interfaces\win32\win32wscustomlistview.inc" line 498
class procedure TWin32WSCustomListView.BeginUpdate(const ALV: TCustomListView);
begin
if not WSCheckHandleAllocated(ALV, 'BeginUpdate')
then Exit;
SendMessage(ALV.Handle,WM_SETREDRAW,0,0);
end;
class procedure TWin32WSCustomListView.EndUpdate(const ALV: TCustomListView);
begin
if not WSCheckHandleAllocated(ALV, 'EndUpdate')
then Exit;
SendMessage(ALV.Handle,WM_SETREDRAW,-1,0);
end;
Mantis conversion info:
- Mantis ID: 12503
- OS: Windows
- OS Build: All
- Build: 17136
- Platform: Windows
- Version: 0.9.27 (SVN)
- Fixed in version: 0.9.27 (SVN)
- Fixed in revision: 17138 (#13e3cd5e)
- Monitored by: » luizamerico (Luiz Americo)