in reply to Win32::FileOp window positioning?

Hello Spike, why do you mix Win32 and Tk?

Did you look at the Tk::FileSelect or Tk:FBox modules? They seem to be a wrapper for the Win32 common dialog under Win2K for me and are easy to use.

Look into the Tk Widget demo under 'common dialogs' point 2. Click the browse button to see them, click see code for an example in sub fileDialog.

They work fine for me.

And it came to pass that in time the Great God Om spake unto Brutha, the Chosen One: "Psst!"
(Terry Pratchett, Small Gods)

  • Comment on Re: Tk::FileSelect or Tk::FBox as common file dialogs for Win32

Replies are listed 'Best First'.
Re: Re: Tk::FileSelect or Tk::FBox as common file dialogs for Win32
by spikey_wan (Scribe) on Mar 19, 2004 at 11:59 UTC
    Thanks Brutha. Initially, I was using these, but I have a problem with getSaveFile. If the selected file already exists, it gives a "file exists, overwrite?" warning, which seems impossible to switch off. In my script, if the user selects an existing file, it is because they want their results appending to the existing file, so you can see that this warning was inappropriate and misleading. As I couldn't stop this warning from happening, I had to try something else, which opened up a whole new can of worms ;-)