Browse_text box

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kamalatanvi
    New Member
    • Oct 2007
    • 7

    Browse_text box

    Hi,

    I have one text box and one browse buttom.
    If I click on browse button, I would like to get
    the folder path in text box.

    Code is here

    [code=perl]
    my $Bowseout = $top->Text(
    -width => 30,
    -height => 1,
    );
    my $brow = $top->Button(
    -text => ' Browse ',
    -command => \&display,
    );

    sub fileopen {
    my $file = $top->getOpenFile(
    -filetypes => $types,
    -title => "PDF Search Tool",
    );
    print "$file jayedra";
    }
    [/code]

    Help me Please.
    Last edited by numberwhun; Oct 30 '07, 11:35 AM. Reason: add code tags
  • eWish
    Recognized Expert Contributor
    • Jul 2007
    • 973

    #2
    Try using -file in lieu of -text.

    [CODE=perl]my $brow = $top->Button(-file => ' Browse ',[/CODE]

    Comment

    Working...