Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-09

TDirectoryListBox component

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

Does Lazarus have a TDirectoryListBox component? I found the TFileListBox and I'm not sure if it's directory friend is in some extra package maybe?

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Felipe Monteiro de Carvalho
to Graeme Geldenhuys

A TDirectoryListBox is too limited, because in Windows you also need a combobox to choose the drive, which doesn't exist in other operating system.

A more cross-platform solution is implementing TShellTreeView, because it will represent both the dir and the drive in Windows and only the dir in other operating systems (In Mac OS X I think we also need the volume). This control is in my ToDo list. I'm just waiting some guidelines to start development.

Felipe Monteiro de Carvalho

Reply by email

Graeme Geldenhuys
to Felipe Monteiro de Carvalho: A TDirectoryListBox is too limited, because in Windows you also need a combobox to choose…
Felipe Monteiro de Carvalho wrote
A TDirectoryListBox is too limited, because in Windows you also need a combobox to choose the drive, which doesn't exist in other operating system.

That's true...

Show quoted text 5 lines
A more cross-platform solution is implementing TShellTreeView, because it will represent both the dir and the drive in Windows and only the dir in other operating systems (In Mac OS X I think we also need the volume). This control is in my ToDo list. I'm just waiting some guidelines to start development.

Thanks Felipe, that sounds interesting. It might be useful to integrate TShellTreeView in the File Browser IDE add-on (under development). I just send my code to Michael van Canneyt. The main form used a Treeview and the FileListBox. It's pretty much a copy of the DirSel.pas unit (included in LCL but not used anywhere). It (dirsel.pas) has quite a few bugs under Windows, which I fixed in the File Browser code. The completed IDE add-on should be available soon.

Your response just reminder me to include some code from fpGUI, which handles drive letters (windows) or not (unix) without issues. I'll incorporate that code into the File Browser, if Michael didn't spot it. ;-)

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email