Fast UI prototyping
Live bindings are not limited to string properties. You can bind different simple and complex data types. One of the really cool components that you can use to quickly design a data-driven UI is TPrototypeBindSource
. This component can emulate a data table and generate test data for display. In this way, we can very quickly prototype GUIs.
Let’s see how we could use live bindings to quickly prototype the UI of our ToDo List app:
- Reopen the
ToDoList
project in the IDE, right-click on Project Manager, and select the option to add a new project to the project group. - Create a separate folder for the new project and save the main form’s unit as
uFormToDoTest
, the project asToDoTest
, and the whole project group asToDoGrp
. - Change the
Name
property of the main form of the new project toFormToDoTest
. Now, copy the list view control from theFormToDo
form onto theFormToDoTest
. We have our dynamic list view design in the new test form.Let...