Getting started with the TOCControl property editor
Do the following to get started with the TOCControl property editor:
- Design a new ArcGIS Engine project in the Eclipse IDE using TOCControl (for more information, see How to build an application in Eclipse using visual beans). The following screen shot shows an example JFrame in design mode:
- Right-click the ESRI TOCControl and click Customize Java Bean; the Java Property Editor dialog box appears. The visual properties of the TOCControl, such as Border Style, Appearance, Mouse Pointer, Label Edit, and Layer Visibility can be set using the Java Property Editor. See the following screen shot:
- On the Java Property Editor dialog box, click the General tab. The following table explains the other areas that can be selected under the General tab:
Label
|
TOCControl methods
|
Description
|
Default value
|
Enabled
|
Indicates whether the TOCControl can respond to user generated events.
|
True
|
|
Arrow Key Intercept
|
Specifies interception of key strokes that are normally handled by the container. When intercepted, the OnKeyDown and OnKeyUp events will be called.
|
0
|
- Alternatively, properties, such as the BuddyControl can also be modified using the Properties window in the Eclipse IDE. Click the BuddyControl property on the Properties window and choose the appropriate buddy from the drop-down list under the Value column. The buddy can be a globe, scene, page layout, or a map bean. See the following screen shot:
The TOCControl properties can be modified using the Java Property Editor and Properties window in the Eclipse IDE.
See Also:
TOCControl classUsing the TOCControl
How to build an application in Eclipse using visual beans
Development licensing | Deployment licensing |
---|---|
Engine Developer Kit | Engine Runtime |
ArcView | |
ArcEditor | |
ArcInfo |