mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-11 09:28:07 +02:00
LCL: Call EditingDone from TCustomDBComboBox on CloseUp when style is DropDownList. Issue #27186, patch from Tony Whyman.
git-svn-id: trunk@56681 -
This commit is contained in:
parent
59ab7244a8
commit
20ecd8933d
@ -710,6 +710,7 @@ Type
|
||||
procedure SetReadOnly(const AValue: Boolean);
|
||||
procedure CMGetDataLink(var Message: TLMessage); message CM_GETDATALINK;
|
||||
protected
|
||||
procedure CloseUp; override;
|
||||
procedure DataChange(Sender: TObject); virtual; abstract;
|
||||
procedure Notification(AComponent: TComponent; Operation: TOperation); override;
|
||||
procedure Change; override;
|
||||
|
@ -65,6 +65,14 @@ begin
|
||||
Message.Result := PtrUInt(FDataLink);
|
||||
end;
|
||||
|
||||
procedure TCustomDBComboBox.CloseUp;
|
||||
begin
|
||||
if [csLoading,csDestroying,csDesigning]*ComponentState<>[] then exit;
|
||||
if not ReadOnly then
|
||||
EditingDone;
|
||||
inherited CloseUp;
|
||||
end;
|
||||
|
||||
procedure TCustomDBComboBox.Notification(AComponent: TComponent; Operation: TOperation);
|
||||
begin
|
||||
inherited Notification(AComponent, Operation);
|
||||
|
Loading…
Reference in New Issue
Block a user