mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-15 17:29:40 +02:00
win32: revert 37846 #994d2dce9f. Now combobox events are consistent across widgetsets although slightly different from Delphi. Fix #22739
git-svn-id: trunk@39677 -
This commit is contained in:
parent
62360dc5e3
commit
be9e302113
@ -1330,8 +1330,10 @@ begin
|
||||
end;
|
||||
CBN_CLOSEUP:
|
||||
begin
|
||||
if TCustomComboBox(lWinControl).Style in [csSimple, csDropDown] then
|
||||
UpdateComboBoxText(TCustomComboBox(lWinControl));
|
||||
// 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;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user