IDiseaseApplicationState
Commands
BeginGuard #
Snapshot the Application state then disable interactive toggles.
Signature:
Public Sub BeginGuard(ByVal app As Application, Optional ByVal disableStatusBar As Boolean = True)
Captures ScreenUpdating, DisplayAlerts, EnableEvents and Calculation, then disables them (Calculation set to manual) so a disease workflow can run silently. Re-entrant calls keep the originally captured state.
Parameters:
app: Application whose state is captured and guarded.disableStatusBar: Optional Boolean; when True the status bar is also hidden (default True).
Restore #
Restore the Application state captured by BeginGuard.
Signature:
Public Sub Restore()
Safe to call repeatedly: a Restore with nothing guarded is a no-op and never raises. ScreenUpdating is restored last so the UI repaints once.
Used in (7 file(s))
- DiseaseApplicationState.cls
- DiseaseExporter.cls
- DiseaseWorksheetManager.cls
- IDiseaseExporter.cls
- TestDiseaseApplicationState.bas
- TestDiseaseExporter.bas
- TestDiseaseIntegration.bas