FunctionPackage: cgToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 8.2
Object described on page has changed in 8.2.
8.1 version

ask-user-for-existing-pathname

Arguments: prompt &key initial-directory initial-name stream allowed-types multiple-p change-current-directory-p share-aware-p default-extension (buffer-size (file-selection-buffer-size (configuration *system*)))

This function provides the service of prompting for one or more existing pathnames.

If multiple-p is nil (the default), returns the pathname of the selected file, or nil if none was chosen. If multiple-p is true, returns a list of selected files (even if only one is selected) or nil if none is selected. prompt should be a string explaining what is to be done with the selected file (e.g. "Choose file to open").

The arguments are:

This function uses the standard Common Dialog supplied by the platform's underlying windowing system for file selection. Internal Allegro CL file selection dialogs use this function.

GTK notes

  1. The arguments change-current-directory-p and share-aware-p have no effect on GTK because the underlying native GTK file selection dialog does not support such options.
  2. The file ~/.config/gtk-2.0/gtkfilechooser.ini contains some options for how the GTK file selection dialog behaves. In particular, if the end user specifies ShowHidden=true, then dot files and other hidden files and directories will be included in the dialog's list. This option does not appear to be specifiable programmatically. Alternately, the user can type the name of a hidden file even if it's not shown in the list.

See also ask-user-for-new-pathname and ask-user-for-directory. And see file-selection-buffer-size.


Copyright (c) 1998-2016, Franz Inc. Oakland, CA., USA. All rights reserved.
The object described on this page has been modified in the 8.2 release; see the Release Notes.
Created 2016.6.21.

ToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 8.2
Object described on page has changed in 8.2.
8.1 version