delphi 中 键盘操作..检测功能键是否按下,TShiftState类 为什么判断时候 要用 >=
2个回答
2012-01-06
展开全部
定义:TShiftState = set of (ssShift, ssAlt, ssCtrl, ssLeft, ssRight, ssMiddle, ssDouble)
看set的帮助:X <= Y is True just in case every member of X is a member of Y; Z >= W is equivalent to W <= Z. U = V is True just in case U and V contain exactly the same members; otherwise, U <> V is True.
也就是说set的>=操作其实就相当于in操作。
看set的帮助:X <= Y is True just in case every member of X is a member of Y; Z >= W is equivalent to W <= Z. U = V is True just in case U and V contain exactly the same members; otherwise, U <> V is True.
也就是说set的>=操作其实就相当于in操作。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询