in reply to Tk::DirTree & Win
where my $dt = $dirlist->Scrolled('DirTree',....if ($^O eq 'MSWin32') { require 'Win32API::File'; my @drv = map{s/\\$//;lc} Win32API::File::getLogicalDrives(); $dt->add_to_tree($_, $_) for @drv; }
Also, to behave good on Win32, I override 'has_subdir':
and you will not get annoying behaviour, when before opening a window each drive will be tryed to access, causing by CD-ROM, diskette to roll, and slow network drives to slow down your program.package Tk; sub has_subdir {1}
Warmest wishes,
Vadim
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Tk::DirTree & Win
by vkonovalov (Monk) on May 30, 2002 at 11:07 UTC | |
by NaSe77 (Monk) on May 30, 2002 at 11:12 UTC |