_screen.BackColor = rgb(255,255,128) && Yellow
_screen.ForeColor = rgb(0,0,0) && black
The startup program can be specified in all VFP versions in the CONFIG.FPW with _STARTUP=<>. In VFP 6 & 7, you can also set it in Menu -> Tools -> Options... -> File Locations (tab) -> Startup Program.
1. Create a MyBack.PRG and put in that the following code..
** As rick specified..
_screen.BackColor = rgb(255,255,128) && Yellow
_screen.ForeColor = rgb(0,0,0) && black
and save it in the VFP directory.
2. Now use explorer and reach the VFP directory.. and select VFP7.exe or VFP6.exe .. whichever you use. Right Click mouse over it and send it to Desktop as shortcut.
Close all the windows opened..
3. Now right click over the desktop icon..
Select properties.. and in the.. Target Box..
C:\VFP7\VFP7.EXE or such similar thing..
add at the end the text..
MyBack
and save it.
Now every time, you start VFP, this two line programe is run and you get your results.
ramani
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
I have trouble remembering where I do things - and later why I did them. In self defence I start up with the main vfp window minimized to the task bar, do all the housekeeping stuff and then expand the window. The first few lines of the initial application program are the same for every application.
I have trouble remembering where I do things - and later why I did them. In self defence I start up with the main vfp window minimized to the task bar, do all the housekeeping stuff and then expand the window. The first few lines of the initial application program are the same for every application.
Thought it was an answer, but guess not. My point is that I find it more meaningful to put initialization code in the starting program of the application rather than the foxpro startup or config files. Background color schemes for my A/P, A/R and other accounting systems are similar but noticable different. It helps the user adjust to different presentations a little more easily but most of all it helps me. When a user calls to say their program is broken my first question is "what color is the background of the broken application".
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.