Web-Kaynak
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Web-Kaynak

Web-Kaynak


Bağlı değilsiniz. Bağlanın ya da kayıt olun

Label'a Yazılan Yazıyı Mouse Yönünde Hareket Ettiren Program

Aşağa gitmek  Mesaj [1 sayfadaki 1 sayfası]



Label1MouseMove
begin
if x<25 then
label1.Alignment:=taLeftJustify;
if (x>25) and (x<75) then
label1.Alignment:=tacenter;
if x>75 then
label1.Alignment:=tarightJustify;
if y<25 then
label1.Layout:=tltop;
if (y>25)and (y<75) then
label1.Layout:=tlcenter;
if y>75 then
label1.Layout:=tlbottom;
end;
end.
FormMouseMove
var
u,s:integer;
begin
s:=Label1.Left;
u:=Label1.Top;
if x<s+25 then
label1.Alignment:=taLeftJustify;
if (x>s+25) and (x<s+75) then
label1.Alignment:=tacenter;
if x>s+75 then
label1.Alignment:=tarightJustify;
if y<u+25 then
label1.Layout:=tltop;
if (y>u+25)and (y<u+75) then
label1.Layout:=tlcenter;
if y>u+75 then
label1.Layout:=tlbottom;
end;

Sayfa başına dön  Mesaj [1 sayfadaki 1 sayfası]

Bu forumun müsaadesi var:
Bu forumdaki mesajlara cevap veremezsiniz