Changes between Version 10 and Version 11 of PadrePluginCookbookRecipie04


Ignore:
Timestamp:
07/28/11 17:38:35 (3 years ago)
Author:
bowtie
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PadrePluginCookbookRecipie04

    v10 v11  
    204204 
    205205=== {{{ListCtrl}}} 
    206 * todo 
     206A 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 
    207245=== {{{Padre::DB}}} 
    208246All DB access is via Padre::DB, you will also need to look at ORLite for supported features. Other wise it's just SQL via Padre DBC.