Esc

native_file_dialog

procedureextensionexperimental2 overloadssince 0.36.1Source
  • macOS: native_file_dialog works on macOS
  • Linux: native_file_dialog works on Linux
  • Windows: native_file_dialog works on Windows
  • Wasm: native_file_dialog is not available on Wasm

overload 1

native_file_dialog :: (
    window: WT.Window_Type,
    kind: Dialog_Kind,
    directory: string = "",
    name: string = ""
) -> Dialog_Result

Linux returns UNSUPPORTED without opening a dialog.

overload 2

native_file_dialog :: (
    window: WT.Window_Type,
    kind: Dialog_Kind,
    directory: string = "",
    name: string = ""
) -> Dialog_Result

Runs a modal file/folder picker. The returned UTF-8 path is owned; free it after use.

See also