Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Centring text in a WxPerl static text box

by NetWallah (Canon)
on Feb 14, 2018 at 03:00 UTC ( #1209100=note: print w/replies, xml ) Need Help??


in reply to Centring text in a WxPerl static text box

Try the American spelling : wxALIGN_CENTER.

The perl Wx::DemoModules::wxStaticText module has this declaration:

sub styles { my( $self ) = @_; return ( [ wxALIGN_LEFT, 'Align left' ], [ wxALIGN_CENTER, 'Align center' ], [ wxALIGN_RIGHT, 'Align right' ], [ wxST_NO_AUTORESIZE, 'No autoresize' ], ); }

                Python is a racist language what with it's dependence on white space!

Replies are listed 'Best First'.
Re^2: Centring text in a WxPerl static text box
by HenryLaw (Initiate) on Feb 14, 2018 at 08:31 UTC
    Almost uniquely in my experience, Wx, and therefore WxPerl, accepts both spellings; see http://docs.wxwidgets.org/2.8.12/wx_wxstatictext.html#wxstatictext

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1209100]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2018-07-19 23:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (421 votes). Check out past polls.

    Notices?