It is currently Sun Dec 15, 2019 3:42 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: File requester issue
PostPosted: Thu Jun 06, 2019 10:57 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Tue Nov 22, 2011 5:11 pm
Posts: 279
Location: Kelowna, BC, Canada
Using the proc below works as expected - until I navigate to my Desktop folder (Win10) and there it also lists all web shortcuts (*.url) I have on my desktop.
Do others see this phenomenon as well?

Code:
Global StartFile.s

Procedure SelectFile()
  Protected pattern.s = "PureBasic files (*.pb, *.pbi, *.pbp)|*.pb;*.pbi;*.pbp", patternindex = 0
   
  StartFile = OpenFileRequester("Select a Purebasic file/project", "", pattern, patternindex)
  Debug StartFile
EndProcedure

SelectFile()

_________________
PB 5.71 on Windows 10 & OS X High Sierra


Top
 Profile  
Reply with quote  
 Post subject: Re: File requester issue
PostPosted: Fri Jun 07, 2019 3:07 am 
Offline
Enthusiast
Enthusiast

Joined: Thu Apr 18, 2019 8:17 am
Posts: 450
Confirmed here. Also does it for *.url files anywhere on my Win 10 hard drive (not just the desktop).

But it seems to be a normal Windows behavior (not a PureBasic bug):

https://www.pcreview.co.uk/threads/openfiledialog-and-lnk-url-files.3848517/

https://stackoverflow.com/questions/1892595/openfiledialog-always-shows-url-internet-shortcut-files

There's apparently a way to hook the dialog to not show them, as mentioned in the second link above, but it's a lot of work.

The first link above says the *.url links are shown because the shortcuts could point to one of the files in your filter (such as a *.pb file on a website or network folder).


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 16 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye