Do you mean browsing for a folder rather than a file? If so, see:
Win32::GUI::BrowseForFolder
Cheers,
jez.
________________________________
> From: ad...@ms...
> To: per...@li...
> Date: Mon, 2 Jun 2008 14:48:29 -0500
> Subject: [perl-win32-gui-users] Browse Buttons For Just Directories, and the Clear() method
>
> Hello, I was wondering if there is a way that you can setup the Win32::GUI::GetOpenFileName to open a directory rather than a file?
>
> Also I have tried the Clear() method and it doesn't seem to do anything. I have the following code:
>
>
> # Clear button
> my $clearButton = $main->AddButton(-name => "clearButton",
> -text => "Clear Text",
> -pos => [250, 150],
> -size => [75, 30],
> -tabstop => 1,);
>
> # Clear the text in the main screen
> sub clearButton_Click
> {
> $main->textDirPath->Clear();
> $main->textFileExt->Clear();
> }
>
>
> That obviously is not the whole thing, but I can't seem to figure out how to make it work. Any Suggestions? Thanks
>
> -Andy
_________________________________________________________________
All new Live Search at Live.com
http://clk.atdmt.com/UKM/go/msnnkmgl0010000006ukm/direct/01/
|