How to: Customize the Appearance of Applications
You can change the appearance of your application in the following ways without changing application code:
Change the default menu system.
You can create and add custom menus and menu options using the Menu Designer. Otherwise, the run-time environment displays the default Visual FoxPro menu. For more information, see How to: Create Menus and Submenus.
Change the default application title.
When you run your application, it runs in the main Visual FoxPro window and displays the text "Microsoft Visual FoxPro" in the title bar by default. You can change the default application title to a more appropriate title.
Change the default application icon.
When you compile your application, the default Visual FoxPro icon appears in the Windows Explorer or Start Menu as the application icon. You can use the generic icon supplied by Visual FoxPro or supply your own. For more information, see Graphics Support in Visual FoxPro.
To change the application title
In a configuration file for your application, include the following statement and replace MyProgramTitle with the appropriate title of your application:
TITLE = MyProgramTitle
Tip
To include a Visual FoxPro function, for example, to display a version number, as part of the title, include the following line in the configuration file to set the Caption property of the main window with the appropriate application title and function name as shown: COMMAND=_SCREEN.Caption="MyProgramTitle " + FunctionName()
For more information, see Special Terms for Configuration Files.
To change the default application icon
Open the project for your application.
In the Project Manager, select the main file for your project.
On the Project menu, click Project Info.
The Project Information dialog box appears for your project.
In the Project Information dialog box, click the Project tab.
On the Project tab, click Attach icon.
In the Open dialog box, browse for and select an icon (.ico) file to assign to your project.
Click OK.
For more information, see Project Manager Window and Project Information Dialog Box.
See Also
Concepts
Preparation for Distributing Applications