A brief stint with the Undo/Redo routine saw me cursing and swearing at the PC for a good hour, before deciding to work on something more productive. The first task was to implement the option to lock a particular layer to prevent it being edited or drawn on accidentally, and was a fairly simple addition. I also included the option to lock / unlock all layers (yes, I can't envisage a scenario where you'd want to lock every layer either, but you might want to lock every layer apart from one - in which case you'd lock all layers then unlock the desired layer). Saves on shoe leather, if nothing else. :)
The second job was to implement the Clear option, allowing you to clear the current layer with the tile currently selected with the Left button. As an extension of this, I also added the Clear All option (though this may require the addition of a prompt to prevent accidental erasure).
To round things off, and given that I was updating the Layer menu quite extensively, I introduced a Copy / Paste layer facility for maximum editing flexibility. This routine took a while to debug as the keypress would hardly ever register; it dawned on me that clicking the checkbox to turn a layer on/off actually takes the focus away from the main window - thus, when the Paste key is hit, the program is trying to manipulate the checkbox instead of the main window. This is a personal bugbear of mine, so a visit to the Blitz forums might be on the cards.
The final task of the night involved making a start on the documentation; with the Menus filling up with options and the number of free keys rapidly diminishing, I need to make a start on the documentation before I forget about the myriad features that have been included along the way. I don't have time to learn how the Help file should be properly created, however, so for the moment I'm using good (?) old Microsoft Word.
