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/calendar.page | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 help/C/calendar.page (limited to 'help/C/calendar.page') diff --git a/help/C/calendar.page b/help/C/calendar.page new file mode 100644 index 00000000..cd2191c2 --- /dev/null +++ b/help/C/calendar.page @@ -0,0 +1,68 @@ + + + + Use the --calendar option. + + Calendar Dialog +

+ Use the --calendar option to create a calendar dialog. Zenity returns the selected date to standard output. If no date is specified on the command line, the dialog uses the current date. +

+

+ The calendar dialog supports the following options: +

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

Specifies the text that is displayed in the calendar dialog.

+
+ + + <cmd>--day</cmd>=<var>day</var> +

Specifies the day that is selected in the calendar dialog. day must be a number between 1 and 31 inclusive.

+
+ + + <cmd>--month</cmd>=<var>month</var> +

Specifies the month that is selected in the calendar dialog. month must be a number between 1 and 12 inclusive.

+
+ + + <cmd>--year</cmd>=<var>year</var> +

Specifies the year that is selected in the calendar dialog.

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

Specifies the format that is returned from the calendar dialog after date selection. 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 calendar dialog: +

+ + +#!/bin/sh + + +if zenity --calendar \ +--title="Select a Date" \ +--text="Click on a date to select that date." \ +--day=10 --month=8 --year=2004 + then echo $? + else echo "No date selected" +fi + + + +
+ Calendar Dialog Example + Zenity calendar 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/calendar.page | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'help/C/calendar.page') diff --git a/help/C/calendar.page b/help/C/calendar.page index cd2191c2..1c0a8d46 100644 --- a/help/C/calendar.page +++ b/help/C/calendar.page @@ -60,7 +60,7 @@ fi -
+
Calendar Dialog Example Zenity calendar dialog example -- cgit