Hi All,
I am new to Perl but have worked before in UNIX scripting and (gasp) Microsoft Access......anyway what I am trying to do is "center pad" a line of text at the top of the screen.
What I mean is I'd like to have Name, ID, Alias at the upper left corner, and then have the Phone number at the upper right, padding spaces in the middle based on the length of everything.
Is there some simple way to do this in Tk? Here's what I have so far.....Thanks for any advice!
jpasquini
## banner_ids (line #2) ##
$lbl_banner_ids = $frm_banner_ids
-> Label( -text => "UserID: $userid Profile: $profile_name Name: $nameid Phone (to right): $phoneid",
-font => $ss_fixed_width )
-> pack( -side => 'left', -fill => 'x' );
I am new to Perl but have worked before in UNIX scripting and (gasp) Microsoft Access......anyway what I am trying to do is "center pad" a line of text at the top of the screen.
What I mean is I'd like to have Name, ID, Alias at the upper left corner, and then have the Phone number at the upper right, padding spaces in the middle based on the length of everything.
Is there some simple way to do this in Tk? Here's what I have so far.....Thanks for any advice!
jpasquini
## banner_ids (line #2) ##
$lbl_banner_ids = $frm_banner_ids
-> Label( -text => "UserID: $userid Profile: $profile_name Name: $nameid Phone (to right): $phoneid",
-font => $ss_fixed_width )
-> pack( -side => 'left', -fill => 'x' );