From fd4a82093bb7c0ef27aac5780d7d049bd93ff3d9 Mon Sep 17 00:00:00 2001 From: vCaesar Date: Mon, 7 Nov 2016 16:46:22 +0800 Subject: [PATCH] Update doc --- doc.md | 23 +++++++++++++++++++++++ zh_doc.md | 25 ++++++++++++++++++++++++- 2 files changed, 47 insertions(+), 1 deletion(-) diff --git a/doc.md b/doc.md index 44b4db5..b253298 100644 --- a/doc.md +++ b/doc.md @@ -42,6 +42,11 @@ #####[LEvent](#LEvent) +##[Window](#Window) + This is a work in progress. + +#####[ShowAlert(support linux as soon as possible)](#ShowAlert) + ##

Keyboard

@@ -366,3 +371,21 @@ func main() { } } ``` + +##

Window

+ +###

.ShowAlert(title, msg,defaultButton,cancelButton string)

+ + Displays alert with the given attributes. If cancelButton is not given, only the defaultButton is displayed + +####Arguments: + + title(string), + msg(string), + defaultButton(optional string), + cancelButton(optional string) + + +####Return: + + Returns True if the default button was pressed, or False if cancelled. diff --git a/zh_doc.md b/zh_doc.md index 0894d04..a2b3fd7 100644 --- a/zh_doc.md +++ b/zh_doc.md @@ -42,6 +42,11 @@ #####[LEvent](#LEvent) +##[Window](#Window) + This is a work in progress. + +#####[ShowAlert(support linux as soon as possible)](#ShowAlert) + ##

键盘

###

.SetKeyboardDelay(ms)

@@ -379,4 +384,22 @@ func main() { Println("you press...", "mouse left button") } } -``` \ No newline at end of file +``` + +##

Window

+ +###

.ShowAlert(title, msg,defaultButton,cancelButton string)

+ + Displays alert with the given attributes. If cancelButton is not given, only the defaultButton is displayed + +####Arguments: + + title(string), + msg(string), + defaultButton(optional string), + cancelButton(optional string) + + +####Return: + + Returns True if the default button was pressed, or False if cancelled. \ No newline at end of file