in reply to Re: How to change a Tk module?
in thread How to change a Tk module?

Thanks for the Win32::FileOp suggestion, it seems to do the trick. I have one last problem, now, and that is with positioning the SaveAsDialog window. It seems to always appear in the top left corner of the screen. I'm wondering if the handle option has anything to do with this? Have I set it correctly, if my main Tk window is called $mw?

$out = SaveAsDialog (
-title => "$title - Save your results as:",
-filters => [
'CSV files' => '*.csv',
'All files' => '*.*'],
-defaultfilter => 1,
-handle => "$mw",
);

Thanks,
Spike.

Replies are listed 'Best First'.
Re: Re: How to change a Tk module?
by eserte (Deacon) on Mar 18, 2004 at 10:41 UTC
    The handle is probably a Win32 HWND. You can get the HWND by calling $mw->id (I'm not 100% sure, consult the Tk::Widget and Tk::Wm documentation).