]> khamidou — GitHub mirrors - electron.git/commitdiff
Update dialog.md
authorEran Tiktin <etiktin@users.noreply.github.com>
Wed, 22 Jul 2015 15:13:50 +0000 (18:13 +0300)
committerEran Tiktin <etiktin@users.noreply.github.com>
Wed, 22 Jul 2015 15:13:50 +0000 (18:13 +0300)
Added a comment about the fact that on Windows, the "question" message box uses the same icon as the "info" message box (Electron uses the task dialog API instead of the message box API). This is because Microsoft's API doesn't supply a default question icon (see `pszIcon` in https://msdn.microsoft.com/en-us/library/windows/desktop/bb760540(v=vs.85).aspx).

docs/api/dialog.md

index 9e123b381c51296d6c76f105aac662c402eef0ed..f6b65a1bb06ce2126fdf8b160b08eae2b6859b58 100644 (file)
@@ -70,7 +70,7 @@ will be passed via `callback(filename)`
 
 * `browserWindow` BrowserWindow
 * `options` Object
-  * `type` String - Can be `"none"`, `"info"`, `"error"`, `"question"` or `"warning"`
+  * `type` String - Can be `"none"`, `"info"`, `"error"`, `"question"` or `"warning"`. On Windows, "question" displays the same icon as "info", unless if you set an icon using the "icon" option
   * `buttons` Array - Array of texts for buttons
   * `title` String - Title of the message box, some platforms will not show it
   * `message` String - Content of the message box