Customizing the Map Navigator for use in an ArcPad App
Your manager has asked if there is some way to remove the traditional toolbar but retain only the two tools in the App. To achieve this, you decide to create a custom ArcPad configuration file that will include a customized Map Navigator which has the two additional tools.
Steps:
- Open Windows Explorer.
- Browse to the Elmore sample data and create a new folder called Config_Reviewer.
- Open ArcPad Studio.
- Create a new configuration file.
- Save the configuration file into the folder Config_Reviewer and name it ArcPad.apx.
- Switch to the tree view.
- Copy the following text and paste it over the top of the all the text displayed in ArcPad Studio.
<ArcPad> <CONFIG> <TOOLBARS align="top"> <MAPNAVIGATOR style="0" horzalignment="left" tintcolor="0,20,40" backgroundcolor="SteelBlue" transparency="0.0" buttonsize="0"> <TOOLBUTTON command="modepan" useonce="true"/> <TOOLBUTTON command="modezoomin" useonce="true"/> <TOOLBUTTON command="modezoomout" useonce="true" flip="true"/> <TOOLBUTTON command="zoomfullextent" useonce="true"/> <TOOLBUTTON command="modeidentify" useonce="true"/> <TOOLBUTTON command="exit" useonce="true"/> </MAPNAVIGATOR> </TOOLBARS> </CONFIG> </ArcPad>
- Save the configuration and switch back to form view.
- Close ArcPad Studio and open the Elmore.apm in ArcPad.
- On the Quick Access menu, select Design Mode.
- Click the Create App Shortcut button.
- Name the App Reviewer and choose the Extra icon.
- Choose the Options tab and confirm that the Load applets from preference paths option is checked and the default preferences will be used (that is, that Specify preferences is unchecked).
- Choose the Configuration tab and ensure the Load startup configuration and toolbars option is checked.
- Choose to Specify startup configuration option and use the browse button to navigate to the new ArcPad.apx that you created in the Config_Reviewer folder.
- Click OK.
A prompt will show that the Reviewer App has been created. If an App called Reviewer already exists (for example, if you have followed the tutorial "Creating a new applet toolbar for use in an ArcPad App"), the previous App will be overwritten.
- Close ArcPad.
- From the ArcPad Apps folder on the Start menu, select the Reviewer App.
Notice that there is no traditional toolbar, only the Map Navigator which displays the additional two tools.
Notice that the Map Navigator now has two extra tools: Identify and Exit.
9/23/2019