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.
const
WMU_RegionDirty = WM_USER + 100; // WParam = region number.
type
TMyForm = class(TForm)
...
private
procedure WMURegionDirty(var M : TMessage); message WMU_RegionDirty;
...
end;
procedure TMyForm.WMURegionDirty(var M : TMessage);
var
Region : integer;
begin
Region := M.WParam;
//Do whatever you need here
end;
procedure DrawAndSignal(FormHandle : THandle; ....);
var
Region : integer;
begin
// Draw, identify the region and load the code in
// the var Region.
PostMessage(FormHandle, WMU_RegionDirty, Region, 0);
{You can use SendMessage too. Check the differences
between Send and Post in the SDK. Can't know what is
better for you here.}
end;