Volk65 Posted August 24, 2016 Posted August 24, 2016 I want to show image in UniDBGrid. The picture is stored in UniImageList. I watched the examples. I tried to do so: procedure Tfr_ADM_UserList.dbgPrivsFieldImage(const Column: TUniDBGridColumn; const AField: TField; var OutImage: TGraphic; var DoNotDispose: Boolean; var ATransparent: TUniTransparentOption); var BMP: TBitmap; begin if Column.FieldName='USED' then begin BMP:=TBitmap.Create; try UniImageList1.GetBitmap(4, BMP); OutImage:=BMP; finally end; end; Does not work. Nothing is displayed. (sorry for my Yandex-translate Quote
allenchow Posted August 26, 2016 Posted August 26, 2016 Did you set the ImageOptions - Visible of Column field 'USED' to True ? Quote
Volk65 Posted August 26, 2016 Author Posted August 26, 2016 Did you set the ImageOptions - Visible of Column field 'USED' to True ? Of course. I understand what the problem is. After I have set the Grid.Columns[x].CheckBoxField.Enabled:=False; the picture appeared. Default property =True 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.