moved checking of radiobutton to wm_setfocus, so keyboard action is handled too (issue #1171)

git-svn-id: trunk@8017 -
This commit is contained in:
vincents 2005-10-31 15:39:28 +00:00
parent e2ae1a8286
commit e90d89dda6

View File

@ -1054,9 +1054,6 @@ Begin
// CheckListBox functionality
if lWinControl is TCheckListBox then
CheckListBoxLButtonDown;
// RadioButton functionality
if lWinControl is TRadioButton then
Windows.SendMessage(Window, BM_SETCHECK, BST_CHECKED, 0);
// focus window
if (Windows.GetFocus <> Window) and
((lWinControl = nil) or (lWinControl.CanFocus)) then
@ -1306,6 +1303,9 @@ Begin
LMessage.Msg := LM_SETFOCUS;
if (lWinControl <> nil) and (lWinControl.FCompStyle = csEdit) then
Windows.SendMessage(Window, EM_SETSEL, 0, -1);
// RadioButton functionality
if (lWinControl <> nil) and (lWinControl is TRadioButton) then
Windows.SendMessage(Window, BM_SETCHECK, BST_CHECKED, 0);
End;
WM_SHOWWINDOW:
Begin