Volk65 Posted June 26, 2017 Share Posted June 26, 2017 Very often I need to display a column with a pictogram in the grid. The icon is not stored in the database, but in the program. I create an empty column and on the "OnDrawColumnCell" event I display the required icon, depending on the conditions.How do I properly draw a pictogram in "UniDbgrid"?If I add an empty column to "UniDbgrid", then the "OnDrawColumnCell" event is not called on this column. Link to comment Share on other sites More sharing options...
mhmda Posted June 26, 2017 Share Posted June 26, 2017 Add new field to your sql query based on condition and ongettext set result as html <img src=... />. Link to comment Share on other sites More sharing options...
Volk65 Posted June 26, 2017 Author Share Posted June 26, 2017 Thank you. And from "TImageList" in any way it is impossible to take an image and deduce, for example through Canvas? Link to comment Share on other sites More sharing options...
Sherzod Posted June 26, 2017 Share Posted June 26, 2017 Hi, Look at this example: C:\Program Files (x86)\FMSoft\Framework\uniGUI\Demos\Desktop\GridImages Best regards, Link to comment Share on other sites More sharing options...
Volk65 Posted June 26, 2017 Author Share Posted June 26, 2017 Yes!!!! This is that! Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now