comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » DIALOG_PICKFILE bug
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
DIALOG_PICKFILE bug [message #91169] Wed, 10 June 2015 09:03 Go to previous message
markb77 is currently offline  markb77
Messages: 217
Registered: July 2006
Senior Member
While we are bringing up bugs in IDL, this one is particularly annoying and has been around for far too long.

When using the FILE keyword of DIALOG_PICKFILE, if the filename is longer than 15 characters, it is cut off in the dialog's "File name:" window.

In other words, when providing a default file name for the user to read from, which may be "my_long_filename.txt", the user is presented with a dialog which seems to be opening the file "ng_filename.txt".

This is not acceptable for professional code! The problem is demonstrated in the following code snippet.

test code:

;----------------------------

pro dialog_pickfile_bug

fname = 'my_long_filename.txt'

result = DIALOG_PICKFILE(file=fname)

; On Windows, DIALOG_PICKFILE does not show the full
; filename in the "File name:" window of the dialog!

print, result

end
;-----------------------------

This problem has been discussed in this newsgroup many times, and is described on David Fanning's page. One workaround, which is to specify the "WRITE" keyword, is not workable if the user is READING a file. In this case if "WRITE" is specified, the "Open" button of the dialog changes "Save", which is not what the user is expecting to do!

Dear IDL development team, would you please finally address this issue?

best,
Mark
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: end of file in the middle of a text file
Next Topic: restore in IDL 8.4

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 09:22:54 PDT 2025

Total time taken to generate the page: 0.00441 seconds