I have written a custom search utility to allow users to find which data files from a repository of thousands of files that match their selected criteria. The user starts the search by clicking on a "search" button and the OnClick event for this button contains a loop that is used to process the appropriate files. I would like to add a "stop" button that the user could use to immediately terminate the search. However, it seems that additional button clicks are buffered and handled after the original OnClick event is finished. Any suggestions would be greatly appreciated.
I am using Borland C++ Builder Professional version 5.0. The application was created using File->New... and selecting "Application" under the "New" tab.
I am using Borland C++ Builder Professional version 5.0. The application was created using File->New... and selecting "Application" under the "New" tab.