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 (Acolyte) 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