Jump to content

A.m.s Resim Sürükleme


Bkodas1
 Share

Recommended Posts

Çok Şükür Aranan Kan Bulundu [img]http://www.tnctr.com//public/style_emoticons/default/yahoo.gif[/img]

Çok Şükür Aranan Kan Bulundu [img]http://www.tnctr.com//public/style_emoticons/default/yahoo.gif[/img]

Yanlız sürükleyip bırakınca kodlama hatası veriyor :/

Link to comment
Share on other sites

on show() evresine
[quote]konum = {X=0,Y=0}[/quote]

on mousebutton() evresine
[quote]
if e_Type == 0 and sObject then
nOrigX = e_X;
nOrigY = e_Y;
tProps = Image.GetProperties(sObject);
konum = Image.GetPos(sObject);
bReady = true;
else
bReady = false;
end[/quote]

on mouse move() evresine
[quote]if not System.IsKeyDown(1) then
bReady = false;
end

if sObject and bReady then
nChangeX = e_X - nOrigX;
nChangeY = e_Y - nOrigY;
Image.SetPos(tProps.ObjectName, konum.X + nChangeX, konum.Y + nChangeY);
end[/quote]

süreklenecek resmin on enter() evresine
[quote]sObject = this;[/quote]

süreklenecek resmin on leave() evresine
[quote]if not bReady then
sObject = nil;
end[/quote]

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...