Changeset 462


Ignore:
Timestamp:
10/25/08 09:46:35 (3 years ago)
Author:
adamk
Message:

Factoring out the output window into it's own module.

When the output window is NOT displayed, Freeze it to avoid it causing graphics bugs

Location:
trunk/lib/Padre/Wx
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Padre/Wx/MainWindow.pm

    r459 r462  
    1717                   wxLC_SINGLE_SEL wxLC_NO_HEADER wxLC_REPORT wxLIST_AUTOSIZE wxTE_READONLY wxTE_MULTILINE  
    1818                   wxOK wxCENTRE wxFD_OPEN wxID_CANCEL wxFD_SAVE wxYES_NO wxYES wxCANCEL wxNO 
    19                    wxSTC_STYLE_LINENUMBER wxSTC_MARGIN_NUMBER); 
     19                   wxSTC_STYLE_LINENUMBER wxSTC_MARGIN_NUMBER 
     20                   ); 
    2021use Wx::Event      qw( 
    2122                   EVT_LIST_ITEM_ACTIVATED EVT_NOTEBOOK_PAGE_CHANGED EVT_KEY_UP EVT_CLOSE 
    22                    EVT_STC_UPDATEUI EVT_STC_CHANGE EVT_STC_STYLENEEDED); 
     23                   EVT_STC_UPDATEUI EVT_STC_CHANGE EVT_STC_STYLENEEDED 
     24                   ); 
    2325 
    2426use base qw{Wx::Frame}; 
     
    2830use Padre::Wx::Editor  (); 
    2931use Padre::Wx::ToolBar (); 
     32use Padre::Wx::Output  (); 
    3033 
    3134our $VERSION = '0.12'; 
     
    134137 
    135138    # Create the bottom-of-screen output textarea 
    136     $self->{output} = Wx::TextCtrl->new( 
     139    $self->{output} = Padre::Wx::Output->new( 
    137140        $self->{main_panel}, 
    138         -1, 
    139         "",  
    140         Wx::wxDefaultPosition, 
    141         Wx::wxDefaultSize, 
    142         Wx::wxTE_READONLY | Wx::wxTE_MULTILINE | Wx::wxNO_FULL_REPAINT_ON_RESIZE, 
    143141    ); 
    144142 
     
    11271125            -100, 
    11281126        ); 
     1127        $self->{output}->Thaw; 
    11291128    } 
    11301129    if ( $self->{main_panel}->IsSplit and not $on ) { 
    11311130        $self->{main_panel}->Unsplit; 
     1131        $self->Freeze; 
    11321132    } 
    11331133    return; 
Note: See TracChangeset for help on using the changeset viewer.