?? 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 + -