Event: OnEncode

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.



{ Defined in the pfmxCore2D unit }

TOnEncode = procedure (Sender: TObject; var Data: TBytes; Barcode: string) of object;

property OnEncode: TOnEncode;


The event doesn't occur when one of the following methods is called: