📄 comexlistbox.pas
字号:
unit COMExListBox;
{
Copyright 2006, Peter Millard
This file is part of Exodus.
Exodus is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
Exodus is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Exodus; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
}
{-----------------------------------------------------------------------------}
{-----------------------------------------------------------------------------}
{ This is autogenerated code using the COMGuiGenerator. DO NOT MODIFY BY HAND }
{-----------------------------------------------------------------------------}
{-----------------------------------------------------------------------------}
{$WARN SYMBOL_PLATFORM OFF}
interface
uses
ActiveX,Classes,COMExFont,COMExPopupMenu,ComObj,Controls,Exodus_TLB,Forms,Graphics,StdCtrls,StdVcl,TntMenus,TntStdCtrls;
type
TExControlListBox = class(TAutoObject, IExodusControl, IExodusControlListBox)
public
constructor Create(control: TTntListBox);
private
_control: TTntListBox;
protected
function Get_ControlType: ExodusControlTypes; safecall;
function Get_Name: Widestring; safecall;
procedure Set_Name(const Value: Widestring); safecall;
function Get_Tag: Integer; safecall;
procedure Set_Tag(Value: Integer); safecall;
function Get_Left: Integer; safecall;
procedure Set_Left(Value: Integer); safecall;
function Get_Top: Integer; safecall;
procedure Set_Top(Value: Integer); safecall;
function Get_Width: Integer; safecall;
procedure Set_Width(Value: Integer); safecall;
function Get_Height: Integer; safecall;
procedure Set_Height(Value: Integer); safecall;
function Get_Cursor: Integer; safecall;
procedure Set_Cursor(Value: Integer); safecall;
function Get_Hint: Widestring; safecall;
procedure Set_Hint(const Value: Widestring); safecall;
function Get_HelpType: Integer; safecall;
procedure Set_HelpType(Value: Integer); safecall;
function Get_HelpKeyword: Widestring; safecall;
procedure Set_HelpKeyword(const Value: Widestring); safecall;
function Get_HelpContext: Integer; safecall;
procedure Set_HelpContext(Value: Integer); safecall;
function Get_TabStop: Integer; safecall;
procedure Set_TabStop(Value: Integer); safecall;
function Get_Style: Integer; safecall;
procedure Set_Style(Value: Integer); safecall;
function Get_AutoComplete: Integer; safecall;
procedure Set_AutoComplete(Value: Integer); safecall;
function Get_Align: Integer; safecall;
procedure Set_Align(Value: Integer); safecall;
function Get_BevelInner: Integer; safecall;
procedure Set_BevelInner(Value: Integer); safecall;
function Get_BevelKind: Integer; safecall;
procedure Set_BevelKind(Value: Integer); safecall;
function Get_BevelOuter: Integer; safecall;
procedure Set_BevelOuter(Value: Integer); safecall;
function Get_BiDiMode: Integer; safecall;
procedure Set_BiDiMode(Value: Integer); safecall;
function Get_BorderStyle: Integer; safecall;
procedure Set_BorderStyle(Value: Integer); safecall;
function Get_Color: Integer; safecall;
procedure Set_Color(Value: Integer); safecall;
function Get_Columns: Integer; safecall;
procedure Set_Columns(Value: Integer); safecall;
function Get_Ctl3D: Integer; safecall;
procedure Set_Ctl3D(Value: Integer); safecall;
function Get_DragCursor: Integer; safecall;
procedure Set_DragCursor(Value: Integer); safecall;
function Get_DragKind: Integer; safecall;
procedure Set_DragKind(Value: Integer); safecall;
function Get_DragMode: Integer; safecall;
procedure Set_DragMode(Value: Integer); safecall;
function Get_Enabled: Integer; safecall;
procedure Set_Enabled(Value: Integer); safecall;
function Get_ExtendedSelect: Integer; safecall;
procedure Set_ExtendedSelect(Value: Integer); safecall;
function Get_Font: IExodusControlFont; safecall;
function Get_ImeMode: Integer; safecall;
procedure Set_ImeMode(Value: Integer); safecall;
function Get_ImeName: Widestring; safecall;
procedure Set_ImeName(const Value: Widestring); safecall;
function Get_IntegralHeight: Integer; safecall;
procedure Set_IntegralHeight(Value: Integer); safecall;
function Get_ItemHeight: Integer; safecall;
procedure Set_ItemHeight(Value: Integer); safecall;
function Get_ItemsCount: integer; safecall;
function Get_Items(Index: integer): Widestring; safecall;
procedure Set_Items(Index: integer; const Value: Widestring); safecall;
function Get_MultiSelect: Integer; safecall;
procedure Set_MultiSelect(Value: Integer); safecall;
function Get_ParentBiDiMode: Integer; safecall;
procedure Set_ParentBiDiMode(Value: Integer); safecall;
function Get_ParentColor: Integer; safecall;
procedure Set_ParentColor(Value: Integer); safecall;
function Get_ParentCtl3D: Integer; safecall;
procedure Set_ParentCtl3D(Value: Integer); safecall;
function Get_ParentFont: Integer; safecall;
procedure Set_ParentFont(Value: Integer); safecall;
function Get_ParentShowHint: Integer; safecall;
procedure Set_ParentShowHint(Value: Integer); safecall;
function Get_PopupMenu: IExodusControlPopupMenu; safecall;
function Get_ScrollWidth: Integer; safecall;
procedure Set_ScrollWidth(Value: Integer); safecall;
function Get_ShowHint: Integer; safecall;
procedure Set_ShowHint(Value: Integer); safecall;
function Get_Sorted: Integer; safecall;
procedure Set_Sorted(Value: Integer); safecall;
function Get_TabOrder: Integer; safecall;
procedure Set_TabOrder(Value: Integer); safecall;
function Get_TabWidth: Integer; safecall;
procedure Set_TabWidth(Value: Integer); safecall;
function Get_Visible: Integer; safecall;
procedure Set_Visible(Value: Integer); safecall;
end;
{---------------------------------------}
{---------------------------------------}
{---------------------------------------}
implementation
constructor TExControlListBox.Create(control: TTntListBox);
begin
_control := control;
end;
function TExControlListBox.Get_ControlType: ExodusControlTypes;
begin
Result := ExodusControlListBox;
end;
function TExControlListBox.Get_Name: Widestring;
begin
Result := _control.Name;
end;
procedure TExControlListBox.Set_Name(const Value: Widestring);
begin
_control.Name := Value;
end;
function TExControlListBox.Get_Tag: Integer;
begin
Result := _control.Tag;
end;
procedure TExControlListBox.Set_Tag(Value: Integer);
begin
_control.Tag := Value;
end;
function TExControlListBox.Get_Left: Integer;
begin
Result := _control.Left;
end;
procedure TExControlListBox.Set_Left(Value: Integer);
begin
_control.Left := Value;
end;
function TExControlListBox.Get_Top: Integer;
begin
Result := _control.Top;
end;
procedure TExControlListBox.Set_Top(Value: Integer);
begin
_control.Top := Value;
end;
function TExControlListBox.Get_Width: Integer;
begin
Result := _control.Width;
end;
procedure TExControlListBox.Set_Width(Value: Integer);
begin
_control.Width := Value;
end;
function TExControlListBox.Get_Height: Integer;
begin
Result := _control.Height;
end;
procedure TExControlListBox.Set_Height(Value: Integer);
begin
_control.Height := Value;
end;
function TExControlListBox.Get_Cursor: Integer;
begin
Result := _control.Cursor;
end;
procedure TExControlListBox.Set_Cursor(Value: Integer);
begin
_control.Cursor := Value;
end;
function TExControlListBox.Get_Hint: Widestring;
begin
Result := _control.Hint;
end;
procedure TExControlListBox.Set_Hint(const Value: Widestring);
begin
_control.Hint := Value;
end;
function TExControlListBox.Get_HelpType: Integer;
begin
if (_control.HelpType = htKeyword) then Result := 0;
if (_control.HelpType = htContext) then Result := 1;
end;
procedure TExControlListBox.Set_HelpType(Value: Integer);
begin
if (Value = 0) then _control.HelpType := htKeyword;
if (Value = 1) then _control.HelpType := htContext;
end;
function TExControlListBox.Get_HelpKeyword: Widestring;
begin
Result := _control.HelpKeyword;
end;
procedure TExControlListBox.Set_HelpKeyword(const Value: Widestring);
begin
_control.HelpKeyword := Value;
end;
function TExControlListBox.Get_HelpContext: Integer;
begin
Result := _control.HelpContext;
end;
procedure TExControlListBox.Set_HelpContext(Value: Integer);
begin
_control.HelpContext := Value;
end;
function TExControlListBox.Get_TabStop: Integer;
begin
if (_control.TabStop = False) then Result := 0;
if (_control.TabStop = True) then Result := 1;
end;
procedure TExControlListBox.Set_TabStop(Value: Integer);
begin
if (Value = 0) then _control.TabStop := False;
if (Value = 1) then _control.TabStop := True;
end;
function TExControlListBox.Get_Style: Integer;
begin
if (_control.Style = lbStandard) then Result := 0;
if (_control.Style = lbOwnerDrawFixed) then Result := 1;
if (_control.Style = lbOwnerDrawVariable) then Result := 2;
if (_control.Style = lbVirtual) then Result := 3;
if (_control.Style = lbVirtualOwnerDraw) then Result := 4;
end;
procedure TExControlListBox.Set_Style(Value: Integer);
begin
if (Value = 0) then _control.Style := lbStandard;
if (Value = 1) then _control.Style := lbOwnerDrawFixed;
if (Value = 2) then _control.Style := lbOwnerDrawVariable;
if (Value = 3) then _control.Style := lbVirtual;
if (Value = 4) then _control.Style := lbVirtualOwnerDraw;
end;
function TExControlListBox.Get_AutoComplete: Integer;
begin
if (_control.AutoComplete = False) then Result := 0;
if (_control.AutoComplete = True) then Result := 1;
end;
procedure TExControlListBox.Set_AutoComplete(Value: Integer);
begin
if (Value = 0) then _control.AutoComplete := False;
if (Value = 1) then _control.AutoComplete := True;
end;
function TExControlListBox.Get_Align: Integer;
begin
if (_control.Align = alNone) then Result := 0;
if (_control.Align = alTop) then Result := 1;
if (_control.Align = alBottom) then Result := 2;
if (_control.Align = alLeft) then Result := 3;
if (_control.Align = alRight) then Result := 4;
if (_control.Align = alClient) then Result := 5;
if (_control.Align = alCustom) then Result := 6;
end;
procedure TExControlListBox.Set_Align(Value: Integer);
begin
if (Value = 0) then _control.Align := alNone;
if (Value = 1) then _control.Align := alTop;
if (Value = 2) then _control.Align := alBottom;
if (Value = 3) then _control.Align := alLeft;
if (Value = 4) then _control.Align := alRight;
if (Value = 5) then _control.Align := alClient;
if (Value = 6) then _control.Align := alCustom;
end;
function TExControlListBox.Get_BevelInner: Integer;
begin
if (_control.BevelInner = bvNone) then Result := 0;
if (_control.BevelInner = bvLowered) then Result := 1;
if (_control.BevelInner = bvRaised) then Result := 2;
if (_control.BevelInner = bvSpace) then Result := 3;
end;
procedure TExControlListBox.Set_BevelInner(Value: Integer);
begin
if (Value = 0) then _control.BevelInner := bvNone;
if (Value = 1) then _control.BevelInner := bvLowered;
if (Value = 2) then _control.BevelInner := bvRaised;
if (Value = 3) then _control.BevelInner := bvSpace;
end;
function TExControlListBox.Get_BevelKind: Integer;
begin
if (_control.BevelKind = bkNone) then Result := 0;
if (_control.BevelKind = bkTile) then Result := 1;
if (_control.BevelKind = bkSoft) then Result := 2;
if (_control.BevelKind = bkFlat) then Result := 3;
end;
procedure TExControlListBox.Set_BevelKind(Value: Integer);
begin
if (Value = 0) then _control.BevelKind := bkNone;
if (Value = 1) then _control.BevelKind := bkTile;
if (Value = 2) then _control.BevelKind := bkSoft;
if (Value = 3) then _control.BevelKind := bkFlat;
end;
function TExControlListBox.Get_BevelOuter: Integer;
begin
if (_control.BevelOuter = bvNone) then Result := 0;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -