Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
Unwanted files in TOpenDialog
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
IRC channel
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Initiaiizing records by c...
by
Thaddy
[
Today
at 05:41:49 am]
Hypocycloid Program (incl...
by
speter
[
Today
at 05:33:19 am]
Fairtris 2: The Ultimate ...
by
kevin498
[
Today
at 05:09:44 am]
Here's some Pong game. Su...
by
Seenkao
[
Today
at 04:28:13 am]
Designer
by
SandyG
[
Today
at 03:20:24 am]
A question on Modula2 vs ...
by
speter
[
Today
at 03:09:19 am]
Best way to exchange data...
by
cdbc
[
Today
at 03:00:24 am]
lamw
by
desconocido
[
Today
at 12:58:09 am]
scanline example
by
speter
[
Today
at 12:12:12 am]
android
by
desconocido
[
Today
at 12:03:24 am]
Pack
by
domasz
[March 18, 2024, 10:24:35 pm]
IsManagedType problem, do...
by
PascalDragon
[March 18, 2024, 10:05:44 pm]
Conflict when static link...
by
tetrastes
[March 18, 2024, 10:05:28 pm]
Indeed TCustomApplication...
by
PascalDragon
[March 18, 2024, 10:00:49 pm]
"fpc.cfg is missing" (not...
by
AxBen
[March 18, 2024, 09:50:52 pm]
Interesting discovery wit...
by
wp
[March 18, 2024, 09:11:23 pm]
Use Lazarus 3.2 with FPC ...
by
AxBen
[March 18, 2024, 08:56:42 pm]
More Normal Mode for Laza...
by
RayoGlauco
[March 18, 2024, 08:55:53 pm]
How to make a watermarked...
by
loaded
[March 18, 2024, 08:37:24 pm]
Introducing a "using" key...
by
VisualLab
[March 18, 2024, 08:26:22 pm]
Code completion items
by
Martin_fr
[March 18, 2024, 08:26:17 pm]
Poll: Watches and Display...
by
Martin_fr
[March 18, 2024, 07:36:59 pm]
[Solved] Help with sql
by
Zvoni
[March 18, 2024, 05:46:32 pm]
TBGRABitmap.TextSize retu...
by
circular
[March 18, 2024, 04:40:11 pm]
Еличка - a simple calcula...
by
gidesa
[March 18, 2024, 04:16:43 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Unwanted files in TOpenDialog (Read 3704 times)
peardox
Jr. Member
Posts: 70
Unwanted files in TOpenDialog
«
on:
June 23, 2021, 05:03:11 am »
I've got a TOpenDialog with the filter set to ...
Code: Pascal
[Select]
[+]
[-]
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"
«
Last Edit: June 23, 2021, 05:04:54 am by peardox
»
Logged
Bart
Hero Member
Posts: 5265
Re: Unwanted files in TOpenDialog
«
Reply #1 on:
June 23, 2021, 09:18:15 am »
Well, thank M$ then
Bart
Logged
peardox
Jr. Member
Posts: 70
Re: Unwanted files in TOpenDialog
«
Reply #2 on:
June 23, 2021, 10:20:04 am »
Quote from: Bart on June 23, 2021, 09:18:15 am
Well, thank M$ then
Bart
Really helpful I must say...
Logged
Aidex
Jr. Member
Posts: 82
Re: Unwanted files in TOpenDialog
«
Reply #3 on:
June 23, 2021, 11:46:57 am »
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.
Logged
peardox
Jr. Member
Posts: 70
Re: Unwanted files in TOpenDialog
«
Reply #4 on:
June 23, 2021, 03:18:32 pm »
Sorta makes sense
It's a cosmetic problem, really, as I can just ignore anything that doesn't fit my filespec
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
Unwanted files in TOpenDialog
TinyPortal
© 2005-2018