Form_Mover Class Properties and Methods

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:

 

AutoCenter = .T.

 

BorderStyle = 2

 

Caption = “”

 

DataSession = 1

 

Height = 260

 

Name = “form_mover”

 

Width = 330

 

WindowType = 1

This is a modal form.

Custom Properties:

 

lMoveAllPrompt = .F.

If .T., the user must confirm that they want to move all or remove all items in a list when they click the Move All or Remove All buttons, respectively.

lNoSelectionOK = .F.

Holds the value passed to the form that determines if it is acceptable for the user to select the OK button when no items have been moved to the destination list.

lTrans_Form_ = .F.

When using the multilingual functionality, the translation of properties needs to occur at the end of the Form_Mover.Init instead of at the end of the Form_.Init.

lTrans_Form_Mover = .T.

See lTrans_Form_ comment.

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:

 

Init

Modifies the form based on the parameters passed to the form.

Loads the source and destination listboxes.

Show

Enables/disables the form’s controls as appropriate.

Custom Methods:

 

cmdCancel.Click

Closes the form.

cmdMoveAll.Click

Moves all items in the source listbox to the destination listbox.

cmdMoveOne.Click

Runs the MoveOne method to move the highlighted item in the source listbox to the destination listbox.

cmdOK.Click

Loads the destination array with the items in the destination listbox.

Closes the form.

cmdRemoveAll.Click

Moves all items in the destination listbox to the source listbox.

cmdRemoveOne.Click

Runs the RemoveOne method to move the highlighted item in the destination listbox to the source listbox.

lstDestination.DblClick

Runs the RemoveOne method to move the highlighted item in the destination listbox to the source listbox.

lstSource.DblClick

Runs the MoveOne method to move the highlighted item in the source listbox to the destination listbox.

MoveOne

Moves the highlighted item in the source listbox to the destination listbox.

RemoveOne

Move the highlighted entry in the destination ListBox to the source listbox.

 

More:

Form_NoRecord Class Properties and Methods