function WarningMsg(txt, sTitle, sContent: String): Boolean;
var
dlg: tAdvTaskDialogex ;
Begin
dlg := nil;
Try
dlg := tAdvTaskDialogex.Create(Application);
dlg.Icon := tiWarning;
dlg.Content := sContent;
dlg.DialogPosition := dpOwnerFormCenter;
dlg.ApplicationIsParent := True;
//If NonNativeDialog := NndAuto Dialog is not on the top of my application
dlg.NonNativeDialog := nndAlways;
dlg.AutoClose := False;
//Nb UiStyle is in mainForm AdvFormStyler
Dlg.UiStyle := tsOffice2019Gray;
dlg.AlwaysOnTop := true;
dlg.Instruction := txt;
dlg.Title := sTitle;
dlg.CommonButtons := [cbOk];
Finally
dlg.Execute;
dlg.Free;
result := true;
End;
End;