You asked on Patreon can we have database-aware controls in CGE UI. Of course! 🙂
I present a simple implementation of a database-aware edit box using Castle Game Engine user interface. The repository https://github.com/castle-engine/castle-db-aware-controls contains an implementation and demo of
TCastleDBEdit. It is a database-aware edit box (analogous to standard LCL
TDBEdit), that is rendered using Castle Game Engine. It can be added to your window using CGE Editor.
As a database-aware control, it can be trivially connected to display or edit a database entry. More precisely: anything that descends from
TDataSet, which includes a variety of SQL databases, or simple tables using DBF, CSV files and so on.
The example application also shows that you can use a
TDataModule (where you drop and edit components using Lazarus) together with CGE user interface.
The application depends on the latest Castle Game Engine 6.5 from GitHub.
If you’d like to help in the development of the engine, and be able to request features like that, please support our development on Patreon. Thank you! And Merry Christmas! 🙂