| 206 | | * todo |
| | 206 | A List Control is just a wrapper for List Items, with attribute headers (column headings) |
| | 207 | ==== Population |
| | 208 | |
| | 209 | * Clear list Control |
| | 210 | {{{#!perl |
| | 211 | # clear ListCtrl |
| | 212 | $self->list_ctrl->ClearAll; |
| | 213 | }}} |
| | 214 | |
| | 215 | * Attribute headers |
| | 216 | {{{#!perl |
| | 217 | # List the columns in the underlying table |
| | 218 | $self->list_ctrl->InsertColumn( $idx, Wx::gettext('index') ); |
| | 219 | }}} |
| | 220 | |
| | 221 | * Tuple data (List Item) |
| | 222 | {{{#!perl |
| | 223 | # NB my $item = Wx::ListItem->new; |
| | 224 | $self->list_ctrl->InsertItem($item); |
| | 225 | $self->list_ctrl->SetItem( $idx, 0, $idx ); |
| | 226 | $self->list_ctrl->SetItem( $idx, 1, $tuples[$idx][0] ); |
| | 227 | $self->list_ctrl->SetItem( $idx, 2, $tuples[$idx][1] ); |
| | 228 | $self->list_ctrl->SetItem( $idx, 3, $tuples[$idx][2] ); |
| | 229 | }}} |
| | 230 | ==== Events |
| | 231 | |
| | 232 | * _on_list_col_clicked |
| | 233 | {{{#!perl |
| | 234 | |
| | 235 | }}} |
| | 236 | * _on_list_item_activated |
| | 237 | {{{#!perl |
| | 238 | |
| | 239 | }}} |
| | 240 | |
| | 241 | |
| | 242 | |
| | 243 | |
| | 244 | |