473,395 Members | 1,532 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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

Expand|Select|Wrap|Line Numbers
  1. my $Bowseout = $top->Text(
  2.     -width  => 30,
  3.     -height => 1,
  4. );
  5. my $brow = $top->Button(
  6.     -text    => '   Browse   ',
  7.     -command => \&display,
  8. );
  9.  
  10. sub fileopen {
  11.     my $file = $top->getOpenFile(
  12.         -filetypes => $types,
  13.         -title     => "PDF Search Tool",
  14.     );
  15.     print "$file jayedra";
  16. }
  17.  
Help me Please.
Oct 30 '07 #1
1 1267
eWish
971 Expert 512MB
Try using -file in lieu of -text.

Expand|Select|Wrap|Line Numbers
  1. my $brow = $top->Button(-file => '   Browse   ',
Oct 31 '07 #2

Sign in to post your reply or Sign up for a free account.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.