Book Image

ArcGIS By Example

By : Hussein Nasser
Book Image

ArcGIS By Example

By: Hussein Nasser

Overview of this book

Table of Contents (17 chapters)
ArcGIS By Example
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Highlighting restaurants


In this section, we will add a new button on our Bestaurants form to highlight a selected venue. To do that, we need to introduce the ArcGIS Display object that allows us to work with the screen display and manipulate it.

The ArcGIS Display object

We can use the ArcGIS Display object in order to draw objects on the screen. Unlike adding graphics to the map, the display drawing is temporary and is removed the moment you refresh.

Note

The ArcGIS Display object is an ArcObject class that allows interaction with the screen. It allows you to draw temporary symbols on the screen to simulate flashing or highlighting. To learn more about display object, refer to http://bit.ly/b04748_flashgeo.

Follow these steps to use the display object:

  1. If necessary, open Visual Studio Express in Administrator mode; we need to do this since our project is actually writing to the registry this time, so it needs administrator permissions. To do that, right-click on Visual Studio and click on Run...