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

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

+

+ The scale dialog supports the following options: +

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

Set the dialog text. (Default: Adjust the scale value)

+
+ + + <cmd>--value</cmd>=<var>VALUE</var> +

Set initial value. (Default: 0) You must specify value between minimum value to maximum value.

+
+ + + <cmd>--min-value</cmd>=<var>VALUE</var> +

Set minimum value. (Default: 0)

+
+ + + <cmd>--max-value</cmd>=<var>VALUE</var> +

Set maximum value. (Default: 100)

+
+ + + <cmd>--step</cmd>=<var>VALUE</var> +

Set step size. (Default: 1)

+
+ + + <cmd>--print-partial</cmd> +

Print value to standard output, whenever a value is changed.

+
+ + + <cmd>--hide-value</cmd> +

Hide value on dialog.

+
+ +
+ +

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

+ + +#!/bin/sh + +VALUE=`zenity --scale --text="Select window transparency." --value=50` + +case $? in + 0) + echo "You selected $VALUE%.";; + 1) + echo "No value selected.";; + -1) + echo "An unexpected error has occurred.";; +esac + + +
+ Password Entry Dialog Example + Zenity password entry dialog example + +
+ +
-- cgit From 4897a8fa29d23249d7bc8acd9cfda4b8b12b3f4d Mon Sep 17 00:00:00 2001 From: Yasumichi Akahoshi Date: Fri, 23 Dec 2011 09:46:46 +0900 Subject: fixed figure title and desc of scale dialog. Signed-off-by: Yasumichi Akahoshi --- help/C/scale.page | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'help/C/scale.page') diff --git a/help/C/scale.page b/help/C/scale.page index 7d35b533..29b20800 100644 --- a/help/C/scale.page +++ b/help/C/scale.page @@ -72,8 +72,8 @@ esac
- Password Entry Dialog Example - Zenity password entry dialog example + Scale Dialog Example + Zenity scale 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/scale.page | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'help/C/scale.page') diff --git a/help/C/scale.page b/help/C/scale.page index 29b20800..78c2ac50 100644 --- a/help/C/scale.page +++ b/help/C/scale.page @@ -71,7 +71,7 @@ case $? in esac -
+
Scale Dialog Example Zenity scale dialog example -- cgit