Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Default size of command window
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Default size of command window
Miscellaneous
Thread ID:
00536350
Message ID:
00536350
Views:
34
Would anyone know why the command window of a second session of VFP does not maintain its size. It appears in the upper right very small (default I think). I use a different resource file (foxuser2.dbf) and would think it would maintain the last size it was set at. I have an environment program that runs at startup that includes this routine:
************************
&& use another foxuser resource file if a session of VFP is already running
LOCAL lcApplicationTitle,lnHWnd,lcFile
*!* lcFile = "E:\Program Files\Microsoft Visual Studio\Common\VFP\FoxUser"
lcFile = "E:\Program Files\Microsoft Visual Studio\Vfp98\foxuser"
lcApplicationTitle = "VFP6-1"

DECLARE INTEGER FindWindow IN Win32API;
STRING @lpClassName, STRING @lpWindowName
lnHWnd = FindWindow(0, @lcApplicationTitle)

IF lnHwnd = 0
SET RESOURCE TO (lcFile+".dbf")
_screen.caption = "VFP6-1"
ELSE
SET RESOURCE TO (lcFile+"2.dbf")
_screen.caption = "VFP6-2"
ENDIF
************************
Extreme Programming = Plan -> Design -> Code -> Test
Next
Reply
Map
View

Click here to load this message in the networking platform