Hi everyone,
I’m trying to use OpenFileDialog
in Xojo to allow users to select a file, but I want to filter the displayed files by a specific filename pattern, such as PLAN_*.TXT
.
I know that Xojo’s OpenFileDialog.Filter
only supports file extensions (e.g., "txt"
), but on Windows, the native file dialog supports pattern-based filtering (e.g., "PLAN_*.TXT"
).
Is there a way in Xojo to apply a filename pattern filter (e.g., PLAN_*.TXT
) directly in OpenFileDialog
, without using Windows declares? Or is using the Windows API the only way to achieve this?
3 posts - 2 participants