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. Quote 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=... />. Quote 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? Quote 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, Quote 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! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.