mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2026-01-04 15:10:37 +01:00
Fixes spinedit value change with keyboard in wince
git-svn-id: trunk@21354 -
This commit is contained in:
parent
c0cd760d2d
commit
48179b9ad7
@ -1180,19 +1180,24 @@ begin
|
||||
BN_CLICKED: LMessage.Msg := LM_CLICKED;
|
||||
BN_KILLFOCUS: LMessage.Msg := LM_EXIT;
|
||||
end
|
||||
// TCustomMemo and TCustomFloatSpinEdit are also TCustomEdit
|
||||
// so dont check first only for TCustomEdit
|
||||
// Fixes bug http://bugs.freepascal.org/view.php?id=14378
|
||||
else if (lWinControl is TCustomEdit) then
|
||||
case Hi(WParam) of
|
||||
EN_CHANGE: LMessage.Msg := CM_TEXTCHANGED;
|
||||
end
|
||||
else if (lWinControl is TCustomFloatSpinEdit) then
|
||||
case Hi(WParam) of
|
||||
EN_CHANGE: HandleSpinEditChange(TCustomFloatSpinEdit(lWinControl));
|
||||
end
|
||||
else if (lWinControl is TCustomMemo) then
|
||||
case Hi(WParam) of
|
||||
begin
|
||||
if (lWinControl is TCustomMemo) then
|
||||
case HIWORD(WParam) of
|
||||
// multiline edit doesn't send EN_CHANGE, so use EN_UPDATE
|
||||
EN_UPDATE: LMessage.Msg := CM_TEXTCHANGED;
|
||||
end
|
||||
else
|
||||
case HIWORD(WParam) of
|
||||
EN_CHANGE:
|
||||
if (lWinControl is TCustomFloatSpinEdit) then
|
||||
HandleSpinEditChange(TCustomFloatSpinEdit(lWinControl))
|
||||
else LMessage.Msg := CM_TEXTCHANGED;
|
||||
end;
|
||||
end
|
||||
else if (lWinControl is TCustomListBox) then
|
||||
case Hi(WParam) of
|
||||
LBN_SELCHANGE: LMessage.Msg := LM_SELCHANGE;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user