LAMW: jListView set to specific item? lazarus / 43-Android ---------------------------------------------------------------------- c4p · 2017-08-09 12:46 Is there a way to set the jListView to a specific item that is viewable, you can set it to an index but does not reflect visibly. The jGridView component has .setSelection which works fine, but nothing for jListView? is their a workaround for this? Really appreciate the work done on LAMW btw ---------------------------------------------------------------------- c4p · 2017-08-12 15:48 ---------------------------------------------------------------------- jmpessoa · 2017-08-24 01:06 Hello, c4p! Please,  update LAMW from github and try:  Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TAndroidModule1.jButton1Click(Sender: TObject);begin   jListView1.HighLightSelectedItemColor:= colbrRed;  //any color <> default!   jListView1.SetItemChecked(5, True);  //some  valid index ....   ShowMessage(IntToStr(jListView1.GetCheckedItemPosition()));end;  Note: I will try some improvement to scroll to selected index... Thank you! ---------------------------------------------------------------------- c4p · 2017-08-25 06:18 Excellent, will try it later. ---------------------------------------------------------------------- c4p · 2017-08-26 15:25 Quote from: jmpessoa on August 24, 2017, 03:06:35 am Hello, c4p! Please,  update LAMW from github and try:  Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TAndroidModule1.jButton1Click(Sender: TObject);begin   jListView1.HighLightSelectedItemColor:= colbrRed;  //any color <> default!   jListView1.SetItemChecked(5, True);  //some  valid index ....   ShowMessage(IntToStr(jListView1.GetCheckedItemPosition()));end;  Note: I will try some improvement to scroll to selected index... Thank you! This works, if I could get it to autoscroll to the position, that would be great.