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不久,没看明白。
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不久,没看明白。
解决方案 »
- 请前辈赐教一个服务的写法,谢谢
- 公交查询系统问换乘问题
- 求助。grid里怎么能让单元格固定焦点
- 程序中怎么调用邮件客户端程序(foxmail,outlook等)怎样发附件啊?
- datetimepicker 的用法
- 我在窗口中加了“RadioGroup”和“Label”两个组件,把“Label”至顶,还是被“RadioGroup”盖住了,怎么办?
- delphi教程
- 请教一个C代码转换成delphi的简单问题
- 请问需要引用什么单元,才能够识别PITEMIDLIST,BROWSEINFO...?
- BDE坏了,发给我个BDE及升级包或提供网址者得分
- 在线等,关于类引用动态生成控件出错的问题
- 请教高手在开发进销存软件,单据修改的问题!
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);