Window.Modified

From Xojo Documentation

Property (As Boolean )
aWindow.Changed = newBooleanValue
or
BooleanValue = aWindow.Changed

New in 2019r2

Supported for all project types and targets.

Gets or sets a flag that indicates whether the window has been changed. The ContentsChanged event fires when the value of this property has changed. On macOS, the window's Close button displays a dot when Modified is True.

Sample Code

This example is in the ContentsChanged event of the control.

If Me.Changed Then
MessageBox("The contents have changed!")
Else
MessageBox("The ContentsChanged event has not fired.")
End If