📄 base_combobox.pas
字号:
unit Base_ComboBox;
interface
uses
SysUtils, Classes, Controls, StdCtrls;
type
TBase_ComboBox = class(TComboBox)
private
{ Private declarations }
inItemsValue:TStrings;//Items的实际值
protected
{ Protected declarations }
public
{ Public declarations }
constructor Create(AOwner:TComponent);override;
destructor Destroy;override;
published
{ Published declarations }
property itemsvalue:TStrings read initemsvalue write initemsvalue;
property Text;
end;
procedure Register;
implementation
procedure Register;
begin
RegisterComponents('Base_Controls', [TBase_ComboBox]);
end;
constructor TBase_ComboBox.Create(AOwner:TComponent);
begin
//
inherited Create(Aowner);
Text:='';
inItemsValue:=TStringList.Create;
end;
destructor TBase_ComboBox.Destroy;
begin
inItemsValue.Free;
inherited destroy;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -