WebToast with 2 items, one with AutoHide set to true, a WebButton which calls WebToast[0].Show.
The first call is ok, the second shows item[1], the third call causes the error.
Maybe manually closing the window is of relevance, too.
Any idea?
WebToast with 2 items, one with AutoHide set to true, a WebButton which calls WebToast[0].Show.
The first call is ok, the second shows item[1], the third call causes the error.
Maybe manually closing the window is of relevance, too.
Any idea?
There must be detail missing as I cannot reproduce this.
Sent you a mail.
This is normal & expected behavior.
When you close a toast, it gets deleted from the collection, hence, after 2 deletes, you get an error.
You can visualize that items get deleted when closed here:
procedure TForm1.btnClick(Sender: TObject);
begin
console.log(webtoast.Items.Count);
WebToast.Items[0].Show;
end;
This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.