mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 08:19:41 +02:00
focus window only if possible
git-svn-id: trunk@6461 -
This commit is contained in:
parent
1eb68ebe5b
commit
51fba3ead7
@ -782,7 +782,8 @@ Begin
|
||||
if lWinControl is TRadioButton then
|
||||
Windows.SendMessage(Window, BM_SETCHECK, BST_CHECKED, 0);
|
||||
// focus window
|
||||
if Windows.GetFocus <> Window then
|
||||
if (Windows.GetFocus <> Window) and
|
||||
((lWinControl = nil) or (lWinControl.CanFocus)) then
|
||||
Windows.SetFocus(Window);
|
||||
End;
|
||||
WM_LBUTTONUP:
|
||||
@ -1488,6 +1489,9 @@ end;
|
||||
|
||||
{
|
||||
$Log$
|
||||
Revision 1.178 2005/01/02 22:27:15 micha
|
||||
focus window only if possible
|
||||
|
||||
Revision 1.177 2005/01/02 22:18:52 micha
|
||||
focus window on left-click
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user