How to do it...

What you want to create is shown in the following screenshot:

Figure 4.7: The dual list selection form

There are three images in the left-hand side gray list and zero images in the red list on the right-hand side. Click on an image; the clicked image will slide to the opposite list (gray to red or red to gray) using a nice animation. The steps to reproduce the images are as follows:

  1. Create a new FireMonkey desktop application.
  2. Drop two TRectangle components on the form. Align the first one on the left-hand side and call it LeftRect, and the second one to the right-hand side and call it RightRect, as shown in the screenshot ...

Get Delphi Cookbook - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.