Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
function TForm1.GetFormFromHandle(h: THandle): TForm;
var
c: integer;
f: TForm;
begin
result := nil;
for c := 0 to Application.ComponentCount - 1 do
if Application.Components[c] is TForm then begin
f := Application.Components[c] as TForm;
if f.Handle = h then begin
result := f;
break;
end;
end;
end;