SET SYSMENU TO
***running application here
SET SYSMENU TO DEFAULT
...or if you prefer:
Code:
PUSH MENU _MSYSMENU
SET SYSMENU to
***running application here
POP MENU _MSYSMENU
...the second of these examples is preferred if you want to make reasonably sure that you system menu in VFP comes back right while you are debugging your application and such. That's the only real reason those final lines are there is to help put stuff back the way it was when you are debugging or running your app in the VFP IDE...a simple check could be performed before running the last line such as:
Code:
_SCREEN.ADDPROPERTY("InDebugMode", _VFP.STARTMODE = 0)
PUSH MENU _MSYSMENU
SET SYSMENU to
***running application here
if _screen.InDebugMode
POP MENU _MSYSMENU
endif
...but the difference in speed and performance is neglegible.
craig1442@mchsi.com
"Whom computers would destroy, they must first drive mad." - Anon
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.