![]() How to Work With OnMouseOver and Delphi Components What you'll find below is an explanation on how to enable the OnMouseOver type of event for a DBGrid row, so that the mouse is recorded and located, making the record active so as to highlight the corresponding row in a DBGrid. It might seem easy enough to just set the dgRowSelect property, but remember that when dgRowSelect is included in Options, the dgEditing flag is ignored, meaning that editing the data using the grid is disabled. However, don't be fooled by over-simplistic tutorials on this topic. For example, adding color to your database grids will enhance the appearance and differentiate the importance of certain rows or columns within the database. Designed to enable a user to view and edit data in a tabular grid, the DBGrid provides various ways of customizing the way it represents its own data. The TDBGrid Delphi component is one of the jewels of the VCL. Have you ever seen a menu or table column or row highlight to a different color when your mouse hovers over it? That's what our goal is here: to have a row become highlighted when the mouse pointer is within range. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |