in reply to Annoyance with Tk::FileDialog in MSWindows
I do not have an easy answer for you. FileDialog ISA Toplevel and should take -takefocus => 1 as an argument. It appears not to. I tried some sample code on a win2k box and saw the problem you described. Looking at the module code it does not appear to handle focus like a typical module (using Toplevel) would.
I think FileSelect works in a much more intuitive manner than FileDialog does. It looks decent enough and behaves like a typical popup (*not* verified on win2k). The added advantage is that FileSelect is a standard part of Tk so you won't annoy potential downloaders with 'yet another module to install syndrome'.
Update: Confirmed - FileSelect works as expected in win2k (at least). I recommend you use it - have a peek at FileSelect.pm to see the available configuration options.
Sorry I couldn't be of more help - I tried to bludgeon FileDialog into submission, but it wouldn't listen. Bad module! {g}
{NULE}
--
http://www.nule.org
|
|---|