Controlling the F2 Picklist Icon

The VPM Enterprise Picklist icon looks like this:

                                    

VPM Enterprise will automatically display the Picklist icon to the right of a text box on a form for a field that:

∑       Uses Referential or Set validation, and

∑       Is based on the VPM Enterprise Textbox_ control class.

Tip: VPME does not display the Picklist icon if the field is in a grid.

You can control the Picklist icon for a field on a form in the following ways:

∑       You can prevent the iconís display.

∑       You can choose to have the icon displayed only when the field gets focus (that is, the focus is on the fieldís control).

∑       You can change the bitmap picture the icon displays.

Further, you can exercise this control:

∑       At the object level for a particular field on a form.

∑       At the DEV class level for all fields using the Textbox_ control class in all your applications.

∑       At the PRO class level for all fields using the Textbox_ control class in a specific application.

Tip: VPM Enterprise uses a three-level class structure that allows you to make class changes that affect all your applications or just a specific application. See VPM Enterprise Classes.

Caution: If you choose to modify PRO-level classes, be sure you modify the PRO-level class libraries in your projectís home directory. Do not modify the PRO-level class libraries in the VPM Enterprise New Project directory. The PRO-level class libraries in the \VPME91\New project\ directory are templates used by VPME to create a new project.

ō To prevent the Picklist iconís display

1.   Choose whether you want to prevent the display of the picklist icon for (a) a particular field on a form, (b) at the DEV level or (c) at the PRO level.

2.   Change the lAddLookupCommandButton property to .F. Where you change this property depends on the choice you make in step 1. Depending on your choice, you would make the change to (a) a particular fieldís textbox control on a form, (b) the Textbox_ class in DEVCTRLS.VCX, or (c) the Textbox_ class in PROCTRLS.VCX.

ō To display the Picklist icon when a field has focus

1.   Choose whether you want to only display the Picklist when a field has focus for (a) a particular field on a form, (b) at the DEV level or (c) at the PRO level.

2.   Change the laddLookupOnFocus property to .T. Where you change this property depends on the choice you make in step 1. Depending on your choice, you would make the change (a) to a particular fieldís textbox control on a form, (b) the Textbox_ class in DEVCTRLS.VCX, or (c) the Textbox_ class in PROCTRLS.VCX.

ō To change the Picklist iconís bitmap picture

1.   Choose whether you want to change the Picklist iconís bitmap picture for (a) a particular field on a form, (b) at the DEV level or (c) at the PRO level.

2.   Store copies of your new bitmap picture in the \BITMAPS directory of VPM Enterprise (normally, \VPME91\BITMAPS) and the home directory of your project.

3.   Replace ďLOOKUP.BMPĒ in the cLookupPicture property with the name and extension (e.g., MyPict.BMP) of your bitmap file. Where you change this property depends on the choice you make in step 1. Depending on your choice, you would make the change to (a) a particular fieldís textbox control on a form, (b) the Textbox_ class in DEVCTRLS.VCX, or (c) the Textbox_ class in PROCTRLS.VCX.

More:

How to Update Additional Fields from a Picklist Record