Occurs when the value of Barcode property is changed and the component is updating its barcode symbol, or one of the following methods is called:
By default, the barcode text in string will be encoded in the UTF-8 encoding scheme before generate the barcode symbol (the BOM isn't included). The method is useful if you want to encode the barcode text in your own encoding scheme. See also the "How to encode the UNICODE text in a 2D barcode symbol" article.
type
{ Defined in the pfmxCore2D unit }
TOnEncode = procedure (Sender: TObject; var Data: TBytes; Barcode: string) of object;
property OnEncode: TOnEncode;
Sender: TObject; It is the object whose event handler is called.
Data: TBytes; The barcode text that's encoded by your own encoding scheme should be returned in this parameter.
The initial value is the UTF-8 bytes sequence converted from the Barcode parameter below.
Barcode: String; It is the barcode text in string type (it's an UnicodeString).
Its value is equal to the Barcode property if the Clear, Draw, Size, DrawTo (syntax 1), DrawToSize (syntax 1), Print (syntax 1), or PrintSize (syntax 1) method is called or a component is updating its barcode symbol. And the value of the parameter is equal to the Barcode parameter if the DrawTo (syntax 2), DrawToSize (syntax 2), Print (syntax 2), PrintSize (syntax 2), GetParity (syntax 1) (only for TBarcodeFmx2D_QRCode), GetCheckSum (syntax 1) (only for TBarcodeFmx2D_PDF417), or GetCheckSum (syntax 1) (only for TBarcodeFmx2D_MicroPDF417) method is called.
The event doesn't occur when one of the following methods is called: