#5 Button valign error

closed
None
7
2003-12-03
2001-08-04
Anonymous
No

$Window->AddButton(-name=>"but1",-left=>10,-top=>10,
-width=>10,-
height=>20,
-title=>"ok1",
-align=>right,
-valign=>center,
-visible=>0);

$Window->AddButton(-name=>"but3",-left=>10,-top=>150,
-width=>90,-
height=>90,
-title=>"ok",
-align=>right,
-valign=>top,
-visible=>1);

in first case title really be top, second case visa
verse.

Discussion

  • Nobody/Anonymous

    Logged In: NO

    $main->AddButton(
    -name => 'BUTTON_001',
    -text => 'Hello, world',
    -font => $font,
    -align => left, #left,center,right left doesn't seem to
    work center is left!!!
    -valign => top, #top,center,bottom top doesn't seem to
    work center is bottom!!!
    -pos => [0, 140],
    -size => [125, 25]
    );

     
  • Steve Pick

    Steve Pick - 2003-11-23

    Logged In: YES
    user_id=690817

    try quoting the string "top" instead of using a bareword.

     
  • Steve Pick

    Steve Pick - 2003-12-03
    • priority: 5 --> 7
    • assigned_to: nobody --> theweevil
    • status: open --> closed
     
  • Steve Pick

    Steve Pick - 2003-12-03

    Logged In: YES
    user_id=690817

    Just checked this out. Works fine if you use quoted strings
    instead of barewords, except horizontal alignment is crazy
    (center aligns left, left aligns center). I'll fix this and commit.

    valign works fine for "top" "center" and "bottom".

     

Log in to post a comment.