Mike Lewis
Programmer
I've finally cracked a problem that's been bugging for years.
In some of my projects, the editing windows in the development environment fail to maximise properly. When you click the Maximise button (or press CTRL+F10), the window enlarges to fill the screen, but it does not maximise the way it should (the title bar does not merge with that of the main window, and if you subsequently close or move a toolbar or docked window, the editing window no longer fills the screen).
This happens in all recent versions of VFP, and will all kinds of windows in the IDE. Quitting and restaring VFP always solves the problem - until the next time.
Well, I've now discovered the cause. If, at any time during the session, you issue SET SYSMENU OFF, this will cause the behaviour I've described for the rest of the session (even after you switch sysmenu on again).
If you find this behaviour irritating (I do), but if you want to hide the system menu in your application, the solution is easy:
IF (VERSION(2)=0)
SET SYSMENU OFF
ENDIF
Hope this is of interest.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
My Visual FoxPro site: www.ml-consult.co.uk
In some of my projects, the editing windows in the development environment fail to maximise properly. When you click the Maximise button (or press CTRL+F10), the window enlarges to fill the screen, but it does not maximise the way it should (the title bar does not merge with that of the main window, and if you subsequently close or move a toolbar or docked window, the editing window no longer fills the screen).
This happens in all recent versions of VFP, and will all kinds of windows in the IDE. Quitting and restaring VFP always solves the problem - until the next time.
Well, I've now discovered the cause. If, at any time during the session, you issue SET SYSMENU OFF, this will cause the behaviour I've described for the rest of the session (even after you switch sysmenu on again).
If you find this behaviour irritating (I do), but if you want to hide the system menu in your application, the solution is easy:
IF (VERSION(2)=0)
SET SYSMENU OFF
ENDIF
Hope this is of interest.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
My Visual FoxPro site: www.ml-consult.co.uk