📄 micdtmfbocx_tlb.~pas
字号:
property ImeName: WideString dispid 230;
property ItemHeight: Integer dispid 231;
property ItemIndex: Integer dispid 232;
property MaxLength: Integer dispid 233;
property ParentColor: WordBool dispid 234;
property ParentCtl3D: WordBool dispid 235;
property Sorted: WordBool dispid 236;
property Text: WideString dispid -517;
property Visible: WordBool dispid 237;
property Items: IStrings dispid 238;
property SelText: WideString dispid 239;
procedure Clear; dispid 240;
procedure ClearSelection; dispid 241;
procedure DeleteSelected; dispid 242;
procedure SelectAll; dispid 243;
property DroppedDown: WordBool dispid 244;
property SelLength: Integer dispid 245;
property SelStart: Integer dispid 246;
property DoubleBuffered: WordBool dispid 247;
property AlignDisabled: WordBool readonly dispid 248;
property VisibleDockClientCount: Integer readonly dispid 249;
function DrawTextBiDiModeFlagsReadingOnly: Integer; dispid 250;
procedure InitiateAction; dispid 251;
function IsRightToLeft: WordBool; dispid 252;
function UseRightToLeftReading: WordBool; dispid 253;
function UseRightToLeftScrollBar: WordBool; dispid 254;
procedure SetSubComponent(IsSubComponent: WordBool); dispid 255;
end;
// *********************************************************************//
// DispIntf: ImicDTMFBoxXEvents
// Flags: (0)
// GUID: {A852D885-B4EE-4AD4-A143-C09A048B62E5}
// *********************************************************************//
ImicDTMFBoxXEvents = dispinterface
['{A852D885-B4EE-4AD4-A143-C09A048B62E5}']
procedure a1DetectAll(const AllDigits: WideString); dispid 201;
procedure a2DetectDigit(const LastDigit: WideString); dispid 202;
procedure a3FormatPhone(const Tipo: WideString; const DDD: WideString; const Fone: WideString;
const IndexPhone: WideString); dispid 203;
procedure a4LevelSignal(Signal: Integer); dispid 204;
procedure a5HandShake(HandShake: WordBool); dispid 205;
procedure a6SilenDetect(Secounds: Integer); dispid 206;
procedure a7IndexFone(const IndexFone: WideString); dispid 207;
procedure a8MicAPIConect(PlugInHandle: Integer); dispid 208;
procedure OnChange; dispid 209;
procedure OnClick; dispid 210;
procedure OnCloseUp; dispid 211;
procedure OnDblClick; dispid 212;
procedure OnDropDown; dispid 213;
procedure OnKeyPress(var Key: Smallint); dispid 214;
procedure OnSelect; dispid 215;
end;
// *********************************************************************//
// OLE Control Proxy class declaration
// Control Name : TmicDTMFBoxX
// Help String : micDTMFBoxX Control
// Default Interface: ImicDTMFBoxX
// Def. Intf. DISP? : No
// Event Interface: ImicDTMFBoxXEvents
// TypeFlags : (34) CanCreate Control
// *********************************************************************//
TmicDTMFBoxXa1DetectAll = procedure(ASender: TObject; const AllDigits: WideString) of object;
TmicDTMFBoxXa2DetectDigit = procedure(ASender: TObject; const LastDigit: WideString) of object;
TmicDTMFBoxXa3FormatPhone = procedure(ASender: TObject; const Tipo: WideString;
const DDD: WideString;
const Fone: WideString;
const IndexPhone: WideString) of object;
TmicDTMFBoxXa4LevelSignal = procedure(ASender: TObject; Signal: Integer) of object;
TmicDTMFBoxXa5HandShake = procedure(ASender: TObject; HandShake: WordBool) of object;
TmicDTMFBoxXa6SilenDetect = procedure(ASender: TObject; Secounds: Integer) of object;
TmicDTMFBoxXa7IndexFone = procedure(ASender: TObject; const IndexFone: WideString) of object;
TmicDTMFBoxXa8MicAPIConect = procedure(ASender: TObject; PlugInHandle: Integer) of object;
TmicDTMFBoxXOnKeyPress = procedure(ASender: TObject; var Key: Smallint) of object;
TmicDTMFBoxX = class(TOleControl)
private
FOna1DetectAll: TmicDTMFBoxXa1DetectAll;
FOna2DetectDigit: TmicDTMFBoxXa2DetectDigit;
FOna3FormatPhone: TmicDTMFBoxXa3FormatPhone;
FOna4LevelSignal: TmicDTMFBoxXa4LevelSignal;
FOna5HandShake: TmicDTMFBoxXa5HandShake;
FOna6SilenDetect: TmicDTMFBoxXa6SilenDetect;
FOna7IndexFone: TmicDTMFBoxXa7IndexFone;
FOna8MicAPIConect: TmicDTMFBoxXa8MicAPIConect;
FOnChange: TNotifyEvent;
FOnClick: TNotifyEvent;
FOnCloseUp: TNotifyEvent;
FOnDblClick: TNotifyEvent;
FOnDropDown: TNotifyEvent;
FOnKeyPress: TmicDTMFBoxXOnKeyPress;
FOnSelect: TNotifyEvent;
FIntf: ImicDTMFBoxX;
function GetControlInterface: ImicDTMFBoxX;
protected
procedure CreateControl;
procedure InitControlData; override;
function Get_Items: IStrings;
procedure Set_Items(const Value: IStrings);
public
function Stop: WordBool;
procedure ShowDlg;
procedure HideDlg;
procedure ClearAll;
procedure TestNotTipo(const Valor: WideString);
function micDTMFactive: WordBool;
function Initiate: WordBool;
procedure Clear;
procedure ClearSelection;
procedure DeleteSelected;
procedure SelectAll;
function DrawTextBiDiModeFlagsReadingOnly: Integer;
procedure InitiateAction;
function IsRightToLeft: WordBool;
function UseRightToLeftReading: WordBool;
function UseRightToLeftScrollBar: WordBool;
procedure SetSubComponent(IsSubComponent: WordBool);
property ControlInterface: ImicDTMFBoxX read GetControlInterface;
property DefaultInterface: ImicDTMFBoxX read GetControlInterface;
property SelText: WideString index 239 read GetWideStringProp write SetWideStringProp;
property DroppedDown: WordBool index 244 read GetWordBoolProp write SetWordBoolProp;
property SelLength: Integer index 245 read GetIntegerProp write SetIntegerProp;
property SelStart: Integer index 246 read GetIntegerProp write SetIntegerProp;
property DoubleBuffered: WordBool index 247 read GetWordBoolProp write SetWordBoolProp;
property AlignDisabled: WordBool index 248 read GetWordBoolProp;
property VisibleDockClientCount: Integer index 249 read GetIntegerProp;
published
property Anchors;
property a1Active: WordBool index 208 read GetWordBoolProp write SetWordBoolProp stored False;
property a2DDDLocal: WideString index 209 read GetWideStringProp write SetWideStringProp stored False;
property a3RootPlugIn: WideString index 210 read GetWideStringProp write SetWideStringProp stored False;
property a4PlugInRegistry: WideString index 211 read GetWideStringProp write SetWideStringProp stored False;
property a5ClearAllDigits: WideString index 212 read GetWideStringProp write SetWideStringProp stored False;
property a6ModoOperac: TOleEnum index 213 read GetTOleEnumProp write SetTOleEnumProp stored False;
property a7ScreenRestore: WordBool index 214 read GetWordBoolProp write SetWordBoolProp stored False;
property a8Sensibility: Integer index 215 read GetIntegerProp write SetIntegerProp stored False;
property a9NotDetectTipo: WordBool index 216 read GetWordBoolProp write SetWordBoolProp stored False;
property AutoComplete: WordBool index 217 read GetWordBoolProp write SetWordBoolProp stored False;
property AutoDropDown: WordBool index 218 read GetWordBoolProp write SetWordBoolProp stored False;
property AutoCloseUp: WordBool index 219 read GetWordBoolProp write SetWordBoolProp stored False;
property BevelInner: TOleEnum index 220 read GetTOleEnumProp write SetTOleEnumProp stored False;
property BevelKind: TOleEnum index 221 read GetTOleEnumProp write SetTOleEnumProp stored False;
property BevelOuter: TOleEnum index 222 read GetTOleEnumProp write SetTOleEnumProp stored False;
property Style: TOleEnum index 223 read GetTOleEnumProp write SetTOleEnumProp stored False;
property CharCase: TOleEnum index 224 read GetTOleEnumProp write SetTOleEnumProp stored False;
property Color: TColor index -501 read GetTColorProp write SetTColorProp stored False;
property Ctl3D: WordBool index 225 read GetWordBoolProp write SetWordBoolProp stored False;
property DragCursor: Smallint index 226 read GetSmallintProp write SetSmallintProp stored False;
property DragMode: TOleEnum index 227 read GetTOleEnumProp write SetTOleEnumProp stored False;
property DropDownCount: Integer index 228 read GetIntegerProp write SetIntegerProp stored False;
property Enabled: WordBool index -514 read GetWordBoolProp write SetWordBoolProp stored False;
property Font: TFont index -512 read GetTFontProp write SetTFontProp stored False;
property ImeMode: TOleEnum index 229 read GetTOleEnumProp write SetTOleEnumProp stored False;
property ImeName: WideString index 230 read GetWideStringProp write SetWideStringProp stored False;
property ItemHeight: Integer index 231 read GetIntegerProp write SetIntegerProp stored False;
property ItemIndex: Integer index 232 read GetIntegerProp write SetIntegerProp stored False;
property MaxLength: Integer index 233 read GetIntegerProp write SetIntegerProp stored False;
property ParentColor: WordBool index 234 read GetWordBoolProp write SetWordBoolProp stored False;
property ParentCtl3D: WordBool index 235 read GetWordBoolProp write SetWordBoolProp stored False;
property Sorted: WordBool index 236 read GetWordBoolProp write SetWordBoolProp stored False;
property Text: WideString index -517 read GetWideStringProp write SetWideStringProp stored False;
property Visible: WordBool index 237 read GetWordBoolProp write SetWordBoolProp stored False;
property Items: IStrings read Get_Items write Set_Items stored False;
property Ona1DetectAll: TmicDTMFBoxXa1DetectAll read FOna1DetectAll write FOna1DetectAll;
property Ona2DetectDigit: TmicDTMFBoxXa2DetectDigit read FOna2DetectDigit write FOna2DetectDigit;
property Ona3FormatPhone: TmicDTMFBoxXa3FormatPhone read FOna3FormatPhone write FOna3FormatPhone;
property Ona4LevelSignal: TmicDTMFBoxXa4LevelSignal read FOna4LevelSignal write FOna4LevelSignal;
property Ona5HandShake: TmicDTMFBoxXa5HandShake read FOna5HandShake write FOna5HandShake;
property Ona6SilenDetect: TmicDTMFBoxXa6SilenDetect read FOna6SilenDetect write FOna6SilenDetect;
property Ona7IndexFone: TmicDTMFBoxXa7IndexFone read FOna7IndexFone write FOna7IndexFone;
property Ona8MicAPIConect: TmicDTMFBoxXa8MicAPIConect read FOna8MicAPIConect write FOna8MicAPIConect;
property OnChange: TNotifyEvent read FOnChange write FOnChange;
property OnClick: TNotifyEvent read FOnClick write FOnClick;
property OnCloseUp: TNotifyEvent read FOnCloseUp write FOnCloseUp;
property OnDblClick: TNotifyEvent read FOnDblClick write FOnDblClick;
property OnDropDown: TNotifyEvent read FOnDropDown write FOnDropDown;
property OnKeyPress: TmicDTMFBoxXOnKeyPress read FOnKeyPress write FOnKeyPress;
property OnSelect: TNotifyEvent read FOnSelect write FOnSelect;
end;
procedure Register;
resourcestring
dtlServerPage = 'Servers';
dtlOcxPage = 'ActiveX';
implementation
uses ComObj;
procedure TmicDTMFBoxX.InitControlData;
const
CEventDispIDs: array [0..14] of DWORD = (
$000000C9, $000000CA, $000000CB, $000000CC, $000000CD, $000000CE,
$000000CF, $000000D0, $000000D1, $000000D2, $000000D3, $000000D4,
$000000D5, $000000D6, $000000D7);
CTFontIDs: array [0..0] of DWORD = (
$FFFFFE00);
CControlData: TControlData2 = (
ClassID: '{B5402D0F-2DA9-4042-B153-5577ABC88C4C}';
EventIID: '{A852D885-B4EE-4AD4-A143-C09A048B62E5}';
EventCount: 15;
EventDispIDs: @CEventDispIDs;
LicenseKey: nil (*HR:$80040154*);
Flags: $0000002D;
Version: 401;
FontCount: 1;
FontIDs: @CTFontIDs);
begin
ControlData := @CControlData;
TControlData2(CControlData).FirstEventOfs := Cardinal(@@FOna1DetectAll) - Cardinal(Self);
end;
procedure TmicDTMFBoxX.CreateControl;
procedure DoCreate;
begin
FIntf := IUnknown(OleObject) as ImicDTMFBoxX;
end;
begin
if FIntf = nil then DoCreate;
end;
function TmicDTMFBoxX.GetControlInterface: ImicDTMFBoxX;
begin
CreateControl;
Result := FIntf;
end;
function TmicDTMFBoxX.Get_Items: IStrings;
begin
Result := DefaultInterface.Items;
end;
procedure TmicDTMFBoxX.Set_Items(const Value: IStrings);
begin
DefaultInterface.Set_Items(Value);
end;
function TmicDTMFBoxX.Stop: WordBool;
begin
Result := DefaultInterface.Stop;
end;
procedure TmicDTMFBoxX.ShowDlg;
begin
DefaultInterface.ShowDlg;
end;
procedure TmicDTMFBoxX.HideDlg;
begin
DefaultInterface.HideDlg;
end;
procedure TmicDTMFBoxX.ClearAll;
begin
DefaultInterface.ClearAll;
end;
procedure TmicDTMFBoxX.TestNotTipo(const Valor: WideString);
begin
DefaultInterface.TestNotTipo(Valor);
end;
function TmicDTMFBoxX.micDTMFactive: WordBool;
begin
Result := DefaultInterface.micDTMFactive;
end;
function TmicDTMFBoxX.Initiate: WordBool;
begin
Result := DefaultInterface.Initiate;
end;
procedure TmicDTMFBoxX.Clear;
begin
DefaultInterface.Clear;
end;
procedure TmicDTMFBoxX.ClearSelection;
begin
DefaultInterface.ClearSelection;
end;
procedure TmicDTMFBoxX.DeleteSelected;
begin
DefaultInterface.DeleteSelected;
end;
procedure TmicDTMFBoxX.SelectAll;
begin
DefaultInterface.SelectAll;
end;
function TmicDTMFBoxX.DrawTextBiDiModeFlagsReadingOnly: Integer;
begin
Result := DefaultInterface.DrawTextBiDiModeFlagsReadingOnly;
end;
procedure TmicDTMFBoxX.InitiateAction;
begin
DefaultInterface.InitiateAction;
end;
function TmicDTMFBoxX.IsRightToLeft: WordBool;
begin
Result := DefaultInterface.IsRightToLeft;
end;
function TmicDTMFBoxX.UseRightToLeftReading: WordBool;
begin
Result := DefaultInterface.UseRightToLeftReading;
end;
function TmicDTMFBoxX.UseRightToLeftScrollBar: WordBool;
begin
Result := DefaultInterface.UseRightToLeftScrollBar;
end;
procedure TmicDTMFBoxX.SetSubComponent(IsSubComponent: WordBool);
begin
DefaultInterface.SetSubComponent(IsSubComponent);
end;
procedure Register;
begin
RegisterComponents(dtlOcxPage, [TmicDTMFBoxX]);
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -