xorpas 4 Posted November 21, 2019 Hi I have a problem to animate an item in listview in the PlaceOffset ,How can Do it Like This image Thank's Share this post Link to post
xorpas 4 Posted November 23, 2019 Is their a way ,Some thing Like this var item:TListViewItem; txt:TListItemText; begin item:=ListView1.Items.Add; item.Data['Text1']:='hellow word'; txt:=ListView1.Items[0].Objects.FindObjectT<TListItemText>('Text1'); TAnimator.AnimateFloat(ListView1 , txt.PlaceOffset.X.ToString , 500, 1); // TAnimator.AnimateFloat(ListView1 , 'Position.x', 500, 1); end; 1 Share this post Link to post
xorpas 4 Posted November 27, 2019 (edited) No one Knew about this issue!!!! Edited November 27, 2019 by xorpas Share this post Link to post
Lars Fosdal 1792 Posted November 27, 2019 Since none of us are mind readers, a description of what you want to achieve could be useful. What action should lead to what effect, and when? 1 Share this post Link to post
xorpas 4 Posted November 27, 2019 Thank 's for replay I want to change a position X and Y of item in listview from position.X = -56 to position.X = 144 and position.Y = 16 to position.Y =96 More Explain in image Hier Share this post Link to post
xorpas 4 Posted November 28, 2019 I can do it without animation Like this procedure TForm1.Button1Click(Sender: TObject); var item :TListViewItem; begin ListView1.Items.Clear; item:=ListView1.Items.Add; item.Data['Text1']:='Animate Me in postion x =136 y =256 '; // PlaceOffset.X:=8; // PlaceOffset.Y:=8; item.Objects.FindObjectT<TListItemText>('Text1').PlaceOffset.X:=136; item.Objects.FindObjectT<TListItemText>('Text1').PlaceOffset.y:=256; end; procedure TForm1.Button2Click(Sender: TObject); var item :TListViewItem; begin ListView1.Items.Clear; item:=ListView1.Items.Add; item.Data['Text1']:='Animate Me in postion x =8 y =8'; item.Objects.FindObjectT<TListItemText>('Text1').PlaceOffset.X:=8; item.Objects.FindObjectT<TListItemText>('Text1').PlaceOffset.y:=8; end; But How can Do it With TFloatanimation Share this post Link to post
Lars Fosdal 1792 Posted November 28, 2019 I've not used animations much, as I mostly do desktop UI. I assume you have read this: http://docwiki.embarcadero.com/RADStudio/Rio/en/Using_FireMonkey_Animation_Effects ? 1 Share this post Link to post