Forum Replies Created
A follow-up to Rob’s post – I tried the HTBFileopen DLL from the 2021 demo with HTB version 10 and it seemed to work there, with just the same characteristics as that originally packaged with version 10. Hence I doubt if the dll has changed during the upgrade from 10 to 2021.
I hope this helps.
Thank you, Henrikhuse, for a most helpful reply to my post.
You have clarified what Parameter 3 and Parameter 5 should do.
In practice, they are not working quite as I expected.
To re-cap my post, I would like to have a file open dialog which allows multiple file selection (which Fileopen.dll does with style=512), and where I can set a mask so only the selected extensions are shown in the file list.
With Fileopen.dll, what I expect to see, when I open the file open dialog (based on the comprehensive documentation in your post) is that all file extensions are masked out except those permitted by Parameter 3 or selected from the option(s) in the extension list box set by parameter 5. In practice, neither Parameter 3 nor 5 seem to influence the list of selectable files. (The Parameter 5 list box seems ineffective and is greyed out, perhaps because it only contains one item. I have not been able work out a format for Parameter 5 to display a list of extensions in the box from which to select.) It may simpply be that, as I don’t know any C, I am not using the correct syntax for these parameters – in which case advice would be much appreciated!
What I find is that I can only mask down the file list to show the preferred extension by passing *.extension as parameter 4.
I also find that I can only set one filename in parameter 4 (Style 512 does not influence Parameter 4) and so I can not mask the file list to show files with either of two defined extensions, which would be a rather useful option.
I can use the Fileopen dll in my application – it is still better than the Widget alternative in that it supports multiple file selection – but it would be much more elegant if I could gain more control of the extension masking in the file list.
Thank you again for your help, and thanks to to all who replied earler to this post.
Thank yyou for suggesting the FILE WIDGET and DIALOG.
I’ve tested these again – it’s a few years since I did so.
There seem to be two shortomings with these in my application, if I have understood them correctly.
1. I can’t find a way to select multiple files so I can initiate a batch process.
As I see it, I would have to select and load files one at a time before commencing the batch process.
HTBFileopen.dll does allow multiple selections and simply concatenates them into the string which it returns.
2. I haven’t been able to find a way to customise the contents of the file type selection box.
If either or both of these can be achieved then this would indeed be a rather nicer solution than the dll.
Thank you again.