Title: Customizing ArcView 3'2
1Customizing ArcView 3.2
1. Double click on the gray area right of the
buttons, or from the Project menu click
Customize ArcView displays the Customize
dialog The action for Click for the View menu
Add Themecommand is View.Add
2Learn about available commands
- Most menu commands are also available in Avenue
code - Avenue is the special programming language for
ArcView
1. From the Window menu, select the project
file 2. From the left-hand-side of the project
window, select Scripts 3. Click on the button
New
ArcView creates a new script called Script1 and
opens a new script window for it
3Examine a system command
- From the Script menu, select Load System
Script. This displays a dialog that lists all
available system scripts - From the Script Manager dialog, select the
View.Add script, then click on the OK button
4Avenue code for the View.Add system script
appears in the window
5Compile and run your script
- From the Script window, select Step (F8) or
Run (F5) - Step stops after each section of the code
Run continues
- From the Script window, first select Compile
- This makes sure the code is valid
6The new script adds a theme
7Add a new menu
- Add a new menu called My Custom Commands
- From the Customize dialog, select Menus and click
New - Double-click on Label to enter your menu name
8Add a new menu item
- Click on New Item
- Double-click on Label and add your menu item
name - Double-click on Click and from the Script
Manager, add add an existing script, such as
View.Add
9Use your new menu item
- Now you can call your own routines from your own
menu names
10Add custom buttons
- Launch the Customize dialog (double-click in the
gray area next to the buttons) - Select the Category Buttons
- Click New
- The new button appears in its position on the
button bar
11Change the button icon
- Double-click on the Icon section
- The Icon Manager dialog appears
- Choose the icon for your new button
- Click OK
- The button is updated
12Associate this button with a command
- Double-click on Click
- From the Script Manager, select the command
associated with this button - Test it by clicking on your new button