- Timestamp:
- Dec 12, 2009, 12:48:34 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/pLoader/trunk/src/Uploader/GUI/wxChoiceFilteredPanel.pm
r4094 r4475 65 65 66 66 67 my $self = $class->SUPER::new( $params->{parentwnd}, -1, wxDefaultPosition, wxDefaultSize );67 my $self = $class->SUPER::new( $params->{parentwnd}, $params->{id}||-1, wxDefaultPosition, wxDefaultSize ); 68 68 $self->_init_panel; 69 69 $self->_init_properties($params); 70 70 printf("%s, %s\n", $self, $self->GetId); 71 71 $self->Refresh; 72 72 … … 86 86 87 87 $self->choices( 88 $params->{choices} 88 $params->{choices}|| sub { [] } 89 89 ); 90 90 91 91 $self->selection( 92 $params->{selection} 93 ); 94 95 my $choices = $self->choices->() ||[];92 $params->{selection}|| sub{ [] } 93 ); 94 95 my $choices = $self->choices->(); 96 96 $self->search_result( 97 97 [] … … 136 136 137 137 $self->listchoices( 138 Wx::CheckListBox->new( $self, -1, wxDefaultPosition, [320, 300], [], 0 )138 Wx::CheckListBox->new( $self, -1, wxDefaultPosition, [320,200], [], 0 ) 139 139 ); 140 140 $vsizer->AddWindow( $self->listchoices, 0, wxALIGN_CENTER_VERTICAL|wxALL, 2 );
Note: See TracChangeset
for help on using the changeset viewer.