Jump to content

Herhangi Iki Objenin Birbirine Değdiğini Anlamak


nightmare3519
 Share

Recommended Posts

image nesnesinin koordinatları ve ebatları belli.

X=100 Y=100 diyelim Width = 300 Height=300 olsun.

Buton boyutları da Width= 100, Height= 30 olsun

tBpos = Button.GetPos("Button1") komutu ile butonun koordinatlarını alacaksın sonra butonun konumunu kontrol ettireceksin.

if tBpos.X >400 or tBpos.Y>400 or  tBpos.X+100 < 100 or tBpos.Y+30 <100 then
  --Buton resime değmiyor.
else
  --Buton resme değiyor.
end

Örnek

Edited by xarax
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...