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

📄 lmeditproj1_tlb.pas

📁 一个用Delpi写的视频聊天的SDK
💻 PAS
字号:
unit lmEditProj1_TLB;

// ************************************************************************ //
// WARNING                                                                    
// -------                                                                    
// The types declared in this file were generated from data read from a       
// Type Library. If this type library is explicitly or indirectly (via        
// another type library referring to this type library) re-imported, or the   
// 'Refresh' command of the Type Library Editor activated while editing the   
// Type Library, the contents of this file will be regenerated and all        
// manual modifications will be lost.                                         
// ************************************************************************ //

// PASTLWTR : 1.2
// File generated on 2006-1-17 11:49:34 from Type Library described below.

// ************************************************************************  //
// Type Lib: F:\project\avcSDK\test\lmEditProj1.tlb (1)
// LIBID: {2AE0EACF-4E0F-4641-A861-F10E386A7EC2}
// LCID: 0
// Helpfile: 
// HelpString: lmEditProj1 Library
// DepndLst: 
//   (1) v2.0 stdole, (C:\WINNT\System32\stdole2.tlb)
// ************************************************************************ //
{$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers. 
{$WARN SYMBOL_PLATFORM OFF}
{$WRITEABLECONST ON}
{$VARPROPSETTER ON}
interface

uses Windows, ActiveX, Classes, Graphics, OleCtrls, StdVCL, Variants;
  

// *********************************************************************//
// GUIDS declared in the TypeLibrary. Following prefixes are used:        
//   Type Libraries     : LIBID_xxxx                                      
//   CoClasses          : CLASS_xxxx                                      
//   DISPInterfaces     : DIID_xxxx                                       
//   Non-DISP interfaces: IID_xxxx                                        
// *********************************************************************//
const
  // TypeLibrary Major and minor versions
  lmEditProj1MajorVersion = 1;
  lmEditProj1MinorVersion = 0;

  LIBID_lmEditProj1: TGUID = '{2AE0EACF-4E0F-4641-A861-F10E386A7EC2}';

  IID_IlmEdit: TGUID = '{08DD2217-DA84-4E44-A52E-0A8F2805E6C9}';
  DIID_IlmEditEvents: TGUID = '{8B0EC70B-BFC1-47E3-AAF8-C07D0C1580BE}';
  CLASS_lmEdit: TGUID = '{78925D73-8082-4E5C-97EA-3A948F092905}';

// *********************************************************************//
// Declaration of Enumerations defined in Type Library                    
// *********************************************************************//
// Constants for enum TxActiveFormBorderStyle
type
  TxActiveFormBorderStyle = TOleEnum;
const
  afbNone = $00000000;
  afbSingle = $00000001;
  afbSunken = $00000002;
  afbRaised = $00000003;

// Constants for enum TxPrintScale
type
  TxPrintScale = TOleEnum;
const
  poNone = $00000000;
  poProportional = $00000001;
  poPrintToFit = $00000002;

// Constants for enum TxMouseButton
type
  TxMouseButton = TOleEnum;
const
  mbLeft = $00000000;
  mbRight = $00000001;
  mbMiddle = $00000002;

type

// *********************************************************************//
// Forward declaration of types defined in TypeLibrary                    
// *********************************************************************//
  IlmEdit = interface;
  IlmEditDisp = dispinterface;
  IlmEditEvents = dispinterface;

// *********************************************************************//
// Declaration of CoClasses defined in Type Library                       
// (NOTE: Here we map each CoClass to its Default Interface)              
// *********************************************************************//
  lmEdit = IlmEdit;


// *********************************************************************//
// Interface: IlmEdit
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {08DD2217-DA84-4E44-A52E-0A8F2805E6C9}
// *********************************************************************//
  IlmEdit = interface(IDispatch)
    ['{08DD2217-DA84-4E44-A52E-0A8F2805E6C9}']
    function Get_Visible: WordBool; safecall;
    procedure Set_Visible(Value: WordBool); safecall;
    function Get_AxBorderStyle: TxActiveFormBorderStyle; safecall;
    procedure Set_AxBorderStyle(Value: TxActiveFormBorderStyle); safecall;
    function Get_KeyPreview: WordBool; safecall;
    procedure Set_KeyPreview(Value: WordBool); safecall;
    function Get_Active: WordBool; safecall;
    function Get_AlignDisabled: WordBool; safecall;
    function Get_VisibleDockClientCount: Integer; safecall;
    function Get_Enabled: WordBool; safecall;
    procedure Set_Enabled(Value: WordBool); safecall;
    procedure Init(const AEmotionPath: WideString; const ACfgFileName: WideString); safecall;
    function Get_HtmlStr: WideString; safecall;
    function Get_FontName: WideString; safecall;
    procedure Set_FontName(const Value: WideString); safecall;
    function Get_FontSize: Integer; safecall;
    procedure Set_FontSize(Value: Integer); safecall;
    function Get_FontColor: Integer; safecall;
    procedure Set_FontColor(Value: Integer); safecall;
    function Get_FontStyle: Integer; safecall;
    procedure Set_FontStyle(Value: Integer); safecall;
    procedure InsertEmotion; safecall;
    procedure Clear; safecall;
    procedure SetEditFocus; safecall;
    procedure ShowFontDialog; safecall;
    procedure InsertText(const AStr: WideString); safecall;
    property Visible: WordBool read Get_Visible write Set_Visible;
    property AxBorderStyle: TxActiveFormBorderStyle read Get_AxBorderStyle write Set_AxBorderStyle;
    property KeyPreview: WordBool read Get_KeyPreview write Set_KeyPreview;
    property Active: WordBool read Get_Active;
    property AlignDisabled: WordBool read Get_AlignDisabled;
    property VisibleDockClientCount: Integer read Get_VisibleDockClientCount;
    property Enabled: WordBool read Get_Enabled write Set_Enabled;
    property HtmlStr: WideString read Get_HtmlStr;
    property FontName: WideString read Get_FontName write Set_FontName;
    property FontSize: Integer read Get_FontSize write Set_FontSize;
    property FontColor: Integer read Get_FontColor write Set_FontColor;
    property FontStyle: Integer read Get_FontStyle write Set_FontStyle;
  end;

// *********************************************************************//
// DispIntf:  IlmEditDisp
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {08DD2217-DA84-4E44-A52E-0A8F2805E6C9}
// *********************************************************************//
  IlmEditDisp = dispinterface
    ['{08DD2217-DA84-4E44-A52E-0A8F2805E6C9}']
    property Visible: WordBool dispid 201;
    property AxBorderStyle: TxActiveFormBorderStyle dispid 204;
    property KeyPreview: WordBool dispid 205;
    property Active: WordBool readonly dispid 209;
    property AlignDisabled: WordBool readonly dispid 215;
    property VisibleDockClientCount: Integer readonly dispid 216;
    property Enabled: WordBool dispid -514;
    procedure Init(const AEmotionPath: WideString; const ACfgFileName: WideString); dispid 202;
    property HtmlStr: WideString readonly dispid 203;
    property FontName: WideString dispid 206;
    property FontSize: Integer dispid 207;
    property FontColor: Integer dispid 208;
    property FontStyle: Integer dispid 210;
    procedure InsertEmotion; dispid 211;
    procedure Clear; dispid 212;
    procedure SetEditFocus; dispid 213;
    procedure ShowFontDialog; dispid 214;
    procedure InsertText(const AStr: WideString); dispid 217;
  end;

// *********************************************************************//
// DispIntf:  IlmEditEvents
// Flags:     (4096) Dispatchable
// GUID:      {8B0EC70B-BFC1-47E3-AAF8-C07D0C1580BE}
// *********************************************************************//
  IlmEditEvents = dispinterface
    ['{8B0EC70B-BFC1-47E3-AAF8-C07D0C1580BE}']
    procedure OnActivate; dispid 201;
    procedure OnClick; dispid 202;
    procedure OnCreate; dispid 203;
    procedure OnDblClick; dispid 204;
    procedure OnDestroy; dispid 205;
    procedure OnDeactivate; dispid 206;
    procedure OnKeyPress(var Key: Smallint); dispid 207;
    procedure OnPaint; dispid 208;
    procedure OnEditKeyPress(var Key: Smallint); dispid 209;
  end;


// *********************************************************************//
// OLE Control Proxy class declaration
// Control Name     : TlmEdit
// Help String      : lmEdit Control
// Default Interface: IlmEdit
// Def. Intf. DISP? : No
// Event   Interface: IlmEditEvents
// TypeFlags        : (34) CanCreate Control
// *********************************************************************//
  TlmEditOnKeyPress = procedure(ASender: TObject; var Key: Smallint) of object;
  TlmEditOnEditKeyPress = procedure(ASender: TObject; var Key: Smallint) of object;

  TlmEdit = class(TOleControl)
  private
    FOnActivate: TNotifyEvent;
    FOnClick: TNotifyEvent;
    FOnCreate: TNotifyEvent;
    FOnDblClick: TNotifyEvent;
    FOnDestroy: TNotifyEvent;
    FOnDeactivate: TNotifyEvent;
    FOnKeyPress: TlmEditOnKeyPress;
    FOnPaint: TNotifyEvent;
    FOnEditKeyPress: TlmEditOnEditKeyPress;
    FIntf: IlmEdit;
    function  GetControlInterface: IlmEdit;
  protected
    procedure CreateControl;
    procedure InitControlData; override;
  public
    procedure Init(const AEmotionPath: WideString; const ACfgFileName: WideString);
    procedure InsertEmotion;
    procedure Clear;
    procedure SetEditFocus;
    procedure ShowFontDialog;
    procedure InsertText(const AStr: WideString);
    property  ControlInterface: IlmEdit read GetControlInterface;
    property  DefaultInterface: IlmEdit read GetControlInterface;
    property Visible: WordBool index 201 read GetWordBoolProp write SetWordBoolProp;
    property Active: WordBool index 209 read GetWordBoolProp;
    property AlignDisabled: WordBool index 215 read GetWordBoolProp;
    property VisibleDockClientCount: Integer index 216 read GetIntegerProp;
    property Enabled: WordBool index -514 read GetWordBoolProp write SetWordBoolProp;
    property HtmlStr: WideString index 203 read GetWideStringProp;
  published
    property Anchors;
    property  Align;
    property  DragCursor;
    property  DragMode;
    property  ParentShowHint;
    property  PopupMenu;
    property  ShowHint;
    property  TabOrder;
    property  OnDragDrop;
    property  OnDragOver;
    property  OnEndDrag;
    property  OnEnter;
    property  OnExit;
    property  OnStartDrag;
    property AxBorderStyle: TOleEnum index 204 read GetTOleEnumProp write SetTOleEnumProp stored False;
    property KeyPreview: WordBool index 205 read GetWordBoolProp write SetWordBoolProp stored False;
    property FontName: WideString index 206 read GetWideStringProp write SetWideStringProp stored False;
    property FontSize: Integer index 207 read GetIntegerProp write SetIntegerProp stored False;
    property FontColor: Integer index 208 read GetIntegerProp write SetIntegerProp stored False;
    property FontStyle: Integer index 210 read GetIntegerProp write SetIntegerProp stored False;
    property OnActivate: TNotifyEvent read FOnActivate write FOnActivate;
    property OnClick: TNotifyEvent read FOnClick write FOnClick;
    property OnCreate: TNotifyEvent read FOnCreate write FOnCreate;
    property OnDblClick: TNotifyEvent read FOnDblClick write FOnDblClick;
    property OnDestroy: TNotifyEvent read FOnDestroy write FOnDestroy;
    property OnDeactivate: TNotifyEvent read FOnDeactivate write FOnDeactivate;
    property OnKeyPress: TlmEditOnKeyPress read FOnKeyPress write FOnKeyPress;
    property OnPaint: TNotifyEvent read FOnPaint write FOnPaint;
    property OnEditKeyPress: TlmEditOnEditKeyPress read FOnEditKeyPress write FOnEditKeyPress;
  end;

procedure Register;

resourcestring
  dtlServerPage = 'Servers';

  dtlOcxPage = 'ActiveX';

implementation

uses ComObj;

procedure TlmEdit.InitControlData;
const
  CEventDispIDs: array [0..8] of DWORD = (
    $000000C9, $000000CA, $000000CB, $000000CC, $000000CD, $000000CE,
    $000000CF, $000000D0, $000000D1);
  CControlData: TControlData2 = (
    ClassID: '{78925D73-8082-4E5C-97EA-3A948F092905}';
    EventIID: '{8B0EC70B-BFC1-47E3-AAF8-C07D0C1580BE}';
    EventCount: 9;
    EventDispIDs: @CEventDispIDs;
    LicenseKey: nil (*HR:$00000000*);
    Flags: $00000008;
    Version: 401);
begin
  ControlData := @CControlData;
  TControlData2(CControlData).FirstEventOfs := Cardinal(@@FOnActivate) - Cardinal(Self);
end;

procedure TlmEdit.CreateControl;

  procedure DoCreate;
  begin
    FIntf := IUnknown(OleObject) as IlmEdit;
  end;

begin
  if FIntf = nil then DoCreate;
end;

function TlmEdit.GetControlInterface: IlmEdit;
begin
  CreateControl;
  Result := FIntf;
end;

procedure TlmEdit.Init(const AEmotionPath: WideString; const ACfgFileName: WideString);
begin
  DefaultInterface.Init(AEmotionPath, ACfgFileName);
end;

procedure TlmEdit.InsertEmotion;
begin
  DefaultInterface.InsertEmotion;
end;

procedure TlmEdit.Clear;
begin
  DefaultInterface.Clear;
end;

procedure TlmEdit.SetEditFocus;
begin
  DefaultInterface.SetEditFocus;
end;

procedure TlmEdit.ShowFontDialog;
begin
  DefaultInterface.ShowFontDialog;
end;

procedure TlmEdit.InsertText(const AStr: WideString);
begin
  DefaultInterface.InsertText(AStr);
end;

procedure Register;
begin
  RegisterComponents(dtlOcxPage, [TlmEdit]);
end;

end.

⌨️ 快捷键说明

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