Hi!
I meant disabling of it temporarily. After project loading you can do KEYBOARD "" CLEAR to clean up the buffer and re-enable the ESC key again. Unfortunately, I do not know where to put these 2 commands in project hook. In my work I usually use the PRG file started from FPW file from the VFP.EXE shortcut, where I open a project and can do anything else required.
I also rarely do "Get latst files" for project from VFP and disable any automatic complex actions with VSS for project to avoid a lot of messages that appear in such process. Usually I do such things using native VSS client application, that is much easy because checkbox "Use this setting for all other files" (or something like that) works Ok in there.
HTH.
>Vlad,
>
>I was rather thinking about permanently avoiding to close the project (accidentally). And I don't like the idea of disabling ESC, since I may use it in other places, too.
>
>Hilmar.
>
>>You can disable the ESC key functionality for a duration of project loading using ON KEY LABEL.
>>
>>>I tried to intercept the Destroy event (for the project manager) with NoDefault, but it seems that when this event is reached, it is already too late to stop the project manager from closing. What I want to do is ask for confirmation when I press ESC to close the project manager. Can this be done?
>>>
>>>The reason is that it takes quite long to re-open the project manager (source control), and I want to avoid closing it by accident.
>>>
>>>Hilmar.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.