unit ImageX_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-3-22 12:34:53 from Type Library described below. // ************************************************************************ // // Type Lib: E:\RealICQ Projects For Win32\Dll\ImageX\ImageX.tlb (1) // LIBID: {E1025262-0248-4E3D-8340-1B582B83D7F2} // LCID: 0 // Helpfile: // HelpString: ImageX Library // DepndLst: // (1) v2.0 stdole, (C:\WINDOWS\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 ImageXMajorVersion = 1; ImageXMinorVersion = 0; LIBID_ImageX: TGUID = '{E1025262-0248-4E3D-8340-1B582B83D7F2}'; IID_IRealICQImageOleX: TGUID = '{FF2B87E7-B153-4FE1-8F8D-A241D759BB44}'; DIID_IRealICQImageOleXEvents: TGUID = '{D5176B7E-99F7-4BE9-8C23-F1627145C0EB}'; CLASS_RealICQImageOleX: TGUID = '{57155F3A-E84B-4E14-9744-DDAB70F6F6C5}'; // *********************************************************************// // Declaration of Enumerations defined in Type Library // *********************************************************************// // Constants for enum TxAlignment type TxAlignment = TOleEnum; const taLeftJustify = $00000000; taRightJustify = $00000001; taCenter = $00000002; // Constants for enum TxBevelCut type TxBevelCut = TOleEnum; const bvNone = $00000000; bvLowered = $00000001; bvRaised = $00000002; bvSpace = $00000003; // Constants for enum TxBorderStyle type TxBorderStyle = TOleEnum; const bsNone = $00000000; bsSingle = $00000001; // Constants for enum TxDragMode type TxDragMode = TOleEnum; const dmManual = $00000000; dmAutomatic = $00000001; // Constants for enum TxMouseButton type TxMouseButton = TOleEnum; const mbLeft = $00000000; mbRight = $00000001; mbMiddle = $00000002; type // *********************************************************************// // Forward declaration of types defined in TypeLibrary // *********************************************************************// IRealICQImageOleX = interface; IRealICQImageOleXDisp = dispinterface; IRealICQImageOleXEvents = dispinterface; // *********************************************************************// // Declaration of CoClasses defined in Type Library // (NOTE: Here we map each CoClass to its Default Interface) // *********************************************************************// RealICQImageOleX = IRealICQImageOleX; // *********************************************************************// // Declaration of structures, unions and aliases. // *********************************************************************// PPUserType1 = ^IFontDisp; {*} // *********************************************************************// // Interface: IRealICQImageOleX // Flags: (4416) Dual OleAutomation Dispatchable // GUID: {FF2B87E7-B153-4FE1-8F8D-A241D759BB44} // *********************************************************************// IRealICQImageOleX = interface(IDispatch) ['{FF2B87E7-B153-4FE1-8F8D-A241D759BB44}'] procedure LoadFromFile(const AFileName: WideString); safecall; function Get_Picture: IPictureDisp; safecall; procedure Set_Picture(const Value: IPictureDisp); safecall; function Get_Alignment: TxAlignment; safecall; procedure Set_Alignment(Value: TxAlignment); safecall; function Get_AutoSize: WordBool; safecall; procedure Set_AutoSize(Value: WordBool); safecall; function Get_BevelInner: TxBevelCut; safecall; procedure Set_BevelInner(Value: TxBevelCut); safecall; function Get_BevelOuter: TxBevelCut; safecall; procedure Set_BevelOuter(Value: TxBevelCut); safecall; function Get_BorderStyle: TxBorderStyle; safecall; procedure Set_BorderStyle(Value: TxBorderStyle); safecall; function Get_Caption: WideString; safecall; procedure Set_Caption(const Value: WideString); safecall; function Get_Color: OLE_COLOR; safecall; procedure Set_Color(Value: OLE_COLOR); safecall; function Get_Ctl3D: WordBool; safecall; procedure Set_Ctl3D(Value: WordBool); safecall; function Get_UseDockManager: WordBool; safecall; procedure Set_UseDockManager(Value: WordBool); safecall; function Get_DockSite: WordBool; safecall; procedure Set_DockSite(Value: WordBool); safecall; function Get_DragCursor: Smallint; safecall; procedure Set_DragCursor(Value: Smallint); safecall; function Get_DragMode: TxDragMode; safecall; procedure Set_DragMode(Value: TxDragMode); safecall; function Get_Enabled: WordBool; safecall; procedure Set_Enabled(Value: WordBool); safecall; function Get_FullRepaint: WordBool; safecall; procedure Set_FullRepaint(Value: WordBool); safecall; function Get_Font: IFontDisp; safecall; procedure Set_Font(const Value: IFontDisp); safecall; procedure _Set_Font(var Value: IFontDisp); safecall; function Get_Locked: WordBool; safecall; procedure Set_Locked(Value: WordBool); safecall; function Get_ParentBackground: WordBool; safecall; procedure Set_ParentBackground(Value: WordBool); safecall; function Get_ParentColor: WordBool; safecall; procedure Set_ParentColor(Value: WordBool); safecall; function Get_ParentCtl3D: WordBool; safecall; procedure Set_ParentCtl3D(Value: WordBool); safecall; function Get_Visible: WordBool; safecall; procedure Set_Visible(Value: WordBool); safecall; function Get_DoubleBuffered: WordBool; safecall; procedure Set_DoubleBuffered(Value: WordBool); safecall; function Get_AlignDisabled: WordBool; safecall; function Get_VisibleDockClientCount: Integer; safecall; function DrawTextBiDiModeFlagsReadingOnly: Integer; safecall; procedure InitiateAction; safecall; function IsRightToLeft: WordBool; safecall; function UseRightToLeftReading: WordBool; safecall; function UseRightToLeftScrollBar: WordBool; safecall; procedure SetSubComponent(IsSubComponent: WordBool); safecall; property Picture: IPictureDisp read Get_Picture write Set_Picture; property Alignment: TxAlignment read Get_Alignment write Set_Alignment; property AutoSize: WordBool read Get_AutoSize write Set_AutoSize; property BevelInner: TxBevelCut read Get_BevelInner write Set_BevelInner; property BevelOuter: TxBevelCut read Get_BevelOuter write Set_BevelOuter; property BorderStyle: TxBorderStyle read Get_BorderStyle write Set_BorderStyle; property Caption: WideString read Get_Caption write Set_Caption; property Color: OLE_COLOR read Get_Color write Set_Color; property Ctl3D: WordBool read Get_Ctl3D write Set_Ctl3D; property UseDockManager: WordBool read Get_UseDockManager write Set_UseDockManager; property DockSite: WordBool read Get_DockSite write Set_DockSite; property DragCursor: Smallint read Get_DragCursor write Set_DragCursor; property DragMode: TxDragMode read Get_DragMode write Set_DragMode; property Enabled: WordBool read Get_Enabled write Set_Enabled; property FullRepaint: WordBool read Get_FullRepaint write Set_FullRepaint; property Font: IFontDisp read Get_Font write Set_Font; property Locked: WordBool read Get_Locked write Set_Locked; property ParentBackground: WordBool read Get_ParentBackground write Set_ParentBackground; property ParentColor: WordBool read Get_ParentColor write Set_ParentColor; property ParentCtl3D: WordBool read Get_ParentCtl3D write Set_ParentCtl3D; property Visible: WordBool read Get_Visible write Set_Visible; property DoubleBuffered: WordBool read Get_DoubleBuffered write Set_DoubleBuffered; property AlignDisabled: WordBool read Get_AlignDisabled; property VisibleDockClientCount: Integer read Get_VisibleDockClientCount; end; // *********************************************************************// // DispIntf: IRealICQImageOleXDisp // Flags: (4416) Dual OleAutomation Dispatchable // GUID: {FF2B87E7-B153-4FE1-8F8D-A241D759BB44} // *********************************************************************// IRealICQImageOleXDisp = dispinterface ['{FF2B87E7-B153-4FE1-8F8D-A241D759BB44}'] procedure LoadFromFile(const AFileName: WideString); dispid 201; property Picture: IPictureDisp dispid -523; property Alignment: TxAlignment dispid 202; property AutoSize: WordBool dispid 203; property BevelInner: TxBevelCut dispid 204; property BevelOuter: TxBevelCut dispid 205; property BorderStyle: TxBorderStyle dispid 206; property Caption: WideString dispid -518; property Color: OLE_COLOR dispid -501; property Ctl3D: WordBool dispid 207; property UseDockManager: WordBool dispid 208; property DockSite: WordBool dispid 209; property DragCursor: Smallint dispid 210; property DragMode: TxDragMode dispid 211; property Enabled: WordBool dispid -514; property FullRepaint: WordBool dispid 212; property Font: IFontDisp dispid -512; property Locked: WordBool dispid 213; property ParentBackground: WordBool dispid 214; property ParentColor: WordBool dispid 215; property ParentCtl3D: WordBool dispid 216; property Visible: WordBool dispid 217; property DoubleBuffered: WordBool dispid 218; property AlignDisabled: WordBool readonly dispid 219; property VisibleDockClientCount: Integer readonly dispid 220; function DrawTextBiDiModeFlagsReadingOnly: Integer; dispid 221; procedure InitiateAction; dispid 222; function IsRightToLeft: WordBool; dispid 223; function UseRightToLeftReading: WordBool; dispid 224; function UseRightToLeftScrollBar: WordBool; dispid 225; procedure SetSubComponent(IsSubComponent: WordBool); dispid 226; end; // *********************************************************************// // DispIntf: IRealICQImageOleXEvents // Flags: (4096) Dispatchable // GUID: {D5176B7E-99F7-4BE9-8C23-F1627145C0EB} // *********************************************************************// IRealICQImageOleXEvents = dispinterface ['{D5176B7E-99F7-4BE9-8C23-F1627145C0EB}'] procedure OnCanResize(var NewWidth: Integer; var NewHeight: Integer; var Resize: WordBool); dispid 201; procedure OnClick; dispid 202; procedure OnConstrainedResize(var MinWidth: Integer; var MinHeight: Integer; var MaxWidth: Integer; var MaxHeight: Integer); dispid 203; procedure OnDblClick; dispid 204; procedure OnResize; dispid 205; end; // *********************************************************************// // OLE Control Proxy class declaration // Control Name : TRealICQImageOleX // Help String : RealICQImageOleX Control // Default Interface: IRealICQImageOleX // Def. Intf. DISP? : No // Event Interface: IRealICQImageOleXEvents // TypeFlags : (38) CanCreate Licensed Control // *********************************************************************// TRealICQImageOleXOnCanResize = procedure(ASender: TObject; var NewWidth: Integer; var NewHeight: Integer; var Resize: WordBool) of object; TRealICQImageOleXOnConstrainedResize = procedure(ASender: TObject; var MinWidth: Integer; var MinHeight: Integer; var MaxWidth: Integer; var MaxHeight: Integer) of object; TRealICQImageOleX = class(TOleControl) private FOnCanResize: TRealICQImageOleXOnCanResize; FOnClick: TNotifyEvent; FOnConstrainedResize: TRealICQImageOleXOnConstrainedResize; FOnDblClick: TNotifyEvent; FOnResize: TNotifyEvent; FIntf: IRealICQImageOleX; function GetControlInterface: IRealICQImageOleX; protected procedure CreateControl; procedure InitControlData; override; public procedure LoadFromFile(const AFileName: WideString); function DrawTextBiDiModeFlagsReadingOnly: Integer; procedure InitiateAction; function IsRightToLeft: WordBool; function UseRightToLeftReading: WordBool; function UseRightToLeftScrollBar: WordBool; procedure SetSubComponent(IsSubComponent: WordBool); property ControlInterface: IRealICQImageOleX read GetControlInterface; property DefaultInterface: IRealICQImageOleX read GetControlInterface; property DoubleBuffered: WordBool index 218 read GetWordBoolProp write SetWordBoolProp; property AlignDisabled: WordBool index 219 read GetWordBoolProp; property VisibleDockClientCount: Integer index 220 read GetIntegerProp; published property Anchors; property ParentFont; property Align; property ParentShowHint; property PopupMenu; property ShowHint; property TabOrder; property OnDragDrop; property OnDragOver; property OnEndDrag; property OnEnter; property OnExit; property OnStartDrag; property Picture: TPicture index -523 read GetTPictureProp write SetTPictureProp stored False; property Alignment: TOleEnum index 202 read GetTOleEnumProp write SetTOleEnumProp stored False; property AutoSize: WordBool index 203 read GetWordBoolProp write SetWordBoolProp stored False; property BevelInner: TOleEnum index 204 read GetTOleEnumProp write SetTOleEnumProp stored False; property BevelOuter: TOleEnum index 205 read GetTOleEnumProp write SetTOleEnumProp stored False; property BorderStyle: TOleEnum index 206 read GetTOleEnumProp write SetTOleEnumProp stored False; property Caption: WideString index -518 read GetWideStringProp write SetWideStringProp stored False; property Color: TColor index -501 read GetTColorProp write SetTColorProp stored False; property Ctl3D: WordBool index 207 read GetWordBoolProp write SetWordBoolProp stored False; property UseDockManager: WordBool index 208 read GetWordBoolProp write SetWordBoolProp stored False; property DockSite: WordBool index 209 read GetWordBoolProp write SetWordBoolProp stored False; property DragCursor: Smallint index 210 read GetSmallintProp write SetSmallintProp stored False; property DragMode: TOleEnum index 211 read GetTOleEnumProp write SetTOleEnumProp stored False; property Enabled: WordBool index -514 read GetWordBoolProp write SetWordBoolProp stored False; property FullRepaint: WordBool index 212 read GetWordBoolProp write SetWordBoolProp stored False; property Font: TFont index -512 read GetTFontProp write SetTFontProp stored False; property Locked: WordBool index 213 read GetWordBoolProp write SetWordBoolProp stored False; property ParentBackground: WordBool index 214 read GetWordBoolProp write SetWordBoolProp stored False; property ParentColor: WordBool index 215 read GetWordBoolProp write SetWordBoolProp stored False; property ParentCtl3D: WordBool index 216 read GetWordBoolProp write SetWordBoolProp stored False; property Visible: WordBool index 217 read GetWordBoolProp write SetWordBoolProp stored False; property OnCanResize: TRealICQImageOleXOnCanResize read FOnCanResize write FOnCanResize; property OnClick: TNotifyEvent read FOnClick write FOnClick; property OnConstrainedResize: TRealICQImageOleXOnConstrainedResize read FOnConstrainedResize write FOnConstrainedResize; property OnDblClick: TNotifyEvent read FOnDblClick write FOnDblClick; property OnResize: TNotifyEvent read FOnResize write FOnResize; end; procedure Register; resourcestring dtlServerPage = 'Servers'; dtlOcxPage = 'ActiveX'; implementation uses ComObj; procedure TRealICQImageOleX.InitControlData; const CEventDispIDs: array [0..4] of DWORD = ( $000000C9, $000000CA, $000000CB, $000000CC, $000000CD); CLicenseKey: array[0..38] of Word = ( $007B, $0034, $0043, $0041, $0032, $0038, $0045, $0043, $0034, $002D, $0038 , $0033, $0030, $0046, $002D, $0034, $0044, $0033, $0043, $002D, $0039 , $0041, $0032, $0037, $002D, $0044, $0037, $0036, $0045, $0035, $0031 , $0035, $0041, $0046, $0046, $0033, $0043, $007D, $0000); CTFontIDs: array [0..0] of DWORD = ( $FFFFFE00); CTPictureIDs: array [0..0] of DWORD = ( $FFFFFDF5); CControlData: TControlData2 = ( ClassID: '{57155F3A-E84B-4E14-9744-DDAB70F6F6C5}'; EventIID: '{D5176B7E-99F7-4BE9-8C23-F1627145C0EB}'; EventCount: 5; EventDispIDs: @CEventDispIDs; LicenseKey: @CLicenseKey; Flags: $0000001D; Version: 401; FontCount: 1; FontIDs: @CTFontIDs; PictureCount: 1; PictureIDs: @CTPictureIDs); begin ControlData := @CControlData; TControlData2(CControlData).FirstEventOfs := Cardinal(@@FOnCanResize) - Cardinal(Self); end; procedure TRealICQImageOleX.CreateControl; procedure DoCreate; begin FIntf := IUnknown(OleObject) as IRealICQImageOleX; end; begin if FIntf = nil then DoCreate; end; function TRealICQImageOleX.GetControlInterface: IRealICQImageOleX; begin CreateControl; Result := FIntf; end; procedure TRealICQImageOleX.LoadFromFile(const AFileName: WideString); begin DefaultInterface.LoadFromFile(AFileName); end; function TRealICQImageOleX.DrawTextBiDiModeFlagsReadingOnly: Integer; begin Result := DefaultInterface.DrawTextBiDiModeFlagsReadingOnly; end; procedure TRealICQImageOleX.InitiateAction; begin DefaultInterface.InitiateAction; end; function TRealICQImageOleX.IsRightToLeft: WordBool; begin Result := DefaultInterface.IsRightToLeft; end; function TRealICQImageOleX.UseRightToLeftReading: WordBool; begin Result := DefaultInterface.UseRightToLeftReading; end; function TRealICQImageOleX.UseRightToLeftScrollBar: WordBool; begin Result := DefaultInterface.UseRightToLeftScrollBar; end; procedure TRealICQImageOleX.SetSubComponent(IsSubComponent: WordBool); begin DefaultInterface.SetSubComponent(IsSubComponent); end; procedure Register; begin RegisterComponents(dtlOcxPage, [TRealICQImageOleX]); end; end.