I have a window with two custom classes… [container controls with embedded canvas]
each one needs to detect if its contents change on Window Activate… (another Topic, and I have that part working)
but if it does detect a change, I need to ask the user if they want to reload the data.
It displays the dialog, and regardless of which button (Yes/No) I click… the dialog dims slightly and the app freezes
as a test I put the below in the Window Activate, and then the app crashes when I click a button…
I have used this many times… but this is first time since Mojave (not sure who to blame )
Dim d As New MessageDialog // declare the MessageDialog object
Dim b As MessageDialogButton // for handling the result
d.Icon = MessageDialog.GraphicCaution // display warning icon
d.ActionButton.Caption = "Yes"
d.CancelButton.Caption = "No"
d.CancelButton.Visible = True // show the Cancel button
d.AlternateActionButton.Visible = False // show the "Don't Save" button
d.Message =filePATH.NativePath
d.Explanation = "has been changed by another application."+EndOfLine+"Do you want to reload it?"
debug "AAAA"
b = d.ShowModal // display the dialog
debug "BBBB" <------- IT NEVER GETS HERE.... the app just seems to freeze
Select Case b // determine which button was pressed.
...... more stuff