List Image Column (PRIM_LIST.Image)

Column displaying an image

Ancestors - List Column (PRIM_LIST.Column) Object (PRIM_OBJT)

Details

Prim_List.Image is a column in a List used to display images.
 
Each column type has a corresponding CurrentItem class that provides access to the individual entries in the column accessible via the CurrentItem property.
 
The image for each item can be modified independently using the current item for the column in the same way that other visual LANSA lists allow the current item for the list to be used.
 
An image column is created whenever an Image control is dropped on the list.
 
If a Blob field is dropped on the list, the Source property will be set to the field and it will be used as a column in the underlying working list.  If the field value at run time contains a valid image file, the image will be shown. This is a simple and convenient shortcut that simplifies the processing of text and image data when being read from a database.

Example

This example shows a 4 column list, each using a repository field as the source.
 
The image column has a source of a Blob field EMPTHM. This is rendered as an image at runtime.
Begin_Com Role(*EXTENDS #PRIM_WEB) Height(456) Width(864)
 
   Define_Com Class(#PRIM_LIST) Name(#List) Displayposition(1) Left(8) Parent(#COM_OWNER) Tabposition(1) Top(8) Height(433) Width(841) Rowheight(28) Rowlines(False) Columnlines(False)
   Define_Com Class(#PRIM_LIST.Image) Name(#ColumnEMPTHM1) Displayposition(1) Parent(#List) Source(#EMPTHM) Columnwidth(43) Imagesizing(BestFit) Cellmargintop(2) Cellmarginbottom(2)
   Define_Com Class(#PRIM_LIST.String) Name(#ColumnEMPNO1) Displayposition(2) Parent(#List) Source(#EMPNO) Columnwidth(104)
   Define_Com Class(#PRIM_LIST.String) Name(#ColumnSURNAME1) Displayposition(3) Parent(#List) Source(#SURNAME)
   Define_Com Class(#PRIM_LIST.String) Name(#ColumnGIVENAME1) Displayposition(4) Parent(#List) Source(#GIVENAME)
 
   Def_List Name(#Employees) Fields(#Empno #Surname #Givename #Empthm) Type(*working) entrys(*Max)
 
   Mthroutine Name(Load)
 
      Define_Com Class(#xDemoDataServices.GetEmployees) Name(#GetEmployees)
 
      #GetEmployees.ExecuteAsync( #Employees )
 
      Evtroutine Handling(#GetEmployees.Completed)
 
         Selectlist Named(#Employees)
 
            Add_Entry To_List(#List)
 
         Endselect
 
      Endroutine
 
   Endroutine
 
End_Com

Properties

NameDescription
CellAlignmentPosition of the content of a list cell. Inherited from List Column (PRIM_LIST.Column)
CellHeightHeight of the cell in pixels when not overridden by CellSizing Inherited from List Column (PRIM_LIST.Column)
CellMarginBottomBottom margin of the cell in pixels when not overridden by CellSizing Inherited from List Column (PRIM_LIST.Column)
CellMarginLeftLeft margin of the cell in pixels when not overridden by CellSizing Inherited from List Column (PRIM_LIST.Column)
CellMarginRightRight margin of the cell in pixels when not overridden by CellSizing Inherited from List Column (PRIM_LIST.Column)
CellMarginTopTop margin of the cell in pixels when not overridden by CellSizing Inherited from List Column (PRIM_LIST.Column)
CellSizingSizing behavior of a list cell allowing for the content to only use a portion of the cell Inherited from List Column (PRIM_LIST.Column)
CellWidthWidth of the cell in pixels when not overridden by CellSizing Inherited from List Column (PRIM_LIST.Column)
ColumnCaptionCaption displayed in the column header Inherited from List Column (PRIM_LIST.Column)
ColumnCaptionAlignAlignment of the text in the column header Inherited from List Column (PRIM_LIST.Column)
ColumnCaptionTextCaption displayed in the column header Inherited from List Column (PRIM_LIST.Column)
ColumnCaptionWordWrapWrap text on to the next line if there is insufficient space Inherited from List Column (PRIM_LIST.Column)
ColumnImageImage to be show in the column heading Inherited from List Column (PRIM_LIST.Column)
ColumnImageHeightSet the height and width of the column image in pixels Inherited from List Column (PRIM_LIST.Column)
ColumnMaxWidthMaximum allow width of the column in pixels Inherited from List Column (PRIM_LIST.Column)
ColumnMinWidthMinimum allow width of the column in pixels Inherited from List Column (PRIM_LIST.Column)
ColumnMouseOverStyleStyle to be applied to the column header on mouseOver Inherited from List Column (PRIM_LIST.Column)
ColumnMouseOverStylesCollection of styles to be applied to the column header on mouseOver Inherited from List Column (PRIM_LIST.Column)
ColumnPinnedPin the column to the left or right hand sides of the list Inherited from List Column (PRIM_LIST.Column)
ColumnPopupPopup Panel to display as a menu Inherited from List Column (PRIM_LIST.Column)
ColumnPopupImageImage to display in the column header in place of the default image Inherited from List Column (PRIM_LIST.Column)
ColumnPressedStyleStyle to be applied to the column header on click Inherited from List Column (PRIM_LIST.Column)
ColumnPressedStylesCollection of styles to be applied to the column header on mouseOver Inherited from List Column (PRIM_LIST.Column)
ColumnResizeSpecifies whether the column can be manually resized Inherited from List Column (PRIM_LIST.Column)
ColumnStyleStyle to be applied to the column Inherited from List Column (PRIM_LIST.Column)
ColumnStylesCollection of styles to be applied to the column Inherited from List Column (PRIM_LIST.Column)
ColumnThemeDrawStyleName of the Theme DrawStyle to be applied to the column heading Inherited from List Column (PRIM_LIST.Column)
ColumnUnitsSpecifies whether the column is a specific width or uses a proportion of the available space (See ColumnWidth) Inherited from List Column (PRIM_LIST.Column)
ColumnVisibleShow or hide the column Inherited from List Column (PRIM_LIST.Column)
ColumnWidthWidth of the column. See the ColumnUnits property Inherited from List Column (PRIM_LIST.Column)
ComponentClassNameComponentClassName is the name of the component's class. Inherited from Object (PRIM_OBJT)
ComponentMembersComponentMembers provides access to all the member components of this component Inherited from Object (PRIM_OBJT)
ComponentPatternNameComponentPatternName is used to qualify the class of the component. Inherited from Object (PRIM_OBJT)
ComponentTagGeneric space allowing a value to be stored for the instance Inherited from Object (PRIM_OBJT)
ComponentTypeComponentType gives you access to the type information about the component Inherited from Object (PRIM_OBJT)
ComponentTypeNameComponentTypeName is the fully qualified name of the component's class. Inherited from Object (PRIM_OBJT)
CurrentItemThe last item in the list touched either in the UI or via a list related command
DisplayPositionPosition of the column relative to the other columns Inherited from List Column (PRIM_LIST.Column)
EnabledEnable or disable the column contents Inherited from List Column (PRIM_LIST.Column)
FocusItemReference to the focus item in the column
ImageRepository enrolled image to show in the control
ImageAlignmentPosition of the image within the view port
ImageHeightHeight of the image. See ImageUnits
ImageLeftLeft position of the image. See ImageUnits
ImageOpacityPercentage Opacity of the image
ImageSizingDefines how the original image is sized
ImageTopTop position of the image. See ImageUnits
ImageUnitsSpecifies whether the image is measured using pixels or percentages
ImageWidthWidth of the image. See ImageUnits
NameName identifies the component Inherited from Object (PRIM_OBJT)
OwnerOwner owns this component Inherited from Object (PRIM_OBJT)
ParentReference to the list containing the column Inherited from List Column (PRIM_LIST.Column)
SortAsColumnSpecifies an alternate column to use to sort the data Inherited from List Column (PRIM_LIST.Column)
SortDirectionSort the column ascending or descending Inherited from List Column (PRIM_LIST.Column)
SortPositionPosition of the column in the sort sequence Inherited from List Column (PRIM_LIST.Column)
SourceField to be used as a source for the column. Blob fields containing images will show the image
StyleStyles to be applied to the item Inherited from List Column (PRIM_LIST.Column)
StylesCollection of styles to be applied to the item Inherited from List Column (PRIM_LIST.Column)
ThemeDrawStyleThemeDrawStyle to be applied to the column Inherited from List Column (PRIM_LIST.Column)
VisibleShow or hide the content of a cell Inherited from List Column (PRIM_LIST.Column)

Events

NameDescription
ClickFired when the mouse is clicked on the control
ColumnClickFired when the column header is clicked Inherited from List Column (PRIM_LIST.Column)
Origin, Handled
ColumnDoubleClickFired when the column header is DoubleClicked Inherited from List Column (PRIM_LIST.Column)
Origin, Handled
ColumnMouseEnterFired when the mouse enters the bounds of the column Inherited from List Column (PRIM_LIST.Column)
ColumnMouseLeaveFired when the mouse leaves the bounds of the column Inherited from List Column (PRIM_LIST.Column)
CreateInstanceCreateInstance is signalled when an instance of a component is created Inherited from List Column (PRIM_LIST.Column)
DestroyInstanceDestroyInstance is signalled when an instance of a component is about to be destroyed Inherited from List Column (PRIM_LIST.Column)
DoubleClickFired when the user double clicks

Methods

NameDescription
SizeToContentsSet the column width to the widest content Inherited from List Column (PRIM_LIST.Column)

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2