Jump to content

Nesne Gizleme


hakan3406
 Share

Recommended Posts

Arkadaşlar,
Mouse çalışma sayfasının üzerindeyken Image1 nesnesinin görüntülenmesini, mouse çalışma sayfasının dışına çıktığında ise Image1 nesnesinin kaybolmasını istiyorum. Görüntülenmeyi yaptım ama tekrar kaybolmasını yapamadım. Yardımcı olurmusunuz?
Link to comment
Share on other sites

Bunu aslında OnMouseMove evresi ile yapmak en doğrusu ama maalesef AMS, hızlı mouse hareketlerini algılayamadığı için, mouse pencereden hızlıca çektiğinizde ve pencere dışına çıktığını yani System.GetMousePosition(false, Application.GetWndHandle()).X 'in 0 dan küçük olduğunu anlayamayacaktır. Onun yerine projenize sayfanızın boyundan biraz küçük boyutlarda bir hotspot nesnesi koyun, ve bunu ortalayın.Şu şekilde görünecek:

[img]http://i.imgur.com/96JWv.png[/img]

On Leave evresine;

[quote]Image.SetVisible("Image1", false)[/quote]

On Enter evresine:

[quote]Image.SetVisible("Image1", true)[/quote]

yazın.

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...