Forum > LCL

GetNextItem in TListView...

(1/1)

mvaldez:

Hi. It seems GetNextItem is not yet implemented in TListView (at least for GTK2 I'm testing in, with Lazarus 0.9.28.2-8ubuntu1 r22277 FPC 2.4.0). If so, is there any other way to get the selected items (or iterate over them) from the ListView when MultiSelect is enabled?

If there is no workaround, what file should I check to try to implement GetNextItem? Is lcl/ interfaces/ gtk2/ gtk2wscustomlistview.inc?


Thanks in advance.

MV

mvaldez:


I guess I can do (for example):

  for i := 0 to (ListView1.Items.Count - 1) do
    if ListView1.Items.Selected then
      begin
        // Do whatever I need to do with ListView1.Items.something...
      end;                                 


Regards,

MV

Navigation

[0] Message Index

Go to full version