mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 14:31:29 +02:00
* Put in edit state when selecting text in DBComboBox. Fix #20477
git-svn-id: trunk@32867 -
This commit is contained in:
parent
92e8c1695c
commit
4f339b94c0
@ -675,8 +675,9 @@ Type
|
||||
|
||||
TDBComboBox = class(TCustomDBComboBox)
|
||||
protected
|
||||
procedure UpdateData(Sender: TObject); override;
|
||||
procedure DataChange(Sender: TObject); override;
|
||||
procedure Select; override;
|
||||
procedure UpdateData(Sender: TObject); override;
|
||||
published
|
||||
property Anchors;
|
||||
property ArrowKeysTraverseList;
|
||||
|
@ -18,6 +18,16 @@
|
||||
|
||||
{ TDBComboBox }
|
||||
|
||||
procedure TDBComboBox.Select;
|
||||
begin
|
||||
//avoid reseting text when calling select
|
||||
FDataLink.OnDataChange := nil;
|
||||
FDataLink.Edit;
|
||||
FDataLink.Modified;
|
||||
FDataLink.OnDataChange := @DataChange;
|
||||
inherited Select;
|
||||
end;
|
||||
|
||||
procedure TDBComboBox.UpdateData(Sender: TObject);
|
||||
begin
|
||||
FDataLink.Field.Text := Text;
|
||||
|
Loading…
Reference in New Issue
Block a user