I actually have a very similar question to Rob's,
though I'm pretty sure that it warrants the same
response.  I'm writing an app to automate some menial
tasks for some photographer friends.  Since the app
only opens images, I have set the filter for
GetOpenFileName accordingly.  It would be very nice to
be able to have that dialog default to the thumbnail
view.  Does anyone know if this sort of thing is
possible?

I found this:

http://msdn.microsoft.com/msdnmag/issues/04/03/CQA/

though, I'm not sure that it's relevant to the
Win32::GUI way of doing things and probably involves
some of that magical hooking that I occasionally see
on here...

-ariel

--- "Brian H. Oak" <[EMAIL PROTECTED]> wrote:

> Rob,
> 
> I thought I would hang back and let a real guru
> answer your question, but no real gurus seem to be
> stepping up to the plate so here I go:
> 
> Win32::GUI::GetOpenFileName is a hook into a Windows
> system resource, it is not a Win32::GUI object over
> which you have control.  You (the programmer) can't
> size it or position it at all.  The system will
> position it every time and, to the best of my
> knowledge, the system places it exactly where the
> user left it the last time they called it up -- with
> any program, not just your Win32::GUI application.
> 
> Once again, I am not a guru... I've actually only
> been using Win32::GUI for a few weeks, although I've
> been programming Perl on Win32 for years now.  If
> someone more knowledgeable than I wants to
> contradict anything I've said here, I hope they will
> feel free to do so.  YMMV, 'nuff said.
> 
> Hope this helps,
> 
> -Brian
> 
> 
> -----Original Message-----
> From:
> [EMAIL PROTECTED]
>
[mailto:[EMAIL PROTECTED]
> On Behalf Of Rob
> Sent: Thursday, September 22, 2005 21:23
> To: perl-win32-gui-users@lists.sourceforge.net
> Subject: [perl-win32-gui-users] Centering
> Win32::GUI::GetOpenFileName Dialog Box
> 
>  Does anyone know how I could center my
> Win32::GUI::GetOpenFileName dialog
>  box in my window say $window_main?
>  
>     $directory_and_file_name =
> Win32::GUI::GetOpenFileName
>     (
>       -owner     =>  $window_main ,
>       -size      =>  [ 400, 400 ] ,
>       -directory =>  $directory ,
>       -file      =>  $file ,
>       -title     =>  'Open' ,
>       -filter    =>  [ 'Text files' , '*.txt' , 'All
> files' , '*.*' ] ,
>     ) ;
> 
> Rob
>
HµŠ²²uj¢z¢žjžÂ…zЦ®–Š­ymµvŠÚ²¾¢zŸ=–…¶k¶²q®zzІ®ŸPzjž²®ŸPzвq®zØm¶›?þX¬¶Ë(º·~Šàzw­þX¬¶ÏåŠËbú?¥êåÂ)÷Ú
> ¢ºÇ«
> 
> 
> 
>
-------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's
> Geronimo App Server.
> Download it for free - -and be entered to win a 42"
> plasma tv or your very
> own Sony(tm)PSP.  Click here to play:
> http://sourceforge.net/geronimo.php
> _______________________________________________
> Perl-Win32-GUI-Users mailing list
> Perl-Win32-GUI-Users@lists.sourceforge.net
>
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
> 


Reply via email to