"The popup is displayed in a picture window, and I use the feedback from that window, Visible-change, not the picture.
Select the window that this popup uses and open the property.
“Events” --> “Property Topics” --> “Miscellaneous” --> “Display” --> “Change”
VBS:
Sub Visible_OnPropertyChanged(ByVal Item, ByVal value)
'Reset internal tagg and Caption.
If True <> value Then
HMIRuntime.Tags("@local:: NameOffTag").Write "empty"
Item.CaptionText = ""
End If
)"