Board index » cppbuilder » OnMouseDown & OnMouseUp question?
Scott Kent-Collins
CBuilder Developer |
OnMouseDown & OnMouseUp question?2003-12-10 09:43:06 AM cppbuilder36 Hello, Is there a tidy way of making sure the OnMouseDown is completed before calling OnMouseUp? In my application I have TImage component that draws some fake buttons. When a use clicks a fake button down the TImage->OnMouseDown event triggers some other actions to other controls and then it also performs some checks on the TImage->OnMouseUp. My problem is that when a user double clicks quickly on a fake button it seems the OnMouseDown event doesn't get to finish its processing before the OnMouseUp is called and the application generates a "Cannot focus on disabled control" error. Is there are way to make sure the OnMouseDown event is completely finished it's processing first before the OnMouseUp event is triggered? Thanks Scott Kent-Collins |