I'm trying to solve a problem with a homemade button, because mouseleave not always work (http://www.experts-exchange.com/jsp/qShow.jsp?ta=delphi&qid=10254821
). Now i'm trying to solve the problem by sending myself a message (by postmessage) to check if the mouse is outside my button area - BUT if i postmessage everytime i get the message and the mouse is still over the button area i'm blocking for other messages to get through (e.g. invalidate, onclick)
I've tried to insert Application.processmessags
- that will solve the problem, but i think it is too heavy to call so often. How can i be sure not to block the message queue ?