B
bota
Unregistered / Unconfirmed
GUEST, unregistred user!
unit GisMap;
interface
uses
SysUtils, Classes, Controls, OleCtrls, MapXLib_TLB;
type
TGisMap = class(TMap)
private
FMapTitle :string;
protected
procedure SetMapTitle(Value :string);
public
property MapTitle : string read FMapTitle write SetMapTitle;
published
end;
TCar = class
private
public
procedure test();
end;
procedure Register;
implementation
procedure Register;
begin
RegisterComponents('ActiveX', [TGisMap]);
end;
procedure TGisMap.SetMapTitle(Value :string);
begin
FMapTitle :=Value;
end;
procedure TCar.test();
begin
TGisMap.MapTitle :='ok';//这里应该怎么调用?
end;
end.
interface
uses
SysUtils, Classes, Controls, OleCtrls, MapXLib_TLB;
type
TGisMap = class(TMap)
private
FMapTitle :string;
protected
procedure SetMapTitle(Value :string);
public
property MapTitle : string read FMapTitle write SetMapTitle;
published
end;
TCar = class
private
public
procedure test();
end;
procedure Register;
implementation
procedure Register;
begin
RegisterComponents('ActiveX', [TGisMap]);
end;
procedure TGisMap.SetMapTitle(Value :string);
begin
FMapTitle :=Value;
end;
procedure TCar.test();
begin
TGisMap.MapTitle :='ok';//这里应该怎么调用?
end;
end.