Changes between Version 11 and Version 12 of PadrePluginCookbookRecipie04


Ignore:
Timestamp:
07/28/11 18:01:30 (3 years ago)
Author:
bowtie
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PadrePluginCookbookRecipie04

    v11 v12  
    11[[PageOutline(1-4)]] 
    22[wiki:PadrePluginDialog <-menu] 
    3 = //Padre::Plugin::Cookbook Recipe-04 Draft 
     3= Padre::Plugin::Cookbook Recipe-04 
    44This page complements {{{Padre::Plugin::Cookbook Recipe-04}}}, It is just meant to be an aid, with a suggested layout and some ideas to speed you along, enjoy. 
    55* Recipe-04 is all about {{{ListCtrl or ConfigDB}}} now available via {{{Padre::Plugin::CookBook}}} see trunk 
     
    231231 
    232232* _on_list_col_clicked 
    233 {{{#!perl 
    234  
    235 }}} 
     233we now have to handle the event data. 
     234{{{#!perl 
     235sub _on_list_col_clicked { 
     236    my ( $self, $list_event ) = @ARG; 
     237 
     238    $col_num = $list_event->GetColumn(); 
     239}}} 
     240 
    236241* _on_list_item_activated 
    237 {{{#!perl 
    238  
    239 }}} 
    240  
    241  
     242or use to find other data, this case, we are extracting the session id from the row you clicked on. 
     243{{{#!perl 
     244sub _on_list_item_activated { 
     245    my ( $self, $list_element ) = @ARG; 
     246 
     247    my $session_id = $tuples[ $list_element->GetIndex ]['0']; 
     248}}} 
     249 
     250**NB** the above simplified code snippets can be found in Recipe04/Main.pm 
    242251 
    243252