in reply to Wx: Passing events

# this doesn't work... so have to hack the parameters (see above) # $self->SetStyle(Wx::TextCtrl::wxTE_MULTILINE);
It doesn't work because SetStyle controls wxTextAttr (ie font, color ...), not "Window styles", you need
$self->SetWindowStyle( wxTE_MULTILINE | $self->GetWindowStyleFlag ); # wxPerl bug, GetWindowStyle synonym unavailable, reported # http://sourceforge.net/tracker/index.php?func=detail&aid=2004831&gro +up_id=15655&atid=115655

Replies are listed 'Best First'.
Re^2: Wx: Passing events
by Anonymous Monk on Jun 28, 2008 at 06:17 UTC
    And that doesn't work on windows. The apperance is changed (scrollbar is added), but it doesn't accept multiline input (or respond to enter), apparently a wxwidgets win32 limitation.