The OpenD Programming Language

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)
  2. void dialog(T initialData, void delegate(T) onOK, void delegate() onCancel, string title)
    void
    dialog
    (
    T
    )
    (,
    void delegate
    (
    T
    )
    onOK
    ,
    void delegate
    ()
    onCancel = null
    ,
    string title = T.stringof
    )

Parameters

initialData T

the initial value to show in the dialog. It will not modify this unless it is a class then it might, no promises.

See Also

Meta

History

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