mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-07 11:38:18 +02:00
implemented TComboBox dropdown from Yoyong
git-svn-id: trunk@4252 -
This commit is contained in:
parent
3ba87e0a48
commit
a5cac5fc10
@ -364,6 +364,20 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TCustomComboBox.KeyDown(var Key: Word; Shift: TShiftState);
|
||||||
|
begin
|
||||||
|
inherited KeyDown(Key, Shift);
|
||||||
|
if AutoDropDown then
|
||||||
|
begin
|
||||||
|
case Key of
|
||||||
|
VK_TAB,VK_RETURN:
|
||||||
|
DroppedDown := False;
|
||||||
|
else
|
||||||
|
DroppedDown := True;
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
{------------------------------------------------------------------------------
|
{------------------------------------------------------------------------------
|
||||||
function TCustomComboBox.SelectItem(const AnItem: String): Boolean;
|
function TCustomComboBox.SelectItem(const AnItem: String): Boolean;
|
||||||
|
|
||||||
@ -736,6 +750,9 @@ end;
|
|||||||
|
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.27 2003/06/10 13:35:54 mattias
|
||||||
|
implemented TComboBox dropdown from Yoyong
|
||||||
|
|
||||||
Revision 1.26 2003/06/07 09:34:21 mattias
|
Revision 1.26 2003/06/07 09:34:21 mattias
|
||||||
added ambigius compiled unit test for packages
|
added ambigius compiled unit test for packages
|
||||||
|
|
||||||
|
@ -240,6 +240,7 @@ type
|
|||||||
procedure SetSelText(const Val : string); virtual;
|
procedure SetSelText(const Val : string); virtual;
|
||||||
procedure SetSorted(Val : boolean); virtual;
|
procedure SetSorted(Val : boolean); virtual;
|
||||||
procedure SetStyle(Val : TComboBoxStyle); virtual;
|
procedure SetStyle(Val : TComboBoxStyle); virtual;
|
||||||
|
procedure KeyDown(var Key : Word; Shift : TShiftState); override;
|
||||||
|
|
||||||
property DropDownCount: Integer read
|
property DropDownCount: Integer read
|
||||||
FDropDownCount write SetDropDownCount default 8;
|
FDropDownCount write SetDropDownCount default 8;
|
||||||
@ -287,6 +288,7 @@ type
|
|||||||
property ItemIndex;
|
property ItemIndex;
|
||||||
published
|
published
|
||||||
property Anchors;
|
property Anchors;
|
||||||
|
property AutoDropDown;
|
||||||
property Ctl3D;
|
property Ctl3D;
|
||||||
property DropDownCount;
|
property DropDownCount;
|
||||||
property Enabled;
|
property Enabled;
|
||||||
@ -1450,6 +1452,9 @@ end.
|
|||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.93 2003/06/10 13:35:54 mattias
|
||||||
|
implemented TComboBox dropdown from Yoyong
|
||||||
|
|
||||||
Revision 1.92 2003/06/07 09:34:21 mattias
|
Revision 1.92 2003/06/07 09:34:21 mattias
|
||||||
added ambigius compiled unit test for packages
|
added ambigius compiled unit test for packages
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user