How do I make my application not run full-screen, or maximized?
Set the lFullScreen property to .F. in the PROAPP class of the PROAPP class library.
When I add a record through my own code, how do I run the routine that places default values, including generated primary keys, into the fields of the new record?
The PK generation routine is run when the PK field’s default value is placed in the field by the VPM default routine. This routine determines the default values as defined on the Properties page of the Data Builder, for each field in the cursor open in the current work area. To run the default routine from a form, create a new record and then execute the following command:
I want to place all of the functions that I use in my application into a single program. Where should I put the SET PROCEDURE command?
To make your functions available while you are testing your forms in VPM, put your SET PROCEDURE command in SAPPUST.PRG, which is in VPM’s PRGS directory. This is the Startup program that gets run when VPM is run.
To make your functions available within your application, put the SET PROCEDURE command in the PerformStartupAction method in the PROAPP class of the PROAPP class library. Make sure you include a DODEFAULT() line before or after your code.
How do I make my application use my icon?
There are several places where your icon can be used:
Application Icon - This is the icon that is attached to the EXE that you distribute. You can attach the icon on the Project Info dialog that you bring up from the Project menu when you open the Project Manager for your project.
Application Window Icon - The icon specified on the Logo and Icons form brought up from the VPM Options menu is displayed in the upper left-hand corner of the application (main VFP) window and when the application window is minimized.
Form Icon – Specified on the Logo and Icons form brought up from the VPM Options menu.