Kod: Tümünü seç
if screen.cursor=crHandPoint then
.....
Kod: Tümünü seç
if screen.cursors[ord(screen.cursor)]=crHandPoint then
.....
Kod: Tümünü seç
var
p:TCursor;
...
...
p:=GetCursor();
if p=crHandPoint then
.....
Kod: Tümünü seç
if screen.cursor=crHandPoint then
.....
Kod: Tümünü seç
if screen.cursors[ord(screen.cursor)]=crHandPoint then
.....
Kod: Tümünü seç
var
p:TCursor;
...
...
p:=GetCursor();
if p=crHandPoint then
.....
Kod: Tümünü seç
var
CI: TCursorInfo;
begin
CI.cbSize := SizeOf(CI);
if GetCursorInfo(CI) then
begin
if CI.hCursor=65555 then //crIBeam(İmleç) için
showmessage('asd');
end;
end;
Kod: Tümünü seç
type TCursor = -32768..32767
const
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);
Kod: Tümünü seç
var
CI: TCursorInfo;
begin
CI.cbSize := SizeOf(CI);
if GetCursorInfo(CI) then
begin
if CI.hCursor=65555 then //////Breakpoint ekleyelim birde buraya
begin
(Sender as TLabel).Caption:='asd';
end;
end;
end;
Kod: Tümünü seç
case (Sender as TLabel).Cursor of
crDefault : (Sender as TLabel).Caption := 'crDefault';
crHandPoint : (Sender as TLabel).Caption := 'crHandPoint';
crIBeam : (Sender as TLabel).Caption := 'crIBeam';
end;
Teşekkür ediyorum...emin_as yazdı: Bu arada breakpointtan sonra çalışan fonksiyonlara pek güvenme, beklediğin cursor bilgisi getirmeyebilir. O nedenle bir tane memo koyup, degerleri buraya ekle.
Kod: Tümünü seç
var
CI: TCursorInfo;
begin
CI.cbSize := SizeOf(CI);
if GetCursorInfo(CI) then
begin
if CI.hCursor=65583 then
begin
...
end;
end;
end;