用mapx控件写一个简单的gis程序出现问题.
源程序如下.
procedure TForm1.Map1MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
var
r:IMOrectangle;
begin
if Shift=[ssShift,ssLeft] then
begin
r:=Map1.Extent;
r.ScaleRectangle(0.5);
Map1.Extent:=r;
edit1.Text:=floattostr(r.Width);
edit2.Text:=floattostr(r.Height);
end
else
begin
map1.Extent:=map1.TrackRectangle;
end;
end;
其中map1.TrackRectangle在delphi6.0中出现问,但5.0没有问题.那位大虾知道原因.
源程序如下.
procedure TForm1.Map1MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
var
r:IMOrectangle;
begin
if Shift=[ssShift,ssLeft] then
begin
r:=Map1.Extent;
r.ScaleRectangle(0.5);
Map1.Extent:=r;
edit1.Text:=floattostr(r.Width);
edit2.Text:=floattostr(r.Height);
end
else
begin
map1.Extent:=map1.TrackRectangle;
end;
end;
其中map1.TrackRectangle在delphi6.0中出现问,但5.0没有问题.那位大虾知道原因.
解决方案 »
- 请问怎么在delphi的ActiveX控件中调用非delphi编写的ActiveX控件(ocx)?
- 新年快乐!鼠标事件,在线等待
- 大家帮我看看这个问题,编译老说array type required,谢谢!
- 怎样引用资源文件?
- 一个构件应用的简单问题。盼答。
- 谁有Excel数据导入的组件或模块
- 大家我看看有什么错,是关于杀广告窗体的?
- 老问题,给没有Canvas的控件加Canvas,100分
- 用ADO开发一较大型的C/S数据库应用,是直接用代码创建微软ADO对象模型效率高,还是用DELPHI的ADO组件效率高?请指教
- 急,急,急!!!!!!!!!!!!!
- 找象outlook里面相似功能的树型控件?
- DELPHI标准的DLL在WEB中能否调用?
有问题请发信息到我的E-mail:[email protected]
procedure TMap.Set_Extent(const Value: Rectangle);
begin
DefaultInterface.Extent := Value;
end;
在DefaultInterface.Extent := Value;高亮度显示。
begin
DefaultInterface.Extent := Value;
end;
是你自己写的过程吗,能不能把代码给我看看!