Drive file etc list box like windows explorer. lazarus / 31-LCL ---------------------------------------------------------------------- marsheng · 2022-03-19 07:26 I'm sure there is a solution but the correct question is probably eluding me. All posts I seen on this are very old. I basically want to look for files on my drive and send them via a serial port to a CNC machine. Same function as Files Open as in the Lazarus IDE. I need to be able to access the network drives, directories, and files. PS I'm a simple programmer that started with dBaseIII. Where do I look ? ---------------------------------------------------------------------- Leledumbo · 2022-03-19 08:12 https://wiki.lazarus.freepascal.org/Howto_Use_TOpenDialog ---------------------------------------------------------------------- marsheng · 2022-03-19 08:29 I know how to open files, I need an interface listing all my files so I can select the correct one. ---------------------------------------------------------------------- dseligo · 2022-03-19 10:20 Quote from: marsheng on March 19, 2022, 09:29:58 amI know how to open files, I need an interface listing all my files so I can select the correct one. Leledumbo pointed you at that interface, OpenDialog does not open files. If you want something else you must describe a little better what you want to do. ---------------------------------------------------------------------- marsheng · 2022-03-20 09:56 ShellTreeView works nicely. I can get the path with Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i edit1.Text:=ShellTreeView1.Path; I cant however, get ShellListView to populate with my selection from ShellTreeView. Not sure what to use and haven't been able to get the context help to work. ---------------------------------------------------------------------- marsheng · 2022-03-20 10:19 I found a nice example in looking for help on ShellFileView. Does what I want http://lazplanet.blogspot.com/2013/06/create-simple-file-browser- in-2-minutes.html ---------------------------------------------------------------------- Thaddy · 2022-03-20 12:44 There is TFileListBox... ---------------------------------------------------------------------- marsheng · 2022-03-20 21:08 Now I was looking for a mask for ShellListBox but apparently there wasn't one a few years ago. https://forum.lazarus.freepascal.org/index.php/topic,46426.15.html Is there one now ? If not, its back to the drawing board for me. ---------------------------------------------------------------------- wp · 2022-03-20 21:41 ShellListbox? This component does not exist... There is a TFileListbox with Mask property: see https://lazarus- ccr.sourceforge.io/docs/lcl/filectrl/tcustomfilelistbox.mask.html Or a TShellListView with Mask property: see https://lazarus- ccr.sourceforge.io/docs/lcl/shellctrls/tcustomshelllistview.mask.html There is no Mask for TShellTreeView, but in Laz v2.2.0+ it has an OnAddItem event which is called whenever a node is added to the tree and where you can decide by means of the CanAdd parameter whether to add the item or not. ---------------------------------------------------------------------- marsheng · 2022-03-21 02:54 ShellTreeBox and FileListBox  looked promising but FileListBox does not show the date and size. Can that be implemented ? The next thing is I want memorise where I was and reload next time I run the program so that has to be an option.