Hi All,
In the applications I use, I obtain the navigation link from the geographical coordinates, then convert it to BarcodeQR and place it in the outputs.
Until now, I was doing this without any problems in version 2.0.10.
Yesterday I installed the Lazbarcodes package via OPM after upgrading to version 2.2.4. (This was the first problem to walk through the door.)
I encountered an error in my application.
// Bar code must have been rendered before drawing. //
When I overcome this with BarcodeQR1.refresh or BarcodeQR1.Update commands
I saw that the PaintOnCanvas method is not in the position of the rectangle borders I have given, but in the zero position.
Have you faced such a problem? Or how can I find a solution?
procedure TForm1.Button1Click(Sender: TObject);
begin
BarcodeQR1.Text:='Lazarus';
BarcodeQR1.Update; // The old application did not have this code, but now if I do not use it, the error occurs.
// Bar code must have been rendered before drawing.
BarcodeQR1.PaintOnCanvas(self.Canvas,rect(200,200,200+BarcodeQR1.Width,200+BarcodeQR1.Height)); //the rectangle draws at the 0,0 position regardless of its boundaries.
end;
I would be grateful if you share your thoughts and suggestions.