Recent

Author Topic: GetNextItem in TListView...  (Read 4918 times)

mvaldez

  • New Member
  • *
  • Posts: 10
GetNextItem in TListView...
« on: August 05, 2010, 01:19:45 pm »

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

  • New Member
  • *
  • Posts: 10
Re: GetNextItem in TListView...
« Reply #1 on: August 05, 2010, 10:35:36 pm »


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

 

TinyPortal © 2005-2018