develooper Front page | perl.wxperl.users | Postings from January 2013

WXPerl Question - Styling textctrl

Thread Next
Brad Van Sickle
January 19, 2013 22:37
WXPerl Question - Styling textctrl
Message ID:

I'm having some problems getting styles to take effect on a TextCtrl 
box.   I'm using a TextCtrl to display the response to an HTTP request 
and it's getting written to the TextCtrl in one super long line.   I'd 
like to wrap the text and use all of the vertical space in the window.

Here is how I'm creating my TextCtrl, but the styles simply don't seem 
to be taking effect.

/    $self->{Response_Text} = Wx::TextCtrl->new($panel,    # parent//
//                       6,                  # id//
//                       "",                # label//
//                       [100, 275],            # position//
//                       [500, 400],       # text control size [width, 
height] //
//                       ('wxTE_MULTILINE' | 'wxTE_READONLY' | 
'wxTE_WORDWRAP' ),//
//                      );/

I've also tried to experimenting with wxTE_PASSWORD because it seemed 
like an easy way to test to see if I could get any styles to apply, but 
nothing seems to actually work.... any advice?

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About