Volk65 Posted June 26, 2017 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
mhmda Posted June 26, 2017 Posted June 26, 2017 Add new field to your sql query based on condition and ongettext set result as html <img src=... />. Quote
Volk65 Posted June 26, 2017 Author 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
Sherzod Posted June 26, 2017 Posted June 26, 2017 Hi, Look at this example: C:\Program Files (x86)\FMSoft\Framework\uniGUI\Demos\Desktop\GridImages Best regards, Quote
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.