Hello,
If the Display does not have the modified flag set (display name will have a * with it) then ProcessBook won't prompt to save the display. Programmatically you can set the modified property, i.e. ThisDisplay.Modified = False (or True, which ever way you want to configure it).
If you want to prompt even if there are no changes to a display (not sure why you would want this) then you could add the following code to the "Display_BeforeClose" and you will be prompted to save.
Code:
Private Sub Display_BeforeClose(bCancelDefault As Boolean)
ThisDisplay.Modified = True
End Sub
If you wanted to always save the display then you could:
Code:
Private Sub Display_BeforeClose(bCancelDefault As Boolean)
If ThisDisplay.Modified Then ThisDisplay.Save
End Sub
Principal Consultant
Real-Time Data Management @ Wipro Technologies