Class: cWebColumnImage

Properties  Events  Methods    Index of Classes

Web Framework class that shows images inside a list or grid column



Library: Web Application Class Library

Package: cWebColumnImage.pkg

Mixins: cWebColumn_mixin


Web list and grid controls provide the basis for creating multi-row, multi-column display and entry. Each column in a grid is represented by a column object. Web lists and grids (cWebList, cWebGrid) use the cWebColumn, cWebColumnButton, cWebColumnCheckbox, cWebColumnCombo, cWebColumnDate, cWebColumnImage and cWebColumnLink classes for column objects.

Use this column show one or more images inside a cWebList or cWebGrid column.

The OnDefineImages and AddImage calls can be used to for multiple images, where it defaults to one image configured using the psImageUrl property.


Object oStaticImageCol is a cWebColumnImage
    Set piWidth to 20
    Set psImageUrl to "Images/Order.png"
    Set psCaption to "Icon"

    Procedure OnClick String sImage String sRowId
        Forward Send OnClick sImage sRowId
        Send ShowInfoBox "You've clicked the image!"

Drag and Drop Support

This control can be used as a valid drop target by registering it as such in a cWebDragDropHelper object.

The supported actions for this control are:
- C_WebDropOnControl

This allows the control to accept data dragged from elsewhere in the control (if configured that way) and can also be used to accept files when registered within a cWebDragDropFileHelper.