in reply to Using a scalar as a constant?
wxTE_MULTILINE actually is a function which has some value, and that value seems to be not the string "wxTE_MULTILINE". So you can do it like this:
... my $style = wxTE_MULTILINE(); Wx::TextCtrl->new( $self, -1, "", [5, 10], [-1, -1], $style );
Update: Fixed a typo spotted by Fletch
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Using a scalar as a constant?
by Anonymous Monk on Oct 15, 2008 at 13:26 UTC | |
by Corion (Patriarch) on Oct 15, 2008 at 13:29 UTC | |
by JavaFan (Canon) on Oct 15, 2008 at 14:10 UTC | |
by suaveant (Parson) on Oct 15, 2008 at 14:22 UTC | |
by JavaFan (Canon) on Oct 15, 2008 at 15:24 UTC | |
| |
by Anonymous Monk on Oct 15, 2008 at 13:56 UTC | |
by Anonymous Monk on Oct 15, 2008 at 13:46 UTC | |
by Anonymous Monk on Oct 15, 2008 at 14:00 UTC |
In Section
Seekers of Perl Wisdom