Please add following lines of code in TaskDialogIndirect-Function
if Assigned(Screen.ActiveForm) then
begin
if Screen.ActiveForm.FormStyle = fsStayOnTop then
LTaskDialog.FormStyle := fsStayOnTop;
end;
Without this a MessageDialog is behind a StayOnTop-Formular
Comments