[Lazarus] ShellTreeView/ShellListView and Root

Bart bartjunk64 at gmail.com
Mon Apr 8 18:39:48 CEST 2013


On 4/8/13, Hans-Peter Diettrich <DrDiettrich1 at aol.com> wrote:
> Graeme Geldenhuys schrieb:
>> On 2013-04-06 13:49, Bart wrote:
>>> * Editing a "node" will actually rename the folder (as users expect)
>>
>> Shouldn't file and directory management be left up to the file manager
>> of each OS? If not, where is this going to end?
>
> On Windows the Explorer consists of just these two components, which
> implement most of its file management functionality. So either component
> *is* an OS (Windows) file manager. The OS file access rights are
> considered sufficient to protect the machine against the user.
>
> Editing directory names is required whenever the user wants to save
> something into a new directory. Then the component allows to create a
> new directory first, then to rename it as desired.
>
> DoDi

Well, to be honest, current implementation kind of sucks.
I made it a little better (I hope) with my changes to SetRoot and SetPath.
At least it looks better and navigates better now.
(Somebody needs to test this on WinCE!)

Ultimately, if we want some kind of Delphi compatibility, we should
let the widgetset/OS do drawing/populating/interacting with FS, just
like TSelectDirectoryDialog.

This is however far beyond my capabilities.

Bart




More information about the Lazarus mailing list