Class: cCJGridColumn

Module location: cCJGridColumn.pkg line 39 (view source)

cGridColumn ------------- Wraps the interface for each grid column.

Class Hierarchy:

DFCOMAUTOMATIONOBJECTcComAutomationObjectcCJReportColumncCJGridColumn

Direct Known Subclasses:

cCJGridColumnRowIndicator, cDbCJGridColumn,

Class Definition

Properties

BooleanpbFocusable
Specifies whether the column can have focus. See ReportRecordItem.Focusable
BooleanpbIconAlignmentSet
Tracks whether peIconAlignment has been explicitly set.
BooleanpbTextAlignmentSet
BooleanpbVDFEditControl
if set false, it will use the codejock edit control
tComboItemData[]pComboItemData
Used to store combo list items before the COM object has been instanciated.
HandlephcEditClass
HandlephoConstraints
Create a constraints object for the column. The pvComObject for this child object is assigned during OnCreate of the parent grid object.... ReportRecordItemConstraints for the column
HandlephoDataSourceColumnClass
HandlephoEdit
HandlephoEditOptions
Create an edit options object for the column. The pvComObject for this child object is assigned during OnCreate of the parent grid object.... ReportRecordItemEditOptions for the column
HandlephoMaskForm
control needed to handle masking
IntegerpiBindingColumn
IntegerpiBindingTable
these can be set via entry_item command
IntegerpiColumnId
will be assigned when the grid is registered belowd
Integerprivate_Color
Grid Column Properties (private with Get/Set methods).... specifies the column's background color (clNone = use Grid's Color)
Booleanprivate_pbAllowDrag
Allows\Disallows dragging of the column, see ReportColumn.AllowDrag
Booleanprivate_pbAllowRemove
Specifies whether the column can be removed from the grid at runtime, see ReportColumn.AllowRemove
Booleanprivate_pbCapslock
Booleanprivate_pbCheckbox
Specifies whether the column contains a CheckBox. See ReportRecordItem.HasCheckbox
Booleanprivate_pbComboButton
Specifies whether the Items in the column display a combo button when selected. See ReportRecordItemEditOptions.AddComboButton
Booleanprivate_pbComboEntryState
Similar to VDF Grid.Column_Combo_Entry_State. See ReportRecordItemEditOptions.ConstraintEdit
Booleanprivate_pbDrawFooterDivider
Specifies whether a divider is drawn between column footers, see ReportColumn.DrawFooterDivider
Booleanprivate_pbDrawHeaderDivider
Specifies whether the divider is drawn Between column headers. See ReportColumn.DrawHeaderDivider
Booleanprivate_pbEditable
Specifies whether the Items in the column can be edited. See ReportColumn.Editable and ReportRecordItemEditOptions.AllowEdit
Booleanprivate_pbMultiLine
Indicates whether the column supports multi-line rows. See ReportColumn.Alignment
Booleanprivate_pbResizable
Indicates whether the column is resizable. See ReportColumn.Resizable
Booleanprivate_pbShowInFieldChooser
Indicates If a column will appear in the FieldChooser when the column is hidden. See See ReportColumn.ShowInFieldChooser.
Booleanprivate_pbVisible
Specifies whether the column is visible in the ReportControl. See ReportColumn.Visible
Integerprivate_peDataType
XTPColumnAlignmentprivate_peFooterAlignment
Specifies the column footer text alignment. See ReportColumn.FooterAlignment
XTPColumnAlignmentprivate_peHeaderAlignment
Specifies the column header text alignment. See ReportColumn.HeaderAlignment
XTPColumnAlignmentprivate_peIconAlignment
column icon alignment. See ReportColumn.Alignment
XTPColumnAlignmentprivate_peTextAlignment
column text alignment. See ReportColumn.Alignment
Integerprivate_piDisabledColor
specifies the disabled column's background color (clNone = use Column Color)
Integerprivate_piDisabledTextColor
specifies the disabed column's text color (clNone = use Column Color)
Integerprivate_piIcon
(internal) Icon ID of the image to display in column header, psImage (above)
Integerprivate_piMaximumWidth
Maximum column width (If Set as positive). This only applies when AutoSize is False. See ReportColumn.MaximumWidth
Integerprivate_piMaxLength
the maximum number of characters that can be entered when editing an item. See ReportControlItemEditOptions.MaxLength
Integerprivate_piMinimumWidth
Specifies the minimum width that a column can be sized to If resizable. See ReportColumn.MinimumWidth
Integerprivate_piWidth
Specifies the minimal default column width. See ReportColumn.Width
Handleprivate_Prompt_Object
Stringprivate_psCaption
Text caption for the column header, see ReportColumn.Caption
Stringprivate_psFooterText
The text that is displayed in the column's footer. see ReportColumn.FooterText
Stringprivate_psImage
Image to display in column header, see ReportColumn.Icon
Stringprivate_psMask
Specifies the mask token characters. See VDF Grid, Form_Mask
Stringprivate_psTooltip
Tool tip that is displayed when the mouse cursor is positioned over the column header. See ReportColumn.Tooltip
Stringprivate_Status_Help
Integerprivate_TextColor
specifies the column's text color (clNone = use Grid's Color)
Handleprivate_Zoom_Object
IntegerPrompt_Button_Mode
StringPrompt_Button_Value
StringpsCheckboxFalse
StringpsCheckboxTrue

