fixed cursor changing in designer mode (error introduced in fix #11001)

git-svn-id: trunk@11005 -
This commit is contained in:
paul 2007-04-26 03:29:33 +00:00
parent 0971b9572a
commit 56e1a6af27

View File

@ -441,6 +441,8 @@ class procedure TWin32WSWinControl.SetCursor(const AWinControl: TWinControl;
begin
// in win32 controls have no cursor property. they can change their cursor
// by listening WM_SETCURSOR and adjusting global cursor
if csDesigning in AWinControl.ComponentState then
Windows.SetCursor(ACursor);
end;
class procedure TWin32WSWinControl.ConstraintsChange(const AWinControl: TWinControl);