Alt-F4 is a standard Windows shortcut to exit an application. Therefore, I recommend to search for another key combination.
Hilmar.
>>>In VFP7, the beautify option has gone from the rightclick menu when editing a .PRG
>>>
>>>I used this all the time in VFP6 (using the keyboard shortcuts) and was wondering if it could be manually configured?
>>>
>>>Anyone know if this can be done?
>>
>>I miss that too, but the rightclick menu is quite long now as it is. I've just had to learn a different keyboard sequence - Alt+t,y,enter.
>
>That gave me an idea, I just put this in my vfpstart.prg
>
>
On Key Label Alt+f4 Do Beauty
>
> Function Beauty
> Keyboard '{ALT+T}'
> Keyboard "Y"
> Keyboard '{ENTER}'
> Endfunc
>Works great, just hit Alt+F4 and it runs. :)
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)