[Lazarus] TListView sorting

William Oliveira Ferreira bdexterholland at gmail.com
Sun Feb 6 22:08:39 CET 2011


Overloading?

Send your suggestion as an overload implementation, i think will solve your
problem and don't start a backward incompatible implementation...
________________________________
William de Oliveira Ferreira
Bacharel em Sistemas de Informação


2011/2/6 Hans-Peter Diettrich <DrDiettrich1 at aol.com>

> In an review of the TListView sorting procedure I could fix most problems
> already. Remaining question:
>
> Is it possible to change the parameter lists of:
>
> TWSCustomListView.SetSort(const ALV: TCustomListView; const AType:
> TSortType; const AColumn: Integer);
>
> into
>
> TWSCustomListView.SetSort(const ALV: TCustomListView; SortProc:
> TListSortCompare; const Data: lParam);
>
> There exists no need to pass the sorting parameters, because these are
> accessible in every sort procedure. Instead a custom compare function and a
> custom sort argument should be passed, to allow for Delphi compatible custom
> sorting:
> TCustomListView.CustomSort(SortProc; lParam); //types to be fixed
>
> IMO every widgetset will allow to implement above change.
>
> DoDi
>
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20110206/51a6fc3b/attachment-0003.html>


More information about the Lazarus mailing list