⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 get.~pas

📁 mapgis二次开发delphi实例Del_Get
💻 ~PAS
字号:
unit Get;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, ExtCtrls,comobj,ChildView,MAPGISBASCOM1Lib_TLB;

type
  TMainForm = class(TForm)
    Panel1: TPanel;
    openfile: TButton;
    procedure openfileClick(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  MainForm: TMainForm;

implementation

{$R *.dfm}

procedure TMainForm.openfileClick(Sender: TObject);
var
pntai:Ipntarea;
mychild:TMDIChild;
begin
      pntai:=CreateComObject(class_pntarea) as Ipntarea;
      if pntai.Load('','','','') then
         begin
         mychild:= TMDIChild.Create(application);
         mychild.Hide;
         mychild.Caption:=pntai.Name;
         mychild.ai:= pntai;
         mychild.aitype := gispnt;
         mychild.EditView.SetWinMapRange(pntai.rect.xmin,pntai.rect.ymin,
                        pntai.rect.xmax,pntai.rect.ymax);
         mychild.ShowModal;
         end
end;

end.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -