Changes between Version 11 and Version 12 of PadrePluginCookbookRecipie04
- Timestamp:
- 07/28/11 18:01:30 (22 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PadrePluginCookbookRecipie04
v11 v12 1 1 [[PageOutline(1-4)]] 2 2 [wiki:PadrePluginDialog <-menu] 3 = //Padre::Plugin::Cookbook Recipe-04 Draft3 = Padre::Plugin::Cookbook Recipe-04 4 4 This 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. 5 5 * Recipe-04 is all about {{{ListCtrl or ConfigDB}}} now available via {{{Padre::Plugin::CookBook}}} see trunk … … 231 231 232 232 * _on_list_col_clicked 233 {{{#!perl 234 235 }}} 233 we now have to handle the event data. 234 {{{#!perl 235 sub _on_list_col_clicked { 236 my ( $self, $list_event ) = @ARG; 237 238 $col_num = $list_event->GetColumn(); 239 }}} 240 236 241 * _on_list_item_activated 237 {{{#!perl 238 239 }}} 240 241 242 or use to find other data, this case, we are extracting the session id from the row you clicked on. 243 {{{#!perl 244 sub _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 242 251 243 252
