-
1
- #1
Kruno
Programmer
- Aug 24, 2002
- 16
I want an application that will behave/look as it is C or Delphi program:
- no VFP screen or menu,
- in the the middle of my desktop, movable, nice...
- closable on "X" of title bar
When you want some little piece of work to demonstrate, it is hard to explain to non-VFP guys what is that flickering in your application, or VFP menu or screen behind...
One of the most frequent question in this forum is about application without VFP screen and menu. And closing our application is very anoying. Imagine that you can't leave Word, Excel or IE without "Cannot Quit VisualFoxPro" message.
So, here is my both things solution:
1. Make a new project (e.g.HELLO)
2. Create a PRG (set as main) with this code in it:
*************
DO form hello
READ events
*************
(save as HELLO.PRG)
3. Create new form with:
Autocenter .T.
Caption Hello world!
ShowWindow 2 - As Top-Level
QueryUnload Event CLEAR EVENTS
(save as HELLO.SCX)
4. Build as EXE
5. In the same folder make a CONFIG.FPW with:
screen=OFF
6. Run HELLO.EXE
Your form/exe will show up on the desktop
a) With no VFP menu or screen, no flickering
(if you use some BMP in form1.icon,
no one can recognize that it is VFP application - no fox head)
b) You can close it on X mark (and the process is gone)
I hope this will help.
Kruno Malovic
PLUS KOMP, e-maillus1@zg.tel.hr