It's been a bit since I worked with Perl/Tk but I recall the Toplevel
widget...

"""
A toplevel is similar to a frame except that it is created as a top-level
window: its X parent is the root window of a screen rather than the logical
parent from its path name. The primary purpose of a toplevel is to serve as
a container for dialog boxes and other collections of widgets. The only
visible features of a toplevel are its background color and an optional 3-D
border to make the toplevel appear raised or sunken.
"""

Hope this helps,
Joe Youngquist

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
Radecki, Maria T
Sent: Tuesday, April 09, 2002 10:02 AM
To: Perl-Win32-Users Mailing List (E-mail)
Subject: Annoyance with Tk::FileDialog in MSWindows


I'm using Tk::FileDialog for file and directory selection.

I have a problem in MS Windows, the FileDialog window appears behind the
parent window and is therefore partially or fully hidden. An annoyance to
the user.

The script must run on both UNIX and MSWindows platforms. I chose
Tk::FileDialog because it worked the best on both platforms. The FileDialog
window works fine in UNIX (ie. it shows up on top).

Is there a better module to use that will work on both platforms?
Does anyone know of a configure setting that will force the FileDialog
window to the top?

Sample code:

my $Dir = $main->Frame(....);
my $DirDialog = $Dir->FileDialog(-Title=>'A title',
                                 -Create=>0,
                                 -SelDir=>1);
my $DirDialog->configure(-FPat=>'*',
                         -ShowAll=>'NO');
my $DirName = $DirDialog->Show(-Path => $APathName);
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to