Download Now

    Reference Codebot.Render.Widgets.Dialogs.pas

    Part of the Codebot Render package

    Each version implies all earlier versions

    The Codebot.Render.Widgets.Dialogs unit defines file and picture dialogs that are made from widgets. They implement IFileDialog and IPictureDialog from Codebot.Platform without relying on any backend, so they work anywhere a widget scene does. The SDL backend uses them because SDL has no file dialogs of its own.

    Each dialog is a modal window that shows the current folder, a list of folders and files in columns that can be sorted and resized, the file name, the filters, and buttons to accept or cancel. A picture dialog also shows the selected image beside the list. The scene keeps running while a dialog is open.

    Items 7 items

    NameKindLine
    NewWidgetFileDialogfunction77
    NewWidgetPictureDialogfunction79
    TWidgetFileDialogclass52
    Showprocedure56
    TWidgetPictureDialogclass62
    Showprocedure66
    WidgetDialogHostvariable74