mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-09 23:35:57 +02:00
win32: let TComboBox.CloseUp fire before Change (delphi compatible). Fix #22352
git-svn-id: trunk@37846 -
This commit is contained in:
parent
841ea14c49
commit
994d2dce9f
@ -1300,10 +1300,8 @@ begin
|
||||
end;
|
||||
CBN_CLOSEUP:
|
||||
begin
|
||||
// according to msdn CBN_CLOSEUP can happen before CBN_SELCHANGE and
|
||||
// unfortunately it is simple truth. but we need correct order in the LCL
|
||||
PostMessage(lWinControl.Handle, CN_COMMAND, WParam, LParam);
|
||||
Exit;
|
||||
if TCustomComboBox(lWinControl).Style in [csSimple, csDropDown] then
|
||||
UpdateComboBoxText(TCustomComboBox(lWinControl));
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user