Occurs if there is any invalid character in the Barcode, FIMType (Only for TBarcode1D_FIM component), PatchType (Only for TBarcode1D_Patch component), Tracking (Only for TBarcode1D_OneCode component), or Routing (Only for TBarcode1D_OneCode component) property.
type
{ Defined in the pBarcode1D unit }
TOnInvalidChar = procedure (Sender: TObject; Index: Integer; BarcodeChar: Char) of object;
property OnInvalidChar: TOnInvalidChar;
Sender: TObject; It is the object whose event handler is called.
Index: Integer; The index position of first invalid character in the Barcode, FIMType (Only for TBarcode1D_FIM component), PatchType (Only for TBarcode1D_Patch component), Tracking (Only for TBarcode1D_OneCode component), or Routing (Only for TBarcode1D_OneCode component) property, the index 1 denotes that the first character is invalid character.
For the TBarcode1D_OneCode component, if the invalid character is in the Tracking property, the Index is from 1 to 20 including 1 and 20; if it is in the the Routing property, the value starts with 21 (First character of the Routing property).
BarcodeChar: Char; The first invalid character in the barcode text that is specified by the Barcode, FIMType (Only for TBarcode1D_FIM component), PatchType (Only for TBarcode1D_Patch component), Tracking (Only for TBarcode1D_OneCode component), or Routing (Only for TBarcode1D_OneCode component) property. The character is a WideChar if the UNICODE is supported by the Delphi or C++ Builder. Otherwise it is an AnsiChar.
If the Locked property is set to false, the event occurs when any component property is changed to cause the barcode is redrew, or when the Draw, Clear, Size, DrawTo (Syntax 1), DrawToSize (Syntax 1), Print (Syntax 1), or PrintSize (Syntax 1) method is called. Even if the Image property isn't specified.
If the Locked property is set to true, the event occurs when the Locked property is set to false to cause the barcode is redrew, or the Draw, Clear, Size, DrawTo (Syntax 1), DrawToSize (Syntax 1), Print (Syntax 1), or PrintSize (Syntax 1) method is called. Even if the Image property isn't specified.