Refresh Toggle


Occassionally there are times when it is quicker to turn layers on and off without having the display refresh with each change (particularly when you have large ArcSDE layers). This tool allows the user to toggle the refresh on and off, so they can suspend drawing when they need to.

How to use:
  1. Browse and select the refreshtoggle.dll using the 'Add From File' button on the customization dialog.
  2. In the Developer Samples category, find the Suspend Drawing tool and place it on a toolbar.
  3. Click the tool to toggle the screen refresh off, update your displays, then click the tool again to enable the refresh.


Difficulty: Intermediate

Visual Basic
File Description
RefreshTogglePrj.vbp The Visual Basic project for this command.
frmResources.frm Contains the bitmaps used for the command button.
SuspendDraw.cls Class for toggling the screen refresh on and off.

Key CoClasses: Map
Key Interfaces: IMap
Key Members: IMap::DelayDrawing