Skip to content

DoMakeColumnVisible - DfBaseFormList

Ensures that the passed column number is fully visible

Type: Procedure

Parameters

Parameter Type Description
iColumn Integer The number of the column that must be visible

Syntax

Procedure DoMakeColumnVisible Integer iColumn

Call Example

Send DoMakeColumnVisible iColumn

Description

Sending the DoMakeColumnVisible messages ensures that the passed column number is fully visible. If the column is not visible, the grid will be scrolled as needed to make it so.

Procedure ScrollLeft
       Send DoMakeColumnVisible 0
End_Procedure
Procedure ScrollRight
       Send DoMakeColumnVisible (item_limit(self)-0)
End_Procedure

This procedure is used in objects based on dbGrid and dbList (implemented in the Datalist super-class) to snap the grid back to column zero whenever the message beginning_of_panel is sent to a view. The message beginning_of_panel sends the message OnBeginningOfPanel to all objects. When the dbGrid or dbList receives the message it does the following:

// augmnt to always force the first column to be visible. This will occur during a
// panels clear or save. It makes sense to restore the column. If you do no want this
// behavior just cancel it.
Procedure OnBeginningofPanel
   Send DoMakeColumnVisible 0
end_procedure