Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP runtime caption
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00233683
Message ID:
00234759
Views:
26
I see now. I had thought that this (CONFIG.FPW) was something that I would set-up on the development machine and the compiled EXE would be affected.

Re: take an existing executable that doesn't have a CONFIG.FPW, and put this CONFIG.FPW in place

I did this and it shows that it is running as a process in the Task Manager.

I added the _SCREEN.visible = .T. line in the program in the appropruate spot and it works as desired.

Where is this documented in Help?

Also, I have an opinion about this CONFIG.FPW stuff: This is dangerous. All someone has to do is create a CONFIG.FPW file and screw things up. I have a CONFIG.DBF that I distribute with my EXE to set machine/directory-specific settings. I can encrypt the fields for security. CONFIG.FPW is not and cannot be encrypted (right?). This is a little scary.

Joe


>>Hello Ed.
>>
>>I don't use the CONFIG.FPW normally. But I wanted to try this suggestion as we might soon want to send a program out that doesn't show anything about VFP.
>>
>>I didn't have a CONFIG.FPW (sys(2019) returned an empty string). I created a CONFIG.FPW file with notepad and added the single line SCREEN = OFF.
>>
>>I re-loaded VFP and sys(2019) return my path the the newly created CONFIG.FPW.
>>
>>Unfortunately, I didn't notice any different behaviour.
>
>If you start VFP development itself with SCREEN = OFF, the command window is going to force the VFP main window to show, otherwise, you could never see the VFP command window to fix the problem...take an existing executable that doesn't have a CONFIG.FPW, and put this CONFIG.FPW in place. It should make your application completely non-visible. If you need to change the icon, change _screen.icon to whatever you want instead. If you want to suppress the VFP splash screen in development itself, add -t to your command line.
>
>This is all documented in the on-line help, BTW.
>
>>
>>Do you know what the problem could be?
>>
>>Thanks,
>>Joe
>>
>>
>>>>Is any way to disable the VFP Runtime caption when the compiled application started? (Caption VisualFoxPro) or change it to my custom caption?
>>>
>>>Include a CONFIG.FPW in your project with the line SCREEN = OFF in it, and then set _Screen.caption to whatever you like before making the _screen visible (_screen.visible = .t., _screen.show(), etc.) - you can also use a top-level form and never make the VFP main screen visible at all.
Joseph C. Kempel
Systems Analyst/Programmer
JNC
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform