procedure TForm1.Timer1Timer(Sender: TObject);
var
i: Integer;
begin
ListBox1.Clear;
for i := 0 to Screen.FormCount - 1 do begin
if fsModal in Screen.Forms.FormState then
ListBox1.Items.Add(Screen.Forms.Name + ':ShowModal')
else
ListBox1.Items.Add(Screen.Forms.Name + ':Show');
end;
end;