Fixes wince button clicking see bug #17702

git-svn-id: trunk@27828 -
This commit is contained in:
sekelsenmat 2010-10-24 09:14:54 +00:00
parent 1323d7f8d1
commit 293f373040

View File

@ -1187,12 +1187,12 @@ begin
end
// WM_COMMAND in the win32 interface to a button generates an OnClick event
// But in Windows CE this generates two OnClick events when the <ENTER> key
// is pressed in a button. Therefore this behavior was disabled.
// See bug 17680
// is pressed in a button. For this is required for button clicking.
// See bugs 17680 and 17702
else if lWinControl is TCustomButton then
begin
case Hi(WParam) of
BN_CLICKED: LMessage.Msg := LM_NULL;//LM_CLICKED;
BN_CLICKED: LMessage.Msg := LM_CLICKED;
BN_KILLFOCUS: LMessage.Msg := LM_EXIT;
end
end