Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Centring text in a WxPerl static text box

by NetWallah (Canon)
on Feb 14, 2018 at 03:00 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1209100]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2024-04-18 14:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found