Skip to main content

How to tick to checkboxes in a ListView in Dialog System

  • February 15, 2013
  • 0 replies
  • 0 views

Problem:

The demo available in COMMONCONTROLS\\ListView shows how to create a listview containing check boxes in the first column.

How can these check boxes be ticked in initial state?

Resolution:

To tick the check boxes by program add a:

    invoke aListViewItem "selectCheckBox

for example in the ListView-demo in:

       Insert-Many-Items section.

          PERFORM VARYING l FROM 1 BY 1 UNTIL l > lvData-Max

              ...

             SET lvData-Object(l) TO aListViewItem

             invoke aListViewItem "selectCheckBox" *> the tick is set here

          END-PERFORM

Old KB# 4434