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

WXPerl Question - Styling textctrl

Thread Next
From:
Brad Van Sickle
Date:
January 19, 2013 22:37
Subject:
WXPerl Question - Styling textctrl
Message ID:
50F96B33.9050800@gmail.com
Hello,

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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About