I was just wondering if anybody has different experience and has any good tips on how to deal with cursor changing, or maybe sees a ticking time bomb in my approach to this. Procedure SetCursorBegin ( Cursor : TCursor = crHourGlass ) begin Screen. I have 2 methods that I use instead of remembering exact syntax:
Now I have a rule only to change cursor in control handlers, not in any methods, anymore. The problem is when I use button to call this method, and I already change cursor in buttons' OnClick. While refactoring, I had occasions when I created common methods that had the change of cursor while processing.
sometimes action can take a few seconds, so I like to change the cursor to crHourGlass at the beginning and then back to crDefault. My projects sometimes work with large files, read, parse, write, export to csv, process.