Reference Codebot.Render.Widgets.Dialogs.pas
Part of the Codebot Render package
The Codebot.Render.Widgets.Dialogs unit gives you file and picture dialogs made from widgets. They implement IFileDialog and IPictureDialog of Codebot.Platform without the LCL, SDL, or any other backend, so they work anywhere a widget scene does. The SDL host uses them, since SDL has no file dialogs of its own.
Each dialog is a modal window with an edit showing the folder, buttons for the folder above it and the home folder, a list of folders and files, an edit for the file name, a list of filters, and buttons to accept or cancel. A picture dialog also shows the selected image beside the list. The list has name, size, type, and date columns, which the user can sort by clicking and resize by dragging, with folders always above files.
The user can double click a folder or press Enter to open it, press Backspace to go up, or type a folder or a mask such as *.txt into the name. When MultiSelect is True, Control and Shift select more than one file, and a save dialog asks before replacing a file. Your scene keeps running while a dialog is open.
Items 7 items
| Name | Kind | Line |
|---|---|---|
| NewWidgetFileDialog | function | 78 |
| NewWidgetPictureDialog | function | 80 |
| TWidgetFileDialog | class | 53 |
| Show | procedure | 57 |
| TWidgetPictureDialog | class | 63 |
| Show | procedure | 67 |
| WidgetDialogHost | variable | 75 |