public abstract class FileDialog extends Dialog:
Shared configuration for file-selection dialogs.
Applications normally instantiate OpenFileDialog or SaveFileDialog. The implementation uses the native operating-system chooser where one is available and falls back to the themed Klyn chooser without changing this public contract. File dialogs inherit their window title from Dialog and are modal by default.
import klyn.gui.windows.dialogs
dialog = OpenFileDialog()
dialog.initialFolder = Path.userHome
dialog.filters = [FileDialogFilter("Klyn sources", "*.kn")]| Modifier and Type | Member | Description |
|---|---|---|
| public property | filterIndexfilterIndex as Int |
Zero-based selected filter index. |
| public property | filtersfilters as IList<FileDialogFilter> |
Available filename filters. |
| public property | initialFolderinitialFolder as FolderPath |
Folder initially displayed by the chooser. |