Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FileSelect - getOpenFile sticks on W2K

Status
Not open for further replies.

MoshiachNow

IS-IT--Management
Joined
Feb 6, 2002
Messages
1,851
Location
IL
HI,

It works nicely on my XP,but sticks on W2K.

Any suggestion for a better fileselct for Tk,or how to use getOpenFile on W2k ?

Thanks

Long live king Moshiach !
 
You could always make one yourself... use opendir and readdir to list files, show them in a widget, etc.
 
BrowseForFolder will return a filename as well as folder names, I use it frequently.
Code:
sub browse_Button_Click {
	my $browse_file = $main->BrowseForFolder(
		-title => "Select File",
		-root => (0x0011),
		-owner => "$main",
		-includefiles => 1,
	);
}
 
what does "getOpenFile sticks on W2K" mean anyways? Sticks how? Is the script dieing? Is it going into a loop? Is it waiting for input? Have you checked any error logs?
 
More input:

It works fine on my local XP with ActiveState.

However it get sticks when compiled with "pp" and ran on W2K.Sticks just when the browser window should open.
No error messages.
Possibly a problem of a pp,or an issue with Win32 API on W2K ?

Thanks

Long live king Moshiach !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top