📄 finddlph.txt
字号:
Note: This sample application and corresponding sample code is provided
for example purposes only. It has not undergone rigorous testing
and as such should not be shipped as part of a final application
without extensive testing on the part of the organization releasing
the end-user product.
This Delphi 4.0 example uses the MapX Ver 4.0 OCX Control. The main goal
of this example is to show how to use the new Find option that was added
to the MapX Ver 2 OCX.
Files:
FindDialog.dfm
FindDialog.pas
Layer2Dataset.dfm
Layer2Dataset.pas
MainUnit.dfm
MainUnit.pas
FindExample.dpr
FindExample.res
Overview:
There are 3 Menu Item choices and the Map Control.
Under the File menu option is the "exit" option to end the program.
Tools Menu option: The first three zoomIn, zoomOut, and pan all set the
active tool to be the respective MapX builtin tool.
Option Menu option: The first is Find, which displays the find dialog form.
This form contains allows you to set up the find options also perform the find.
There are six combo boxes that have choices for the different find options.
Two of the six contain the layers that are in the map.
Combo Boxes of Find Dialog:
Find Layer - One is used to specify the layer the find will be performed on.
This box must contain a value.
Refine Layer - Optional Find value and combo box only available when
"use refining info" checkbox is checked. If refine layer is specified,
then refine dataset and refine field combo's will be disabled.
Find Dataset - Optional Find value. If specified, must be the same named
dataset as the name of the specified Find Layer.
Find Field - Only filled after Find dataset is chosen. If Find Dataset is
used, then the default field is the first field in the dataset.
Refine Dataset - Optional Find Value. Only available is Refine Layer is
"NONE" and "use refining info" checkbox is checked.
Refine Field - Only filled after Refine dataset is chosen. If Refine
Dataset is used, then the default field is the first field in the dataset.
Check Boxes of Find Dialog:
Abbreviation - whether or not Find uses abbreviations.
Closest Address - whether or not Find uses Closest Address.
Use refining info - whether or not Find uses Refine data
Other Boundary - whether or not Find uses Other Boundary than that specified.
The rest of the find dialog has two text boxes that allow the user to
specify what is going to be found. This info is based on the Find layer
and refine layer that are specified. Also there is a Find Button that
will perform the find and a close button that will close the dialog.
Another text box is used to specify at what level the map should be zoomed
at when the map is re-centered and zoomed after a valid find.
The Second is "Layer Control" which displays the Layer Control Stock MapX
Dialog. The third is "Make Layer Datset" which displays a form with a list
box, Make dataset button, and close button. A layer can be turned into a
dataset by double clicking on layer or by selecting a layer and clicking
Make dataset button. Close will close the dialog.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -