Tip of the Day

VPME applications display a Tip of the Day form at startup by default. You can use the Tip of the Day form to display tips that you enter using the Tip Manager on your application’s Admin menu. Administrators of your application can also enter tips through the Tip Manager. You can even enter language translations for tips.

·       An application user can click the Previous and Next buttons on the Tip of the Day form to cycle through the tips that have been entered.

·       A user can uncheck the “Show tips at startup” check box to turn off the display of the Tip of the Day form at application startup.

·       When the Tip of the Day form is closed, clicking the Tip of the Day option on the Help menu will redisplay the form.

Tip Manager

Selecting the Tip Manager option on an application’s Admin menu displays the Tip Manager.

You use the Tip Manager and the Form Toolbar to add, edit and delete tips.

Clicking the Translations button on the Tip Manager displays the Tip Translations form.

If you are creating a multilingual application, you use the Tip Translations form to add, edit and delete language translations for the current tip. To add a tip translation, select the language of the translation in the Language combo box. Enter the translation in the Translated Tip edit box. Be sure to save your translation before exiting or changing languages.

How to Prevent the Tip of the Day Display

The Tip of the Day form comes up at application startup if the Application Object property lRunTipForm is .T. (the default). To prevent the automatic display of the Tip of the Day form, set the lRunTipForm property of the PROApp class in an application’s PROAPP.VCX class library to .F.

The Tip of the Day form can also be brought up through the Tip of the Day menu option on the Help menu. You can remove the Tip of the Day menu option to prevent its display from the Help menu.

How to Change the Tip of the Day Form

The Tip of the Day form is not a form that you would normally need to modify. The Tip of the Day form as it is implemented in a VPME application contains the functionality that most developers would want. However, if you do want to modify the Tip of the Day form or use a Tip of the Day form that is entirely your own, this section shows you how.

When the Tip of the Day form is accessed in an application, the RunTipForm method of the Application object runs the RunTipForm method of the International (multilingual) object, which runs the form specified in the International object properties cTipForm and cTipForm_ClassLibrary. The cTipForm property contains the name of the Tip form or form class. The cTipForm_ClassLibrary property contains the name of the class library that contains the Tip form class, if any.

The International object is instantiated from the PROInt class in the PROINT.VCX class library.

Default Property Entries: By default, the VPMInt class properties cTipForm and cTipForm_ClassLibrary  contain the class name “Tip” and the class library name “PROINT”, respectively. You can change these properties at the VPMINT, DEVINT or PROINT level to reference whatever Tip form or form class you like. Make your change through the Class Browser or the Project Manager.

Where to Modify the Tip of the Day Form Class

The Tip of the Day form class is named “Tip” and is defined in the VPMINT.VCX class library. Most of the time when you change the Tip of the Day form, you will simply modify the Tip class in the DEVINT.VCX class library so that your changes will apply to all the applications that you are creating with VPME.

However, if you want to make modifications to the Tip form class that only apply to a specific application, you would modify the Tip class in the PROINT.VCX class library.

You can, of course, create your own Tip of the Day form class at the VPM, DEV or PRO class level.

You can also create and use a Tip of the Day form, instead of a class.

Where to Identify the Tip form Class to Use

Whatever approach you take to modifying the Tip form or to creating your own, make sure that when the RunTipForm method of the International object is run for an application, the cTipForm and cTipForm_ClassLibrary properties of the application’s International object identify the Tip form that you want the application to use. Since by default the International object is instantiated from the PROInt class in the PROINT.VCX class library, you need to make sure that the cTipForm and cTipForm_ClassLibrary properties of the ProInt class identify the Tip form that you want to use when an application runs. The property entries at the PROInt class level are inherited from the VPMInt class.

If you modify the Tip form class and do not change its name, the default entries already in the cTipForm and cTipForm_ClassLibrary properties will be what you want.

New Class: If you create a Tip form with a new name and, perhaps, a new class library, you will need to enter the new name and class library name into the cTipForm and cTipForm_ClassLibrary properties at the VPMInt, DEVInt or PROInt class level depending upon whether you want all applications to use the new Tip form class or just a specific application to use the new class.

New Form: If you create a Tip form, instead of a form class, you will need to enter the form name into the cTipForm property and blank out the cTipForm_ClassLibrary property. Whether you make your entries at the VPMInt, DEVInt or PROInt class level depends upon whether you want all applications to use the new Tip form or just a specific application to use the new form.

Reminder: Property entries at the VPM or DEV level affect all applications. Property entries at the PRO-level affect a specific application.

Tip Storage

To facilitate multilingual tips, tips are stored in the table SVPM!SVPMStrings.dbf and Tip Translations are stored in the table SVPM!SVPMStringTranslations.dbf. Both tables are part of VPME’s multilingual functionality.

More:

Access Form