Functions and Procedures

VariantAnsiValueToVariant(String sSource)
BooleanCanNavigateIntoColumn(Boolean bForward)
returns true if keyboard navigation is allowed for this column. pass whether the navigation is forward or backwards, return True if allowed We don't test Entering here, which can refuse the focus. Even though you can navigate into the column, Entering or Exiting might not allow it when the change is attempted.
StringCheckedStateToValue(Boolean bChecked)
returns a string representing the passed checked state
IntegerColor()
IntegerColumnDisplayIndex()
This is the column displayed order of this object
tGridSortRulesColumnSortRules()
returns a tGridSortRules type which defines the rules for sorting this column. by default the rule is sort ascending the current column based on its datatype
ComboAddItem(String sCaption Integer iData)
======================================================================================== Methods................................................................................. ======================================================================================== ComboAddItem Adds a member to the combo list for this column. See ReportColumn.EditOptions.Constraints.Add sCaption - Is the value displayed in the combo list. iData - Is the numeric data value representing the combo item.
tComboItemData[]ComboData()
ComboData Returns the set of combo items in the combo list for this column. See ReportColumn.EditOptions.Constraints.Constraint.Data I decided to return the entire set of combo items in an array of struct. We could change this to provide an indexed access.
ComboDeleteData()
ComboDeleteData Clears the combo list for this column. See ReportColumn.EditOptions.Constraints.DeleteAll
IntegerComboFindItem(Integer iStartAt String sCaption)
Returns a match for the passed caption starting at position iStartAt
ComboInitialize()
ComboInitialize: Rebuilds the column combo list (ReportRecordItemConstraints) from the internal array of constraint data.
Construct_Object()
Inherited from cCJReportColumn
HandleContextMenu(Handle hoMenu)
allows you to assign a different row context menu for this column. The current default grid menu is passed in. If you return 0, no menu is used
CreateColumn(Integer iColumn)
Creates the COM column object. Called as part of grid activation
CreateCurrencyMask(Integer iLeft Integer iRight)
Can be used to set up a currency/mask for this column by passing digits to the left and right
CreateNumericMask(Integer iLeft Integer iRight)
Can be used to set up a numric/mask for this column by passing digits to the left and right
HandleCustomEditObject()
returns an initialized custom VDF edit object
DatatypeEQtest(String sVal1 String sVal2 Boolean ByRef bError Boolean ByRef bIsEQ)
test if two values are valid and eq based on the passed datatype
BooleanDEO_Object()
Can be used to determine if the column object understands the DEO interface
DrawCell(Handle hoRow Handle hoItem Handle hoMetrics Integer iRow String sValue)
called in OnComBeforeDrawRow to paint for this column
BooleanEntering()
Entry()
Error_Report(Integer iErrNum Integer iErrLine String sErrMsg)
Use this object to trap the error and do nothing
Exit()
BooleanExiting()
BooleanFormatDisplayValue(String ByRef sValue)
takes value from datasource and formats it for display.
StringFormatEditedValue(String sValue)
takes value from edit control and "unformats" it
HandleHeaderContextMenu(Handle hoMenu)
allows you to assign a different header context menu for this column. The current default grid menu is passed in. If you return 0, no menu is used
StringInitialValue()
Called when an initial value is needed. With simple grids this is called when a row is inserted or appended. With dbgrids it is called for each record found
BooleanIsColumnFocusable()
returns true of column can take the focus (focusable and editable)
BooleanNextColumn(Handle ByRef hoCol Boolean ByRef bWrap)
Find the next column that can be navigated into. Returns byref the new column and if this is a wrap. If return value is True if column could be found
BooleanNotifyEndEdit(String sValue)
sent when the grid exits edit mode and the value needs to be updated. ret true if changed
BooleanNotifyItemChecked()
notification that a checked value has been pressed.
OnCreateColumn()
OnCreateColumn event called at end of creation of com column object
OnEditChanging()
OnEndEdit(String sOldValue String sNewValue)
OnEndEdit
BooleanOnEntering()
OnEntering
OnEntry()
OnEntry
OnExit()
OnExit
BooleanOnExiting()
OnExiting
StringOnGetTooltip(Integer iRow String sValue String sText)
OnGetTooltip Fired whenever the mouse is positioned over a grid cell belonging to this column. iRow - Is the row number of the cell that the mouse is positioned over. sValue - Is the current cell value of the cell that the mouse is positioned over. sText - Is the default tooltip to be displayed returns - The tooltip to display for the current mouse co-ordinate. Return empty string to cancel tooltip display over this cell.
OnSelectedRowDataChanged(String sOldValue String sValue)
OnSetDisplayMetrics(Handle hoGridItemMetrics Integer iRow String ByRef sValue)
OnSetDisplayMetrics Fired when each cell in the column is about to get painted. Use this method to customize the cell's display attributes (color etc). hoGridItemMetrics - This is a handle to a cCJReportRecordItemMetrics object. Manipulate the properties of this objecty to modify the display attributes of the cell being painted. iRow - Is the row number of the row whose cell is being painted. sValue - Is the cell text that is to be painted.
BooleanOnValidating()
OnValidating
BooleanpbAllowDrag()
BooleanpbAllowRemove()
IntegerpbCapslock()
BooleanpbCheckbox()
BooleanpbComboButton()
BooleanpbComboEntryState()
BooleanpbDrawFooterDivider()
BooleanpbDrawHeaderDivider()
BooleanpbEditable()
BooleanpbMultiLine()
BooleanpbResizable()
BooleanpbShowInFieldChooser()
BooleanpbVisible()
IntegerpeDataType()
XTPColumnAlignmentpeFooterAlignment()
XTPColumnAlignmentpeHeaderAlignment()
XTPColumnAlignmentpeIconAlignment()
XTPColumnAlignmentpeTextAlignment()
IntegerpiDisabledColor()
IntegerpiDisabledTextColor()
IntegerpiMaximumWidth()
IntegerpiMaxLength()
IntegerpiMinimumWidth()
IntegerpiWidth()
BooleanPreviousColumn(Handle ByRef hoCol Boolean ByRef bWrap)
Find the previous column that can be navigated into. Returns byref the new column and if this is a wrap. If return value is True if success
Prompt()
Prompt_Callback(Handle hoPrompt)
HandlePrompt_Object()
StringpsCaption()
StringpsFooterText()
StringpsImage()
StringpsMask()
StringpsTooltip()
ReleaseObject()
Release/destroy the COM column object. Called as part of grid deactivation
StringRowValue(Integer iRow)
Return the value for this column for the passed row. If this happens to be a column being edited it has the edited value (i.e., the value in the edit object)
StringSelectedRowValue()
Return the value for this column for the selected row. If this happens to be a column being edited it has the edited value (i.e., the value in the edit object)
StringSelectedRowValueBeforeEdit()
This is the before value of this column for the selected row where before means the value before the edit is commited.
Set(Integer iValue)
Inherited from cCJIReportColumn
======================================================================================== Property Get/Set Methods................................................................ ======================================================================================== Color: specifies the column's background color (clNone = use Grid's Color)
Set(Integer iValue)
Inherited from cCJIReportColumn
piDisabledColor: specifies the column's disabled background color (clNone = use Grid's Color)
Set(Integer iValue)
Inherited from cCJIReportColumn
piDisabledTextColor: specifies the column's disabled text color (clNone = use Grid's Color)
Set(Boolean bValue)
Inherited from cCJIReportColumn
pbAllowDrag Allows\Disallows dragging of the column, see ReportColumn.AllowDrag
Set(Boolean bValue)
Inherited from cCJIReportColumn
pbAllowRemove Allows\Disallows removing of the column, see ReportColumn.AllowRemove
Set(Boolean bOn)
Inherited from cCJIReportColumn
pbCapslock Set True to force data entry in this column to uppercase characters.
Set(Boolean bValue)
Inherited from cCJIReportColumn
pbCheckbox Specifies whether the column contains a CheckBox. See ReportRecordItem.HasCheckbox
Set(Boolean bValue)
Inherited from cCJIReportColumn
pbComboButton Specifies whether a combo control is used to edit this column.
Set(Boolean bValue)
Inherited from cCJIReportColumn
pbComboEntryState Similar to VDF Grid.Column_Combo_Entry_State. See ReportRecordItemEditOptions.ConstraintEdit
Set(Boolean bValue)
Inherited from cCJIReportColumn
pbDrawFooterDivider Specifies whether a divider is drawn between column footers, see ReportColumn.DrawFooterDivider.
Set(Boolean bValue)
Inherited from cCJIReportColumn
pbDrawHeaderDivider Specifies whether the divider is drawn Between column headers. See ReportColumn.DrawHeaderDivider
Set(Boolean bValue)
Inherited from cCJIReportColumn
pbEditable: Specifies whether the Items in the column can be edited. See ReportColumn.Editable and ReportRecordItemEditOptions.AllowEdit
Set(Boolean bValue)
Inherited from cCJIReportColumn
pbMultiLine Indicates whether the column supports multi-line rows. See ReportColumn.Alignment
Set(Boolean bValue)
Inherited from cCJIReportColumn
pbResizable: Indicates whether the column is resizable. See ReportColumn.Resizable
Set(Boolean bValue)
Inherited from cCJIReportColumn
pbShowInFieldChooser Indicates If a column will appear in the FieldChooser when the column is hidden. See See ReportColumn.ShowInFieldChooser.
Set(Boolean bValue)
Inherited from cCJIReportColumn
pbVisible Specifies whether the column is visible in the ReportControl. See ReportColumn.Visible
Set(Integer eType)
Inherited from cCJIReportColumn
peDataType
Set(XTPColumnAlignment eValue)
Inherited from cCJIReportColumn
peIconAlignment: Column alignment. See ReportColumn.Alignment
Set(XTPColumnAlignment eValue)
Inherited from cCJIReportColumn
peFooterAlignment Specifies the column footer text alignment. See ReportColumn.FooterAlignment
Set(XTPColumnAlignment eValue)
Inherited from cCJIReportColumn
peHeaderAlignment Specifies the column header text alignment. See ReportColumn.HeaderAlignment
Set(XTPColumnAlignment eValue)
Inherited from cCJIReportColumn
peTextAlignment: Column alignment. See ReportColumn.Alignment
Set(Integer iValue)
Inherited from cCJIReportColumn
piMaximumWidth Maximum column width (If Set as positive). This only applies when AutoSize is False. See ReportColumn.MaximumWidth .
Set(Integer iValue)
Inherited from cCJIReportColumn
piMaxLength the maximum number of characters that can be entered when editing an item. See ReportControlItemEditOptions.MaxLength
Set(Integer iValue)
Inherited from cCJIReportColumn
piMinimumWidth: Specifies the minimum width that a column can be sized to If resizable. See ReportColumn.MinimumWidth
Set(Integer iValue)
Inherited from cCJIReportColumn
piWidth: Specifies the minimal default column width. See ReportColumn.Width
Set(String sValue)
Inherited from cCJIReportColumn
psCaption Text caption for the column header, see ReportColumn.psCaption
Set(String sValue)
Inherited from cCJIReportColumn
psFooterText The text that is displayed in the column's footer. see ReportColumn.FooterText
Set(String sValue)
Inherited from cCJIReportColumn
psImage: Sets the image/icon name of an icon that is displayed in the column header. See ReportColumn.Icon.
Set(String sMask)
Inherited from cCJIReportColumn
psMask Edit mask string.
Set(String sValue)
Inherited from cCJIReportColumn
psTooltip Tool tip that is displayed when the mouse cursor is positioned over the column header. See ReportColumn.Tooltip
Set(Integer iValue)
Inherited from cCJIReportColumn
TextColor: specifies the column's background text color (clNone = use Grid's Color)
Set(Integer iItem Handle hoPrompt)
Inherited from cCJIReportColumn
Set(Integer iItem Handle hoZoom)
Inherited from cCJIReportColumn
Set(String sHelp)
Inherited from cCJIReportColumn
StringStatus_Help()
IntegerTextColor()
UpdateCurrentValue(String sValue)
update value in data-source
UpdateDataSourceForSelectedRow(String sValue Boolean bPush)
UpdateDataToExternalSource(String sValue Integer iUpdateFlag Integer iFlags)
UpdateFocusFieldValue()
commit the value in the edit control without losing its focus
BooleanValidating()
BooleanValueToCheckedState(String sValue)
returns boolean checked state of the passed value
Zoom()
HandleZoom_Object()

References (4):

ModuleContaining SymbolLine
cCJGridColumnRowIndicator.pkgcCJGridColumnRowIndicator4
cDbCJGridColumn.pkgcDbCJGridColumn12
CheckForCrystal.dgoCKModuleColumn428
CheckForCrystal.dgoVersionColumn433