One bug to fix. It seems that when I clear the Everything report with RichView, it calls its own OnCaretMove routine which then calls my own OnCaretMove routine. My routine gets the current tag from RichView, and this bombs when RichView is empty. So in my OnCaretMove routine, I have to ensure RichView is not empty before getting the current tag. This is more complicated than a simple call, but I’ve got the code which has been provided often by Sergey on his newsgroups.
Now to deactivate the toolbar organize buttons when their actions are not possible. First I notice that the Instant Organize button, when deactivated, turns into a grey blob because it isn’t transparent. Have to spent a bit of time and come up with some better icons for these.
While I’m at that, I also need a “Reorganize” button, so that after Instant Organizing or Auto Organizing, the user can easily go back to where he was. This is the alternative I thought up that would work well instead of trying to make the Organize buttons push-down. (See January 24, 2004).