Re: [perl-win32-gui-users] Re: Centering Win32::GUI::GetOpenFileName Dialog Box

2005-10-11 Thread Jeremy White
Thanks for the reply, but I'm still getting the usage errors with this script, no matter how I call Hook. With the attached file, I tried these 3 ways of calling it: #$win-Hook($win, WM_ENTERIDLE, \Idle($win)); #$win-Hook(WM_ENTERIDLE, \Idle($win)); Win32::GUI::Hook($win,WM_ENTERIDLE,

Re: [perl-win32-gui-users] Re: Centering Win32::GUI::GetOpenFileName Dialog Box

2005-10-10 Thread Jeremy White
command that passes the $win object. when i run that line, then i get a usage error that says only to pass the msg and the coderef. does anyone have any idea what's going on here? #$win-Hook($win, WM_ENTERIDLE, \Idle($win)); Try: $win-Hook(WM_ENTERIDLE, \Idle($win)); When called

Re: [perl-win32-gui-users] Re: Centering Win32::GUI::GetOpenFileName Dialog Box

2005-10-10 Thread Ariel Serbin
Thanks for the reply, but I'm still getting the usage errors with this script, no matter how I call Hook. With the attached file, I tried these 3 ways of calling it: #$win-Hook($win, WM_ENTERIDLE, \Idle($win)); #$win-Hook(WM_ENTERIDLE, \Idle($win)); Win32::GUI::Hook($win,WM_ENTERIDLE,

Re: [win32gui] Re: [perl-win32-gui-users] Re: Centering Win32::GUI::GetOpenFileName Dialog Box

2005-09-29 Thread Robert May
Ariel Serbin wrote: 1. Win32::GUI::FindWindow only finds top level windows (which is what it says in the docs.) The docs are correct! I was thinking of FindWindowEx, which is not in Win32::GUI. I had to install Win32::GuiTest to get the handle of the listview control in the Open dialog.

[perl-win32-gui-users] Re: Centering Win32::GUI::GetOpenFileName Dialog Box

2005-09-27 Thread Robert May
Rob wrote: Does anyone know how I could center my Win32::GUI::GetOpenFileName dialog box in my window Ariel Serbin wrote: It would be very nice to be able to have that dialog default to the thumbnail view. Brian wrote: Win32::GUI::GetOpenFileName is a hook into a Windows system

Re: [perl-win32-gui-users] Re: Centering Win32::GUI::GetOpenFileName Dialog Box

2005-09-27 Thread Ariel Serbin
Rob, Thanks for that email, which was very helpful. It seems like the callback method is the way to go with this one, at least for me. I just spent a long time trying to get the handle for the listview control in the file open dialog. Here are some things that I figured out while failing to