Hi,
Is it possible to limit the number of selectable files, say if you only want the user to be able to select two files, in OpenfileDialog with AllowMultipleSelections as true?
Thanks.
Hi,
Is it possible to limit the number of selectable files, say if you only want the user to be able to select two files, in OpenfileDialog with AllowMultipleSelections as true?
Thanks.
Nope, do a loop with post processing.
Check if count <> 2, and if it is, show “Invalid choice, you must select 2 files, try again”, and reopen the dialog for a new selection until an abortion of the operation or user selecting 2 valid files.
Ah I see. I was wondering if there was something I missed that could do that.
Well no worries. Thanks!
Not so quick.
If you use for example NSOpenPanelMBS class for the dialog, you can have an event when the user changes selection.
Same for Windows with WinFileOpenDialogMBS class.
Ah cool.
No biggie. I was just wondering if XOJO had something built in.
Have to keep this in mind.
Thanks!