OpenFileRequester with long filenames
Posted: Wed Jun 29, 2016 7:11 am
When I call OpenFileRequester specifying a DefaultFile with a filename exceeding about 14 characters (or a displayed length of about 84 pixels) I only get the trailing part of the DefaultFile initially visible, for example:

This is the result of this code:
which is based on the example given in the PB Help. The full filename in this example is autoexecabcd.bat. Much longer filenames are also limited to this initial visible display size.
Although the displayed and highlighted part of the filename is short, the complete filename is present and can be seen been clicking 'Home' when the cursor is on the field.
Is there a way to get the full file name visible on displaying the OpenFileRequester dialog? I get the same results with both x86 and x64 compiles under Windows 10, using PB 5.42 LTS.

This is the result of this code:
Code: Select all
StandardFile$ = "C:\autoexecabcd.bat"
Pattern$ = "Text (*.txt)|*.txt;*.bat|PureBasic (*.pb)|*.pb|All files (*.*)|*.*"
Pattern = 0
File$ = OpenFileRequester("Please choose file to load", StandardFile$, Pattern$, Pattern)
Although the displayed and highlighted part of the filename is short, the complete filename is present and can be seen been clicking 'Home' when the cursor is on the field.
Is there a way to get the full file name visible on displaying the OpenFileRequester dialog? I get the same results with both x86 and x64 compiles under Windows 10, using PB 5.42 LTS.