smahdi83 Posted October 29, 2007 Share Posted October 29, 2007 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, Link to comment Share on other sites More sharing options...
Nahuel Posted October 29, 2007 Share Posted October 29, 2007 Maybe ControlGetPos() in a loop. If the position changes, trigger your function. Else, continue checking. Link to comment Share on other sites More sharing options...
smahdi83 Posted October 29, 2007 Author Share Posted October 29, 2007 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, Link to comment Share on other sites More sharing options...
smahdi83 Posted October 29, 2007 Author Share Posted October 29, 2007 Guys any help would be greatly appreciated. Thanks, Link to comment Share on other sites More sharing options...
Richard Robertson Posted October 29, 2007 Share Posted October 29, 2007 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? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now