Hi there,
How can I catch the error if inserted wrong SVG string on SVGButton?
I am trying to create a component and if I insert wrong SVG string,
Lazarus freezes and crash.
See attached image//Code on the component
try
BCSVGButton1.SVGNormalXML.Text:=Memo1.Text;
BCSVGButton1.RedrawBitmap;
except
Dialogs.MessageDlg('Icon','Unable to load the icon from SVG string.', mtError, [mbOk], 0, mbOk);
end;
Thanks a lot!