Skip to main content

TcxCustomImageProperties.OnGetGraphicClass Event

Occurs when the graphic class of the image assigned to an image editor, which is used as the 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 an image editor is determined, i.e. when the Properties.GraphicClass property’s 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 a specific graphic class for each data record (represented by its index) and the item in this record (a column or row) for which the image editor is displayed, which are represented by the ARecordIndex and AItem parameters, correspondingly. The APastingFromClipboard parameter indicates the condition which the image is assigned to the editor for and is equal to True when the image 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).

See Also