Not correct.
How do you know?
Like I said in the OP, GetOpenFileName() and GetSaveFileName(), for example, pop up and show at the foreground, on top of all other existing windows. So why should BrowseForFolder() be different? It's the same type of window/interaction.
It isn't. Neither one will pop up if they (the parent, the app) don't have focus (aka permission ) to pop up -- they simply flash on the taskbar
Not correct. That code compiles fine.
Oh really?
$ perl
$InputDir = Win32::GUI::BrowseForFolder( -root => $TopDir, -includefil
+es => 1,
-title => 'Select directory fo
+r parameter file',
-text =>'text Selext directory
+ for parameter file',
-size => [50/100*$dw, 50/100*$
+dh], -addexstyle => WS_EX_TOPMOST,);
^Z
Undefined subroutine &Win32::GUI::BrowseForFolder called at - line 1.
Really?
use Win32::GUI;
use warnings;
$InputDir = Win32::GUI::BrowseForFolder( -root => $TopDir, -includefil
+es => 1,
-title => 'Select directory fo
+r parameter file',
-text =>'text Selext directory
+ for parameter file',
-size => [50/100*$dw, 50/100*$
+dh], -addexstyle => WS_EX_TOPMOST,);
__END__
Name "main::dh" used only once: possible typo at - line 6.
Name "main::InputDir" used only once: possible typo at - line 3.
Name "main::dw" used only once: possible typo at - line 6.
Name "main::TopDir" used only once: possible typo at - line 3.
Use of uninitialized value $dw in multiplication (*) at - line 3.
Use of uninitialized value $dh in multiplication (*) at - line 3.
Use of uninitialized value in subroutine entry at - line 3.
How do I post a question effectively? , Basic debugging checklist , How (Not) To Ask A Question
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.