Customizing the Graphical User Interface-Interpolation of a Point Theme
Arc view GIS meets a wide variety of GIS needs. But you might still need to customize it. And you can, with Arc view’s programming language Avenue. You can use Avenue software to customize the standard graphic user interface (GUI) that comes with Arc view. For instance, you can reorganize the controls (menus, button, tools, and pop-ups), change text or icons and add or remove choices. With Avenue you can also create new function for a specific application. For example, you can combine a series of steps you frequently perform and execute them with a single click of a button. You can even use Avenue to develop a complete application that has its own GUI.
Avenue gives you an easy-to-use framework for customizing controls and creating new functions. You use the customize dialog box to modify controls and the Script Editor to write Avenue programs, called scripts. Your scripts contain the code that executes a new function. By using controls and scripts together, you build a new Arc View GUI.
How Avenue and Arc View GIS work together?
Avenue is an object-oriented programming language. An object is an element, such as a view, them, button, or symbol, that you work with in Arc View. Objects with common characteristics belong to the same class. Each object is associated with a set of actions or requests. For example, request for a layout object include opening, closing and printing. A marker symbol object has a different set of requests, such as setting marker size and color. If you can identify object and their associated request, you can write Avenue scripts.
Avenue and Arc View use the same interface; in fact, all menus, buttons, tools, and pop-ups (collectively called “ control”) in the Arc View interface run Avenue scripts. When you add a new view, you’re actually running the Avenue script “View. Add” To change the way a control works; you modify the script it runs.
You create an Avenue scripts by opening a script document window in Arc View, then using the scripts Editor to write, compile, run, and debug it. In this assignment, you will see how Avenue might be used to customize the Arc View interface for a specific application. You won’t be able to perform steps yourself, due to the script Editor is not available in the sample version of Arc View that accompanies this book; however, the finished project is provided so you can run the application.
We create an Arc View project containing a number of different views, one for kriging, one for tread, and so forth. We use the standard Arc View interface to create the project components, so we have full processing capabilities. Hiding the table of Contents in each view so that it can’t be changed. So in this cause we decide to have only four buttons on the new View interface: One..
We’d like to create a simple Avenue script that finds a view, and then makes it active, bring it of front of the screen. From the Arc View Project window, we open a new Script window and types in the script.
Understanding Avenue Syntax: Scripts contain action lines (perform and action) and comment lines (explain what the scripts is doing). The format of an action line is: Object. Request. Comment lines begin with an apostrophe. We use Scripts Properties from the script menu to name the script and enter a comment describing what it doses.
After wrote script compiles each script using the Compile button on the Script button bar. Then runs each script using the Run button to the make sure it works. We verify that each view displays at the front of the screen. When we run the “HelpBox” script, a help message box displays.
How we remove all the existing controls and add the button that we like and also can link them to the script that we written?