From f1bf713d0fcd86d38b119d95b276f67245123810 Mon Sep 17 00:00:00 2001 From: Yasumichi Akahoshi Date: Sat, 19 Nov 2011 02:55:00 +0900 Subject: Add mallard pages and update screenshots. Signed-off-by: Yasumichi Akahoshi --- help/C/forms.page | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 help/C/forms.page (limited to 'help/C/forms.page') diff --git a/help/C/forms.page b/help/C/forms.page new file mode 100644 index 00000000..fcf6c657 --- /dev/null +++ b/help/C/forms.page @@ -0,0 +1,83 @@ + + + + Use the --forms option. + + Forms Dialog +

+ Use the --forms option to create a forms dialog. +

+ +

+ The forms dialog supports the following options: +

+ + + + + <cmd>--add-entry</cmd>=<var>FieldName</var> +

Add a new Entry in forms dialog.

+
+ + + --add-password<cmd></cmd>=<var>FieldName</var> +

Add a new Password Entry in forms dialog. (Hide text)

+
+ + + <cmd>--add-calendar</cmd>=<var>FieldName</var> +

Add a new Calendar in forms dialog.

+
+ + + <cmd>--text</cmd>=<var>TEXT</var> +

Set the dialog text.

+
+ + + <cmd>--separator</cmd>=<var>SEPARATOR</var> +

Set output separator character. (Default: | )

+
+ + + <cmd>--forms-date-format</cmd>=<var>PATTERN</var> +

Set the format for the returned date. The default format depends on your locale. format must be a Format that is acceptable to the strftime function, for example %A %d/%m/%y.

+
+ +
+ +

+ The following example script shows how to create a forms dialog: +

+ + +#!/bin/sh + +zenity --forms --title="Add Friend" \ + --text="Enter information about your friend." \ + --separator="," \ + --add-entry="First Name" \ + --add-entry="Family Name" \ + --add-entry="Email" \ + --add-calendar="Birthday" >> addr.csv + +case $? in + 0) + echo "Friend added.";; + 1) + echo "No friend added." + ;; + -1) + echo "An unexpected error has occurred." + ;; +esac + + +
+ Forms Dialog Example + Zenity forms dialog example + +
+
-- cgit From d0da299f5145e9a31824f834fd9147d5dda5c0f5 Mon Sep 17 00:00:00 2001 From: Andre Klapper Date: Sat, 23 Sep 2017 22:48:48 +0200 Subject: help: Remove id parameter from figure element, to pass 'yelp-check validate' --- help/C/forms.page | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'help/C/forms.page') diff --git a/help/C/forms.page b/help/C/forms.page index fcf6c657..a3d529c1 100644 --- a/help/C/forms.page +++ b/help/C/forms.page @@ -75,7 +75,7 @@ case $? in esac -
+
Forms Dialog Example Zenity forms dialog example -- cgit