Graeme Geldenhuys ha scritto:
Hi Giuliano,
I think you misunderstood the problem. The 'dirsel' unit in the LCL
already creates a treeview structure of directories. A patch of mine
just got committed which fixed a whole bunch of issues under Linux.
Anyways, my problem is this. The TSelectDirectoryDialog for GTK1 uses
the TFileOpen dialog, because GTK1 doesn't have a native Select
Directory dialog. My proposal is to use the dirsel unit instead of the
TFileOpen dialog under GTK1.
That means whenever I use the TSelectDirectoryDialog, internally it
actually uses the dirsel unit (treeview of directories). My problem
is, I have no idea how to do that in the LCL code.
Regards,
- Graeme -
PS:
Your first email came directly to me, instead of the mailing list. I
replied back to the mailing list for others to see.
Hey, it appears that not only I misunderstood the problem, but I also
replied to the wrong address! Time to retire? :-( Or just to take a
vacation? :-)
However, back to the problem, what's wrong in doing something of the sort:
{$IFDEF LCLgtk}
TSelectDirectoryDialog: class (TDirSelDlg)
and then put in properties, methods and other stuff in order to make it
formally compatible with TSelectDirectoryDialog
{$ELSE}
TSelectDirectoryDialog: class (TOpenDialog)
.....
Current stuff
{$ENDIF}
With a few IFDEF/ELSE/ENDIF in Dialogs and filedialog.inc you should be
all set.
I'm oversimplifying?
Regards
Giuliano
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives