We are seeing a Windows bug with the native file open dialog. Using a JUCE FileChooser class.
You can give the FileChooser a default filename with its “initialFileOrDirectory” parameter. Thats the file name the file chooser suggests the very first. But when that file name is too long, it gets initially shown truncated:
In the above screenshot I was setting “ThisIsAQuiteLongFilenameToTestABug.8proj” as the initial/default file name.
But as you can see, the file name box of the open dialog shows it truncated. Even though there would be space to show more.
I think this is a Windows bug. Because Google tells me, that other have had similar problems. Here is one thread for example:
https://social.msdn.microsoft.com/Forums/en-US/73791d22-49be-4721-84a5-9e6a960a22aa/cfiledialog-appears-to-truncate-offered-default-file-name?forum=vcgeneral
But the above link also gives a workaround.
Now I was wondering, if the JUCE team wants to implement that workaround in JUCE?
I was testing using JUCE 6.1.5 on Windows 10 version 21H1.