help!!! delphi+mapx 使用自定义工具在生成activex后,在web中调用报错!
请教各位高手:
我使用 delphi6.0+mapx4.5 ,使用自定义工具来选择一个点。。编译运行无误。。
将此作成activexform后,在网页中调用时,报错。。"invailid tool specified,the tool mumber is invalid or doesn't exist,or the tool type or cursor is invailid"
报错的语句为:
Map1.CurrentTool :=SEARCH_POINT_TOOL;
可是我将此语句改为
Map1.CurrentTool:=miSelectTool; 便无错
创建自定义工具的语句为:
Map1.CreateCustomTool(SEARCH_POINT_TOOL, miToolTypePoint, miDefaultCursor);
其中:SEARCH_POINT_TOOL 声明为:
Const SEARCH_POINT_TOOL = $00000001;
那位高手能明其究。。望不吝赐教。。谢了。。。