procedure TForm7.BitBtn1MouseMove(Sender: TObject; Shift: TShiftState; X,
  Y: Integer);
begin
  Screen.Cursor := -21;
  TBitBtn(Sender).Font.Color := clRed;
end;procedure TForm7.Panel2MouseMove(Sender: TObject; Shift: TShiftState; X,
  Y: Integer);
begin
  Screen.Cursor := -2;
  BitBtn1.Font.Color := clBlue;
  BitBtn2.Font.Color := clBlue;
  BitBtn3.Font.Color := clBlue;
  BitBtn4.Font.Color := clBlue;
  BitBtn5.Font.Color := clBlue;
  BitBtn6.Font.Color := clBlue;
  BitBtn7.Font.Color := clBlue;
  BitBtn8.Font.Color := clBlue;
end;相关代码如上,这是我从一本书里面看到的,我想请教一下这里面的Screen.Cursor := -21;和Screen.Cursor := -2;是做什么用的啊?刚学DELPHI不久,没看明白。

解决方案 »

  1.   

    Cursor: TCursorTCursor = -32768..32767;  crDefault     = TCursor(0);
      crNone        = TCursor(-1);
      crArrow       = TCursor(-2);
      crCross       = TCursor(-3);
      crIBeam       = TCursor(-4);
      crSize        = TCursor(-22);
      crSizeNESW    = TCursor(-6);
      crSizeNS      = TCursor(-7);
      crSizeNWSE    = TCursor(-8);
      crSizeWE      = TCursor(-9);
      crUpArrow     = TCursor(-10);
      crHourGlass   = TCursor(-11);
      crDrag        = TCursor(-12);
      crNoDrop      = TCursor(-13);
      crHSplit      = TCursor(-14);
      crVSplit      = TCursor(-15);
      crMultiDrag   = TCursor(-16);
      crSQLWait     = TCursor(-17);
      crNo          = TCursor(-18);
      crAppStart    = TCursor(-19);
      crHelp        = TCursor(-20);
      crHandPoint   = TCursor(-21);
      crSizeAll     = TCursor(-22);