Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Support question dialog type #6

@charlielee

Description

@charlielee

This would allow users to respond "yes" or "no" to a dialog with a new method dialog.confirm. My initial thoughts on implementing this in a cross platform manner are:

  • Use MsgBox style 4 and WScript.Quit response to return an exit code indicating the button pressed on Windows
  • Use Zenity's --question option for Linux
  • Use the buttons parameter of display dialog on Mac and extract which button was clicked from the Result record.

https://msdn.microsoft.com/en-us/library/139z2azd(v=vs.90).aspx
https://help.gnome.org/users/zenity/stable/question.html.en
https://developer.apple.com/library/content/documentation/AppleScript/Conceptual/AppleScriptLangGuide/reference/ASLR_cmds.html#//apple_ref/doc/uid/TP40000983-CH216-SW12

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions