0
Olhá Makers, I created a Listview by Design and needed to edit the position and size of the text at runtime, does anyone have any idea how to do this? In case the items I will edit from Listview are "Text"
Thank you.
0
Olhá Makers, I created a Listview by Design and needed to edit the position and size of the text at runtime, does anyone have any idea how to do this? In case the items I will edit from Listview are "Text"
Thank you.
0
Edit the size of the texts until I understand, but "edit position"? What exactly means "edit position"?
To edit the text size you can use the Substring function, as I added below in the Help example:
var
  LItem: TListViewItem;
  I: Integer;
begin
  // Adicionando itens
  for I := 1 to 10 do
  begin
    LItem := ListView1.Items.Add;
    LItem.Text := IntToStr(I) + ' Item inserido';
  end;
  // Editando itens
  for I := 0 to ListView1.Items.Count -1 do
  begin
    // Remove a palavra "inserido"
    ListView1.Items[i].Text := ListView1.Items[i].Text.Substring(0, 7);
  end;
Browser other questions tagged delphi firemonkey
You are not signed in. Login or sign up in order to post.