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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? mapformimpl1.~pas

?? 此代碼是關于mapgis的在
?? ~PAS
字號:
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;
  //--------------------------------------------------------------------------//
  //取消遠東模式//
  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;
  {創建連接數據模塊}
  if dm_Links=nil then
    dm_Links:=Tdm_Links.Create(nil);
  {創建主連接數據模塊,里面有所有設計期間定義的數據存取組件。但發現一個問題:
  在非EXE類程序中,創建主連接數據模塊后,里面的所有數據存取組件在設計期間設置
  的Connection屬性值,都變成了nil。為了重新保持設計期間的Connection屬性值,在
  后面連接數據庫后,調用函數ReLinkConnection重新設置dm_MainLinkObjects中數據
  存取組件的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.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲aⅴ怡春院| 欧美美女喷水视频| 中文字幕成人av| 国产大陆亚洲精品国产| 久久美女艺术照精彩视频福利播放| 亚洲五码中文字幕| 91精品国产综合久久久久久 | 国产精品成人免费在线| 99这里只有久久精品视频| 亚洲精品videosex极品| 欧美精品乱码久久久久久 | 一区二区三区欧美日韩| 欧美视频在线播放| 蜜臀av性久久久久蜜臀aⅴ| 精品福利视频一区二区三区| av资源网一区| 午夜日韩在线电影| 久久久99免费| 在线观看欧美黄色| 另类专区欧美蜜桃臀第一页| 中文字幕巨乱亚洲| 欧美精品第1页| 国产a精品视频| 亚洲成va人在线观看| 久久综合色之久久综合| 色8久久精品久久久久久蜜| 日韩不卡一区二区| 国产精品乱码一区二三区小蝌蚪| 欧美日韩一区二区三区免费看| 久久精品国产99| 亚洲精品免费在线观看| 精品久久久久久综合日本欧美| 91在线观看地址| 美国三级日本三级久久99| 亚洲日本在线看| 久久这里只有精品6| 欧美日韩在线一区二区| 国产成人99久久亚洲综合精品| 亚洲一区二区偷拍精品| 另类中文字幕网| 亚洲精选视频免费看| 精品国产91久久久久久久妲己| 91福利在线导航| 波多野洁衣一区| 九色综合国产一区二区三区| 亚洲午夜久久久久久久久久久 | 中文字幕av一区 二区| 欧美一区二区成人| 欧美在线小视频| 成人va在线观看| 国产一区在线看| 蜜桃一区二区三区在线观看| 一区二区欧美视频| 国产精品久久久一本精品| 欧美一二三区精品| 欧美日韩国产一区二区三区地区| va亚洲va日韩不卡在线观看| 国产一区在线不卡| 久久99精品国产| 久久精品免费看| 日精品一区二区| 亚洲第一在线综合网站| 亚洲综合在线五月| 亚洲人成在线播放网站岛国| 国产精品久久久久久久久快鸭 | 日韩一区二区在线观看| 欧美日韩中文另类| 在线视频综合导航| 色妞www精品视频| 99久久伊人网影院| 9i看片成人免费高清| a级高清视频欧美日韩| av色综合久久天堂av综合| 国产成人精品免费一区二区| 国产在线不卡一卡二卡三卡四卡| 久久99国产精品成人| 国内精品久久久久影院色| 国内外成人在线视频| 国产一区在线精品| 国产suv精品一区二区三区| 国产成人午夜精品影院观看视频 | 日韩电影在线一区二区三区| 天天影视网天天综合色在线播放| 亚洲午夜久久久久久久久久久 | 欧美三日本三级三级在线播放| 欧美怡红院视频| 欧美一区午夜视频在线观看| 日韩西西人体444www| 91精品麻豆日日躁夜夜躁| 日韩亚洲电影在线| 精品成人一区二区三区| 欧美国产日本视频| 亚洲精品日韩专区silk| 亚洲成人资源在线| 日本 国产 欧美色综合| 精东粉嫩av免费一区二区三区| 国产一二精品视频| 91视频免费播放| 欧美日韩你懂的| 欧美成人bangbros| 国产精品入口麻豆九色| 一区二区三区精品视频| 蜜桃精品视频在线| 懂色av一区二区夜夜嗨| 在线精品视频免费播放| 欧美一区国产二区| 日本一区二区免费在线| 亚洲精品乱码久久久久久久久| 日韩精品每日更新| 国产高清一区日本| 日本乱人伦aⅴ精品| 日韩欧美在线观看一区二区三区| 国产色婷婷亚洲99精品小说| 亚洲日本在线看| 精品在线播放免费| 色久综合一二码| 精品国产精品网麻豆系列 | 久久久精品国产免大香伊| 亚洲欧美电影一区二区| 麻豆精品视频在线观看视频| 白白色 亚洲乱淫| 91精品国产福利在线观看| 中文字幕欧美区| 日日摸夜夜添夜夜添亚洲女人| 懂色中文一区二区在线播放| 欧美精品在线一区二区| 国产精品久久久久影院亚瑟| 免费在线观看视频一区| 一本一道久久a久久精品 | 国产精品欧美综合在线| 日韩制服丝袜先锋影音| www.亚洲人| 欧美不卡一区二区三区| 亚洲情趣在线观看| 国产成人av电影在线| 欧美xingq一区二区| 亚洲va欧美va国产va天堂影院| 成人性生交大片免费看视频在线| 欧美一级日韩一级| 午夜免费久久看| 91激情五月电影| 国产精品私人影院| 国产一区激情在线| 欧美一区二区私人影院日本| 亚洲精品第1页| 成人免费毛片aaaaa**| 精品sm在线观看| 美国十次了思思久久精品导航| 欧美日韩国产大片| 亚洲综合色噜噜狠狠| 中文字幕国产一区| 狠狠色丁香婷婷综合| 日韩你懂的在线播放| 日韩专区中文字幕一区二区| 欧美图片一区二区三区| 一区二区国产视频| 91久久一区二区| 亚洲一二三区在线观看| 日本精品免费观看高清观看| 亚洲桃色在线一区| 91色婷婷久久久久合中文| 中文字幕乱码一区二区免费| 国产91精品欧美| 中文字幕精品—区二区四季| 成人免费视频caoporn| 国产嫩草影院久久久久| 成人禁用看黄a在线| 中文久久乱码一区二区| 成人av影视在线观看| 国产精品久久久久婷婷| 99re热视频精品| 亚洲欧美日本韩国| 欧美午夜宅男影院| 三级在线观看一区二区 | 国产精品一区二区无线| 2024国产精品| 成人免费视频视频在线观看免费| 国产精品乱码久久久久久| 99久久综合精品| 亚洲一区二区三区四区中文字幕| 欧洲色大大久久| 免费国产亚洲视频| 欧美韩国日本不卡| 色综合久久天天| 午夜视频一区二区| www久久精品| 99re热这里只有精品视频| 亚洲电影你懂得| 欧美成人精精品一区二区频| 国产成人鲁色资源国产91色综 | 国产精品成人免费在线| 色综合天天狠狠| 日本不卡的三区四区五区| 久久免费电影网| 色伊人久久综合中文字幕| 免费在线成人网| 国产欧美一区二区精品秋霞影院| 色婷婷久久99综合精品jk白丝| 天天av天天翘天天综合网色鬼国产| 日韩一区二区三区在线视频|