Jump to content
Sign in to follow this  
smahdi83

Determine if object has moved

Recommended Posts

smahdi83

Hello,

I have a COM object on my form and I would like to know how I can trigger an event when that object changes position on the form.

Thanks,

Share this post


Link to post
Share on other sites
Nahuel

Maybe ControlGetPos() in a loop. If the position changes, trigger your function. Else, continue checking.

Share this post


Link to post
Share on other sites
smahdi83

Maybe ControlGetPos() in a loop. If the position changes, trigger your function. Else, continue checking.

Yeah but I dont want to continually check. i just want to do something IF it happens. Thanks,

Share this post


Link to post
Share on other sites
smahdi83

Guys any help would be greatly appreciated.

Thanks,

Share this post


Link to post
Share on other sites
Richard Robertson

You have to continually check. Unless the COM object has an event for you, you have to check yourself. Why would the COM object be moving on it's own though?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×