dialog

Creates a dialog based on a data structure.

dialog((YourStructure value) {
	// the user filled in the struct and clicked OK,
	// you can check the members now
});
  1. void dialog(void delegate(T) onOK, void delegate() onCancel, string title)
    void
    dialog
    (
    T
    )
    (
    void delegate
    (
    T
    )
    onOK
    ,
    void delegate
    ()
    onCancel = null
    ,
    string title = T.stringof
    )
  2. void dialog(T initialData, void delegate(T) onOK, void delegate() onCancel, string title)

See Also

Meta

History

The overload that lets you specify initialData was added on December 30, 2021 (dub v10.5)