![]() ![]() For text foreground color, see the font property. The only thing left to do is specify the background color of the cells for any particular column. The first and easiest thing you can do to visually enhance the user interface is to color individual columns in thes Columns property in the Object Inspector. ![]() Select the employee.db from the DBDemos alias and select all fields except EmpNo. The easiest way to accomplish this is to use the Database Form Wizard. We'll assume that you already know how to connect a database to a DBGrid component. We'll do this by focusing on DBGrid, which provides a great user interface tool for displaying data. To access the objects associated with the strings in the Cells array, use the Objects property.Īdding color to your database grids will enhance the appearance and differentiate the importance of certain rows or columns within the database. The ColCount and RowCount property values define the size of the array of strings. The first row is row zero, and the first column is column zero. The colour should then become white again when the focus is set on a different object. That's why I would like to change its colour from white to blue when I click on it. As you certainly know, when you click on a TStringGrid, the selected cell is barely visible. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |