Getting started with the PageLayoutControl property editor
Do the following to get started with the PageLayoutControl property editor:
- Design a new ArcGIS Engine project in the Eclipse integrated development environment (IDE) using PageLayoutControl (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 PageLayoutControl and click Customize Java Bean; the Java Property Editor dialog box appears. The visual properties of the PageLayoutControl, such as Border Style, Appearance, BackGround Color, and Mouse Pointer 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:
Labels
|
PageLayoutControl methods
|
Description
|
Default value
|
Enabled
|
Indicates whether the PageLayoutControl can respond to user generated events.
|
True
|
|
Enable OLD Drop Event
|
Indicates if the PageLayoutControl fires events when data is dragged over the control's window.
|
False
|
|
Arrow Key Intercept
|
A property that specifies interception of key strokes that are normally handled by the container. When intercepted, the OnKeyDown and OnKeyUp events will be called.
|
0
|
|
Map Document
|
The file name of the last map document loaded into the control.
|
None
|
- Do the following to set the Map Document Property on the Java Property Editor dialog box for the PageLayoutControl:
- Click the Open folder icon; the Open dialog box appears.
- On the Open dialog box, browse to the folder containing the map document.
- Select the applicable map document, then click Open; the file path of your selected document shows in the Map Document text field.
Alternatively, the properties of the PageLayoutControl can also be modified using the Properties window in the Eclipse IDE. See the following screen shot:
The PageLayoutControl property editor avoids the redundant code that a developer may need to write multiple times. It presents a convenient interface for developers to initialize a simple ArcGIS Engine application.
See Also:
PageLayoutControlIPageLayoutControl
How to build an application in Eclipse using visual beans
Using PageLayoutControl
Development licensing | Deployment licensing |
---|---|
Engine Developer Kit | Engine Runtime |
ArcView | |
ArcEditor | |
ArcInfo |