Unwanted files in TOpenDialog lazarus / 21-General ---------------------------------------------------------------------- peardox · 2021-06-23 03:03 I've got a TOpenDialog with the filter set to ... 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 OpenDialog1.Filter := '3D Models|*.gltf;*.glb;*.obj;*.x3d;*.x3dv'; When I navigate to a directory with some files with the url extension they get included even though they're not in the filter. The target of the url also ain't in the filter spec... This is a Windows only "Feature" ---------------------------------------------------------------------- Bart · 2021-06-23 07:18 Well, thank M$ then  Bart ---------------------------------------------------------------------- peardox · 2021-06-23 08:20 Quote from: Bart on June 23, 2021, 09:18:15 amWell, thank M$ then  Bart Really helpful I must say... ---------------------------------------------------------------------- Aidex · 2021-06-23 09:46 I think what Bart meant to say is that it's a behavior of Windows that you can't influence. See https://stackoverflow.com/questions/56060231/openfiledialog-keep- showing-lnk-files-wpf I found the function TOpenDialog.CheckFile(), but I don't know if it affects the display in the dialog window. If so, you could create a derived class and override the function to sort out the .lnk files. But I don't think that will work. ---------------------------------------------------------------------- peardox · 2021-06-23 13:18 Sorta makes sense It's a cosmetic problem, really, as I can just ignore anything that doesn't fit my filespec