📄 readme.rtf
字号:
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 VB example uses the MapX OCX Control. The main goal of this example is to show the use of the User Draw Layer capabilities in MapX. The program shows how to use drawing functions in conjunction with MapX functions to place a scale bar on the map.
This scale bar is drawn into the UserDraw layer, which is always the top layer. The values on the scale bar will change as the zoom is changed.
Files:
DrawDef.bas
ScaleBar.frm
ScaleBar.vbp
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 default tool.
Layers: There is one menu item under layers. The choice is Add userdraw layer. This will add a user draw layer to the map, which will in turn, fire the DrawUserLayer event. The code for this event then draws a scale Bar and labels it using MapX distance calculations. After this is chosen, the menu item will then change to Remove User Draw layer.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -