亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? mapformimpl1.pas

?? 此代碼是關(guān)于mapgis的在
?? PAS
字號(hào):
unit MapFormImpl1;

{$WARN SYMBOL_PLATFORM OFF}

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  ActiveX, AxCtrls, MapFormCOM_TLB, StdVcl, DLog, StdCtrls;

const
  {$I CompConstants.inc}
  
type
  TMapForm = class(TActiveForm, IMapForm)
  private
    { Private declarations }
    FEvents: IMapFormEvents;
    procedure ActivateEvent(Sender: TObject);
    procedure ClickEvent(Sender: TObject);
    procedure CreateEvent(Sender: TObject);
    procedure DblClickEvent(Sender: TObject);
    procedure DeactivateEvent(Sender: TObject);
    procedure DestroyEvent(Sender: TObject);
    procedure KeyPressEvent(Sender: TObject; var Key: Char);
    procedure PaintEvent(Sender: TObject);
    function CreateInplaceReportDesigner:TForm;
  protected
    { Protected declarations }
    procedure DoDestroy; override;
    procedure DefinePropertyPages(DefinePropertyPage: TDefinePropertyPage); override;
    procedure EventSinkChanged(const EventSink: IUnknown); override;
    function Get_Active: WordBool; safecall;
    function Get_AlignDisabled: WordBool; safecall;
    function Get_AutoScroll: WordBool; safecall;
    function Get_AutoSize: WordBool; safecall;
    function Get_AxBorderStyle: TxActiveFormBorderStyle; safecall;
    function Get_Caption: WideString; safecall;
    function Get_Color: OLE_COLOR; safecall;
    function Get_DoubleBuffered: WordBool; safecall;
    function Get_DropTarget: WordBool; safecall;
    function Get_Enabled: WordBool; safecall;
    function Get_Font: IFontDisp; safecall;
    function Get_HelpFile: WideString; safecall;
    function Get_KeyPreview: WordBool; safecall;
    function Get_PixelsPerInch: Integer; safecall;
    function Get_PrintScale: TxPrintScale; safecall;
    function Get_Scaled: WordBool; safecall;
    function Get_ScreenSnap: WordBool; safecall;
    function Get_SnapBuffer: Integer; safecall;
    function Get_Visible: WordBool; safecall;
    function Get_VisibleDockClientCount: Integer; safecall;
    procedure _Set_Font(var Value: IFontDisp); safecall;
    procedure Set_AutoScroll(Value: WordBool); safecall;
    procedure Set_AutoSize(Value: WordBool); safecall;
    procedure Set_AxBorderStyle(Value: TxActiveFormBorderStyle); safecall;
    procedure Set_Caption(const Value: WideString); safecall;
    procedure Set_Color(Value: OLE_COLOR); safecall;
    procedure Set_DoubleBuffered(Value: WordBool); safecall;
    procedure Set_DropTarget(Value: WordBool); safecall;
    procedure Set_Enabled(Value: WordBool); safecall;
    procedure Set_Font(const Value: IFontDisp); safecall;
    procedure Set_HelpFile(const Value: WideString); safecall;
    procedure Set_KeyPreview(Value: WordBool); safecall;
    procedure Set_PixelsPerInch(Value: Integer); safecall;
    procedure Set_PrintScale(Value: TxPrintScale); safecall;
    procedure Set_Scaled(Value: WordBool); safecall;
    procedure Set_ScreenSnap(Value: WordBool); safecall;
    procedure Set_SnapBuffer(Value: Integer); safecall;
    procedure Set_Visible(Value: WordBool); safecall;
    procedure SetupParent(AHandle, pAppId: Integer); safecall;
    procedure SubStationWarning(SubStationID: Integer;
      const WarningMessage: WideString; BoundSeed: Double); safecall;
    procedure LoadMapInstance(const Path: WideString); safecall;
    procedure UnLoadMapInstance; safecall;
    procedure Connect(const UserName, Password: WideString); safecall;
    function ConnectToDataBase(const Server, UserName,
      Password: WideString): WordBool; safecall;
    procedure GoToSubStation(SubStationID: Integer; BoundSeed: Double);
      safecall;
    procedure SetCurrentUnit(UnitID: Integer); safecall;
    procedure SetGISPageVisible(Index: Integer; Visible: WordBool); safecall;
  public
    { Public declarations }
    procedure Initialize; override;
  end;

implementation

uses ComObj, ComServ, UnitMainForm, UnitEagleEye, UnitNavigation,
  UnitMainLinkObjects, UnitDMLinks, UnitProject, UnitLayerControl,
  MainFormInstance, UnitQCGISProject, UnitGISShell, UnitAppTypes,
  UnitShellAPIs, WinFileSystem, AppDebug, UnitAboutForm;
  
{$R *.DFM}

{ TMapForm }

procedure TMapForm.DefinePropertyPages(DefinePropertyPage: TDefinePropertyPage);
begin
  { Define property pages here.  Property pages are defined by calling
    DefinePropertyPage with the class id of the page.  For example,
      DefinePropertyPage(Class_MapFormPage); }
end;

procedure TMapForm.EventSinkChanged(const EventSink: IUnknown);
begin
  FEvents := EventSink as IMapFormEvents;
  inherited EventSinkChanged(EventSink);
end;

procedure TMapForm.Initialize;
begin
  inherited Initialize;
  OnActivate := ActivateEvent;
  OnClick := ClickEvent;
  OnCreate := CreateEvent;
  OnDblClick := DblClickEvent;
  OnDeactivate := DeactivateEvent;
  OnDestroy := DestroyEvent;
  OnKeyPress := KeyPressEvent;
  OnPaint := PaintEvent;
end;

function TMapForm.Get_Active: WordBool;
begin
  Result := Active;
end;

function TMapForm.Get_AlignDisabled: WordBool;
begin
  Result := AlignDisabled;
end;

function TMapForm.Get_AutoScroll: WordBool;
begin
  Result := AutoScroll;
end;

function TMapForm.Get_AutoSize: WordBool;
begin
  Result := AutoSize;
end;

function TMapForm.Get_AxBorderStyle: TxActiveFormBorderStyle;
begin
  Result := Ord(AxBorderStyle);
end;

function TMapForm.Get_Caption: WideString;
begin
  Result := WideString(Caption);
end;

function TMapForm.Get_Color: OLE_COLOR;
begin
  Result := OLE_COLOR(Color);
end;

function TMapForm.Get_DoubleBuffered: WordBool;
begin
  Result := DoubleBuffered;
end;

function TMapForm.Get_DropTarget: WordBool;
begin
  Result := DropTarget;
end;

function TMapForm.Get_Enabled: WordBool;
begin
  Result := Enabled;
end;

function TMapForm.Get_Font: IFontDisp;
begin
  GetOleFont(Font, Result);
end;

function TMapForm.Get_HelpFile: WideString;
begin
  Result := WideString(HelpFile);
end;

function TMapForm.Get_KeyPreview: WordBool;
begin
  Result := KeyPreview;
end;

function TMapForm.Get_PixelsPerInch: Integer;
begin
  Result := PixelsPerInch;
end;

function TMapForm.Get_PrintScale: TxPrintScale;
begin
  Result := Ord(PrintScale);
end;

function TMapForm.Get_Scaled: WordBool;
begin
  Result := Scaled;
end;

function TMapForm.Get_ScreenSnap: WordBool;
begin
  Result := ScreenSnap;
end;

function TMapForm.Get_SnapBuffer: Integer;
begin
  Result := SnapBuffer;
end;

function TMapForm.Get_Visible: WordBool;
begin
  Result := Visible;
end;

function TMapForm.Get_VisibleDockClientCount: Integer;
begin
  Result := VisibleDockClientCount;
end;

procedure TMapForm._Set_Font(var Value: IFontDisp);
begin
  SetOleFont(Font, Value);
end;

procedure TMapForm.ActivateEvent(Sender: TObject);
begin
  if FEvents <> nil then FEvents.OnActivate;
end;

procedure TMapForm.ClickEvent(Sender: TObject);
begin
  if FEvents <> nil then FEvents.OnClick;
end;

procedure TMapForm.CreateEvent(Sender: TObject);
begin
  if FEvents <> nil then FEvents.OnCreate;
end;

procedure TMapForm.DblClickEvent(Sender: TObject);
begin
  if FEvents <> nil then FEvents.OnDblClick;
end;

procedure TMapForm.DeactivateEvent(Sender: TObject);
begin
  if FEvents <> nil then FEvents.OnDeactivate;
end;

procedure TMapForm.DestroyEvent(Sender: TObject);
begin
  if FEvents <> nil then FEvents.OnDestroy;
end;

procedure TMapForm.KeyPressEvent(Sender: TObject; var Key: Char);
var
  TempKey: Smallint;
begin
  TempKey := Smallint(Key);
  if FEvents <> nil then FEvents.OnKeyPress(TempKey);
  Key := Char(TempKey);
end;

procedure TMapForm.PaintEvent(Sender: TObject);
begin
  if FEvents <> nil then FEvents.OnPaint;
end;

procedure TMapForm.Set_AutoScroll(Value: WordBool);
begin
  AutoScroll := Value;
end;

procedure TMapForm.Set_AutoSize(Value: WordBool);
begin
  AutoSize := Value;
end;

procedure TMapForm.Set_AxBorderStyle(Value: TxActiveFormBorderStyle);
begin
  AxBorderStyle := TActiveFormBorderStyle(Value);
end;

procedure TMapForm.Set_Caption(const Value: WideString);
begin
  Caption := TCaption(Value);
end;

procedure TMapForm.Set_Color(Value: OLE_COLOR);
begin
  Color := TColor(Value);
end;

procedure TMapForm.Set_DoubleBuffered(Value: WordBool);
begin
  DoubleBuffered := Value;
end;

procedure TMapForm.Set_DropTarget(Value: WordBool);
begin
  DropTarget := Value;
end;

procedure TMapForm.Set_Enabled(Value: WordBool);
begin
  Enabled := Value;
end;

procedure TMapForm.Set_Font(const Value: IFontDisp);
begin
  SetOleFont(Font, Value);
end;

procedure TMapForm.Set_HelpFile(const Value: WideString);
begin
  HelpFile := String(Value);
end;

procedure TMapForm.Set_KeyPreview(Value: WordBool);
begin
  KeyPreview := Value;
end;

procedure TMapForm.Set_PixelsPerInch(Value: Integer);
begin
  PixelsPerInch := Value;
end;

procedure TMapForm.Set_PrintScale(Value: TxPrintScale);
begin
  PrintScale := TPrintScale(Value);
end;

procedure TMapForm.Set_Scaled(Value: WordBool);
begin
  Scaled := Value;
end;

procedure TMapForm.Set_ScreenSnap(Value: WordBool);
begin
  ScreenSnap := Value;
end;

procedure TMapForm.Set_SnapBuffer(Value: Integer);
begin
  SnapBuffer := Value;
end;

procedure TMapForm.Set_Visible(Value: WordBool);
begin
  Visible := Value;
end;

procedure TMapForm.DoDestroy;
begin
  UnLoadMapInstance;
  inherited DoDestroy;
end;

function TMapForm.CreateInplaceReportDesigner: TForm;
begin
  if Form_Main<>nil then
  begin
    Result:=Form_Main;
    Exit;
  end;
  //--------------------------------------------------------------------------//
  //取消遠(yuǎn)東模式//
  SysLocale.FarEast:=False;
  //--------------------------------------------------------------------------//
  OleInitialize(nil);
  CoInitialize(nil);
  //--------------------------------------------------------------------------//
  if Form_Main=nil then
  begin
    Form_Main:=TForm_Main.Create(nil);
    Form_Main.BorderStyle:=bsNone;
    Form_Main.Parent:=Self;
  end;
  {創(chuàng)建連接數(shù)據(jù)模塊}
  if dm_Links=nil then
    dm_Links:=Tdm_Links.Create(nil);
  {創(chuàng)建主連接數(shù)據(jù)模塊,里面有所有設(shè)計(jì)期間定義的數(shù)據(jù)存取組件。但發(fā)現(xiàn)一個(gè)問(wèn)題:
  在非EXE類程序中,創(chuàng)建主連接數(shù)據(jù)模塊后,里面的所有數(shù)據(jù)存取組件在設(shè)計(jì)期間設(shè)置
  的Connection屬性值,都變成了nil。為了重新保持設(shè)計(jì)期間的Connection屬性值,在
  后面連接數(shù)據(jù)庫(kù)后,調(diào)用函數(shù)ReLinkConnection重新設(shè)置dm_MainLinkObjects中數(shù)據(jù)
  存取組件的Connection屬性值}
  if dm_MainLinkObjects=nil then
    dm_MainLinkObjects:=Tdm_MainLinkObjects.Create(nil);
  if FrmEagleEye=nil then
    FrmEagleEye:=TFrmEagleEye.Create(nil);
  if FrmNavigation=nil then
    FrmNavigation:=TFrmNavigation.Create(nil);
  if Form_About=nil then
    Form_About:=TForm_About.Create(nil);   
  //--------------------------------------------------------------------------//
  Result:=Form_Main;
  //--------------------------------------------------------------------------//
end;

procedure TMapForm.SetupParent(AHandle, pAppId: Integer);
begin
  CallerHandle:=AHandle;
  ParentAppId:=pAppId;
  MyGIS.LoadParentInstanceModules;
end;

procedure TMapForm.SubStationWarning(SubStationID: Integer;
  const WarningMessage: WideString; BoundSeed: Double);
begin
  TqcGISProject(MyGIS).SubStationWarning(SubStationID, WarningMessage, BoundSeed);
end;

procedure TMapForm.LoadMapInstance(const Path: WideString);
var
  AForm:TForm;
begin
  DebugLog.Add('Load\UnLoad', ['LoadMapInstance']);
  //--------------------------------------------------------------------------//
  CallerHandle:=0;
  AppType:=atWeb;
  AppPath:=Path;
  if (AppPath='')or(not DirectoryExists(AppPath)) then
    AppPath:=ForceCreateWebMapPath;
  AppPath:=CheckPath(AppPath);
  DebugLog.Add('Load\UnLoad', ['AppPath='+AppPath]);
  //--------------------------------------------------------------------------//
  AForm:=CreateInplaceReportDesigner;
  if AForm<>nil then
  begin
    AForm.Align:=alClient;
    AForm.Show;
  end;
  DebugLog.Add('Load\UnLoad', ['Main Form Show']);
  //--------------------------------------------------------------------------//
end;

procedure TMapForm.UnLoadMapInstance;
begin
  DebugLog.Add('Load\UnLoad', ['Begin UnLoadMapInstance']);
  if Form_Main=nil then
  begin
    DebugLog.Add('Load\UnLoad', ['Already UnLoad']);
    DebugLog.Add('Load\UnLoad', ['Complete UnLoadMapInstance']);
    Exit;
  end;

  OleUninitialize;
  CoUninitialize;
  DebugLog.Add('Load\UnLoad', ['OleUninitialize']);

  if FrmEagleEye<>nil then
  begin
    FreeAndNil(FrmEagleEye);
    FrmEagleEye:=nil;
  end;
  DebugLog.Add('Load\UnLoad', ['UnLoad FrmEagleEye']);
  if FrmNavigation<>nil then
  begin
    FreeAndNil(FrmNavigation);
    FrmNavigation:=nil;
  end;
  DebugLog.Add('Load\UnLoad', ['UnLoad FrmNavigation']);
  if Form_Main<>nil then
  begin
    FreeAndNil(Form_Main);
    Form_Main:=nil;
  end;
  DebugLog.Add('Load\UnLoad', ['UnLoad Form_Main']);
  if Form_About<>nil then
  begin
    FreeAndNil(Form_About);
    Form_About:=nil;
  end;
  DebugLog.Add('Load\UnLoad', ['UnLoad Form_About']);
  if dm_MainLinkObjects<>nil then
  begin
    dm_MainLinkObjects.Free;
    dm_MainLinkObjects:=nil;
  end;
  DebugLog.Add('Load\UnLoad', ['UnLoad dm_MainLinkObjects']);
  if dm_Links<>nil then
  begin
    dm_Links.Free;
    dm_Links:=nil;
  end;
  DebugLog.Add('Load\UnLoad', ['UnLoad dm_Links']);
  DebugLog.Add('Load\UnLoad', ['Complete UnLoadMapInstance']);
end;

procedure TMapForm.Connect(const UserName, Password: WideString);
begin
  TqcGISProject(MyGIS).Connect(UserName, Password);
end;

function TMapForm.ConnectToDataBase(const Server, UserName,
  Password: WideString): WordBool;
begin
  Result:=TqcGISProject(MyGIS).ConnectToDataBase(Server, UserName, Password);
end;

procedure TMapForm.GoToSubStation(SubStationID: Integer;
  BoundSeed: Double);
begin
  TqcGISProject(MyGIS).GoToSubStation(SubStationID, BoundSeed);
end;

procedure TMapForm.SetCurrentUnit(UnitID: Integer);
begin
  TqcGISProject(MyGIS).SetCurrentUnit(UnitID);
end;

procedure TMapForm.SetGISPageVisible(Index: Integer; Visible: WordBool);
begin
  TqcGISProject(MyGIS).SetGISPageVisible(Index, Visible);
end;

initialization
  TActiveFormFactory.Create(
    ComServer,
    TActiveFormControl,
    TMapForm,
    Class_MapForm,
    1,
    '',
    OLEMISC_SIMPLEFRAME or OLEMISC_ACTSLIKELABEL,
    tmApartment);
  DebugLog.Add('Load\UnLoad', ['Active Form Created']);

finalization
  if DebugLog<>nil then
    DebugLog.Add('Load\UnLoad', ['Active Form Destroy']);

end.

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美亚洲免费在线一区| 国产欧美久久久精品影院| 欧美videos大乳护士334| 国产欧美精品一区二区三区四区| 亚洲人妖av一区二区| 日韩av在线免费观看不卡| 丁香天五香天堂综合| 欧美日韩精品欧美日韩精品| 久久女同互慰一区二区三区| 日本午夜一区二区| 在线一区二区视频| 国产精品国产三级国产普通话99| 蜜桃av一区二区三区| 欧美性大战久久久久久久| 中文字幕免费在线观看视频一区| 精品一区二区三区在线视频| 日韩欧美中文字幕一区| 亚洲综合无码一区二区| 不卡的av电影| 国产精品美女久久久久久2018| 国内一区二区视频| 日韩精品一区在线| 日本vs亚洲vs韩国一区三区二区 | 成人黄色免费短视频| 亚洲精品在线电影| 麻豆freexxxx性91精品| 欧美一区二区三区四区高清| 午夜av区久久| 欧美精品123区| 日本欧美在线观看| 欧美一区二区三区色| 日本三级亚洲精品| 日韩一级免费一区| 久久国产人妖系列| 精品日韩在线一区| 国产剧情一区二区三区| 久久精品亚洲精品国产欧美kt∨| 国产夫妻精品视频| 国产精品美女久久福利网站| 不卡av在线网| 一区二区三区丝袜| 欧美日韩不卡视频| 免费看黄色91| 久久久久久久久久看片| 成人av在线一区二区| 亚洲日本在线看| 欧美性大战久久久久久久蜜臀| 性做久久久久久免费观看欧美| 欧美日韩国产精品成人| 久久国产剧场电影| 国产精品乱码久久久久久| 色诱视频网站一区| 免费在线视频一区| 日本一区二区免费在线观看视频| 99久久综合99久久综合网站| 亚洲1区2区3区视频| 欧美精品一区二区三区久久久 | 欧美日韩小视频| 日本va欧美va欧美va精品| 久久综合久久久久88| 91亚洲午夜精品久久久久久| 亚洲.国产.中文慕字在线| 久久你懂得1024| 欧美午夜免费电影| 国产一区二区福利视频| 亚洲欧美日韩国产综合| 欧美一级片在线观看| av一区二区三区黑人| 午夜电影久久久| 国产精品三级电影| 91精品黄色片免费大全| 成人激情午夜影院| 蜜臀久久99精品久久久久宅男| 国产精品你懂的在线欣赏| 欧美精品欧美精品系列| 成人在线视频首页| 麻豆精品国产91久久久久久| 综合激情成人伊人| 久久久久久久久伊人| 欧美精品三级日韩久久| 91在线观看污| 国产精品夜夜爽| 日本中文字幕一区二区视频 | 首页国产欧美日韩丝袜| 久久久久久夜精品精品免费| 欧美日韩成人综合在线一区二区| 国产精品一区二区在线观看不卡| 国产精品久久毛片av大全日韩| 欧美日韩成人综合| av不卡在线观看| 激情综合五月婷婷| 午夜欧美在线一二页| 国产精品午夜免费| 欧美成人在线直播| 欧美日免费三级在线| 色婷婷久久一区二区三区麻豆| 国产原创一区二区三区| 日韩国产欧美在线视频| 亚洲精品中文在线| 国产精品丝袜91| 久久免费视频一区| 日韩精品在线一区二区| 91精品国产91热久久久做人人| 在线观看欧美日本| 91色婷婷久久久久合中文| 国产成人在线免费观看| 精品中文av资源站在线观看| 日韩国产精品久久久| 亚洲一区二区三区视频在线播放| 中文字幕色av一区二区三区| 国产欧美日韩精品一区| 久久亚洲精品小早川怜子| 日韩免费视频线观看| 日韩一区二区不卡| 欧美一卡二卡三卡四卡| 欧美一区二区三区电影| 91精品国产一区二区三区| 欧美三级乱人伦电影| 精品视频在线视频| 欧美日韩精品三区| 欧美久久一二三四区| 欧美丰满少妇xxxxx高潮对白 | 久久亚洲捆绑美女| 久久久不卡网国产精品一区| 久久午夜电影网| 亚洲国产精品成人综合色在线婷婷| 久久一区二区三区国产精品| 久久亚洲二区三区| 欧美国产成人在线| 亚洲精品久久久蜜桃| 亚洲一二三专区| 日韩高清在线电影| 久久电影国产免费久久电影| 国产一区999| fc2成人免费人成在线观看播放 | 一区二区久久久久| 亚洲国产精品嫩草影院| 日本不卡高清视频| 国产高清亚洲一区| 91蝌蚪porny| 欧美一区二区免费观在线| 日韩欧美123| 国产精品网站在线| 亚洲一二三四在线| 国产在线播精品第三| 成人黄色777网| 欧美日韩中文字幕一区二区| 欧美一卡在线观看| 亚洲欧洲精品一区二区三区不卡| 一区二区视频在线| 久久精品国产亚洲5555| 成人av在线资源| 欧美喷潮久久久xxxxx| 久久久久99精品一区| 亚洲综合无码一区二区| 国内精品久久久久影院色| 99在线精品视频| 日韩欧美一区二区三区在线| 中文字幕欧美日本乱码一线二线| 亚洲一区二区三区中文字幕| 久久99精品视频| 日本道精品一区二区三区| 精品日韩av一区二区| 樱花影视一区二区| 美女免费视频一区二区| 色哟哟国产精品| 久久久久青草大香线综合精品| 一区二区高清免费观看影视大全| 国内精品免费**视频| 欧美日韩一区久久| 国产精品视频一二三区| 加勒比av一区二区| 在线不卡中文字幕| 一区二区三区四区乱视频| 国产iv一区二区三区| 欧美岛国在线观看| 亚洲国产另类av| 91碰在线视频| 中日韩av电影| 国产大陆亚洲精品国产| 日韩一区二区三| 午夜精彩视频在线观看不卡| 91一区在线观看| 欧美国产97人人爽人人喊| 精品一区二区三区在线播放视频| 欧美色男人天堂| 亚洲一区二区高清| 91麻豆成人久久精品二区三区| 国产日韩欧美麻豆| 韩国欧美国产1区| 精品精品国产高清a毛片牛牛 | 色诱亚洲精品久久久久久| 国产日产欧美一区| 国产麻豆成人精品| 久久亚洲二区三区| 国产精品一区二区久久不卡 | 精品国内片67194| 日本aⅴ精品一区二区三区 | 欧美无乱码久久久免费午夜一区 | 欧美激情综合在线|