Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^3: Centring text in a WxPerl static text box

by beech (Parson)
on Feb 14, 2018 at 22:52 UTC ( [id://1209185]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Centring text in a WxPerl static text box
in thread Centring text in a WxPerl static text box

Hi

I'm on windows and this seems to be a known issue on non windows #15637 (Solution for wxStaticText horizontal alignment and vertical spacing problem) – wxWidgets

One solution for OP to center in both sizers

$sizer->AddStretchSpacer(); my $text_sizer = Wx::BoxSizer->new( Wx::wxHORIZONTAL() ); $sizer->Add( $text_sizer, 1, wxEXPAND | Wx::wxCENTRE() ); $text_sizer->Add( $text, 1 , wxEXPAND | Wx::wxCENTRE() );

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1209185]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-03-29 01:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found