GridFocus

The GridFocus class is a CommandButton class. A CommandButton based on this class is created in the Init method of the Grid_Toolbar and Grid_List classes and then moved off the form. The WriteBuffer method of the Form_Toolbar class must be able to move the focus off the grid and this button provides an object that can receive focus. The creation of this button is necessary because the grid may be the only object on the form.

Properties

The following table lists the class properties. The properties listed include the standard Visual FoxPro class properties that the VPM Enterprise class uses and the VPM Enterprise custom properties. Where appropriate, the Comments column of the table describes a property and provides suggestions for its use.

Property & Initial Value

Comments

Standard Properties Used:

 

Height = 29

 

Width = 94

 

Caption = “GridFocus”

 

Name = “gridfocus”

 

Custom Properties:

 

i_lOverrideCaption = .T.

Used by the multilingual functionality to bypass the translation of the Caption property value.

oGridObjRef = .F.

The object reference of the grid.

Methods

The following table lists the class methods. The methods listed include the standard Visual FoxPro class methods that the VPM Enterprise class uses and the VPM Enterprise custom methods. Where appropriate, the Comments column of the table describes a method and provides suggestions for its use.

Method

Comments

Standard Methods Used:

 

GotFocus

When the button receives the focus, it immediately puts the focus back on the grid.

When

Prevents the user from tabbing to this button.

Custom Methods:

None

 

More:

Multilingual Classes