TcxCustomBlobEditProperties.OnGetGraphicClass Event
Occurs when the graphic class of the image assigned to a BLOB editor, which is used as an in-place editor, is being determined.
Declaration
property OnGetGraphicClass: TcxImageGraphicClassEvent read; write;
Remarks
This event is fired whenever the graphic class of the graphical data which is assigned to a BLOB editor is determined, i.e. when the Properties.PictureGraphicClass property value is not set. The OnGetGraphicClass event is useful when the editor is used as an in-place editor (in a grid control, for example) and should display graphical data of various types. You can set specific graphic class for each data record (represented by its index) and the item in this record (a column or row) for which the BLOB editor is displayed, which are represented by the ARecordIndex and AItem parameters correspondingly. The APastingFromClipboard parameter is equal to True when the image assigned to the editor is pasted from the clipboard and False in all other cases. The AGraphicClass parameter specifies the graphic class assigned to the image. This can be a non-registered graphic class (not a bitmap graphic, metafile graphic, icon, JPEG compressed image data).