Hi Bill
Please see the latest push to the Git repository. I have added: TImageEnView.LayersEditingLayer.
// When closing, check if user is editing a layer and prompt to save the changes
procedure Tfmain.FormClose(Sender: TObject; var Action: TCloseAction);
begin
if ImageEnView1.LayersEditingLayer > -1 then
if MessageDlg( 'Save changes to text?', mtConfirmation, [ mbYes,mbNo ], 0 ) = mrYes then
ImageEnView1.LayersCancelEditor( True );
end;
Nigel
Xequte Software
www.xequte.com
nigel@xequte.com