Haxe/hxcpp&cppia @:native binding for https://github.com/samhocevar/portable-file-dialogs
-D HXCPP_CPP11 # minimum required
haxelib git linc_filedialogs https://github.com/dazKind/linc_filedialogs.git
import filedialogs.FileDialogs;
// ...
var res = FileDialogs.open_file("Open files", "", ["Cortex Resource Files", "*.cxr"], Option.Multiselect);
trace(res);
var res = FileDialogs.save_file("Save a file", ".cxr", ["Cortex Resource Files", "*.cxr"]);
trace(res);
var res = FileDialogs.select_folder("Select a folder");
trace(res);
var btn:Button = FileDialogs.message(
"Unsaved Files",
"Do you want to save the current document\n before closing the application?",
Choice.Yes_No_Cancel, Icon.Warning);
FileDialogs.notify(
"Cortex event",
"Something might be on fire 🔥",
Icon.Warning
);
Find them here: https://github.com/samhocevar/portable-file-dialogs?tab=readme-ov-file#screenshots-windows-10