[Lazarus] TListView.SelCount bug
Mattias Gaertner
nc-gaertnma at netcologne.de
Thu Mar 27 22:19:29 CET 2008
On Thu, 27 Mar 2008 15:16:05 +0100
Roland Turcan <konf at rotursoft.sk> wrote:
> Hello General mailing list!
>
> I have on a form TListView and I found TListView doesn't report
> correct value in SelCount in the case, that the owner form is not
> shown.
>
> When I ask for SelCount before I close the Windows then it reports
> >0, but after ShowModal reports =0;
>
> After closing the windows HandleAllocated results FALSE.
>
> function TCustomListView.GetSelCount: Integer;
> begin
> if HandleAllocated
> then Result :=
> TWSCustomListViewClass(WidgetSetClass).GetSelCount(Self) else
> Result := 0; end;
>
> I can make a workaround for this, that I will save the value before
> windows is closed, but I think, that it is bug.
>
> Is it purpose or bug?
>[...]
Please create a bug report.
Mattias
More information about the Lazarus
mailing list