summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2013-08-24 10:44:23 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2013-08-24 10:44:23 +0900
commit36ceaf6e1c19aafd96cc8e57e4bf95131bc0468d (patch)
treede1be760d2f82b6ff74af63474d084b473153200 /src/bin
parentbe9cd66f4534e8a5be78068e84181b440f05f800 (diff)
test_spinner.c: added a better example for base/round set.
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/test_spinner.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/bin/test_spinner.c b/src/bin/test_spinner.c
index b69915395..6d0218398 100644
--- a/src/bin/test_spinner.c
+++ b/src/bin/test_spinner.c
@@ -28,6 +28,17 @@ test_spinner(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_inf
28 evas_object_show(sp); 28 evas_object_show(sp);
29 29
30 sp = elm_spinner_add(win); 30 sp = elm_spinner_add(win);
31 elm_spinner_label_format_set(sp, "Base 5.5, Round 2 : %1.1f");
32 elm_spinner_min_max_set(sp, -100.0, 100.0);
33 elm_spinner_round_set(sp, 2);
34 elm_spinner_base_set(sp, 5.5);
35 elm_spinner_value_set(sp, 5.5);
36 evas_object_size_hint_align_set(sp, EVAS_HINT_FILL, 0.5);
37 evas_object_size_hint_weight_set(sp, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
38 elm_box_pack_end(bx, sp);
39 evas_object_show(sp);
40
41 sp = elm_spinner_add(win);
31 elm_spinner_label_format_set(sp, "Percentage %%%1.2f something"); 42 elm_spinner_label_format_set(sp, "Percentage %%%1.2f something");
32 elm_spinner_step_set(sp, 5.0); 43 elm_spinner_step_set(sp, 5.0);
33 elm_spinner_min_max_set(sp, 0.0, 100.0); 44 elm_spinner_min_max_set(sp, 0.0, 100.0);
@@ -60,9 +71,6 @@ test_spinner(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_inf
60 elm_spinner_wrap_set(sp, EINA_TRUE); 71 elm_spinner_wrap_set(sp, EINA_TRUE);
61 elm_spinner_min_max_set(sp, 1, 12); 72 elm_spinner_min_max_set(sp, 1, 12);
62 elm_spinner_value_set(sp, 1); 73 elm_spinner_value_set(sp, 1);
63 elm_spinner_step_set(sp, 0.05);
64 elm_spinner_base_set(sp, 1);
65 elm_spinner_round_set(sp, 1);
66 elm_spinner_label_format_set(sp, "%.0f"); 74 elm_spinner_label_format_set(sp, "%.0f");
67 elm_spinner_editable_set(sp, EINA_FALSE); 75 elm_spinner_editable_set(sp, EINA_FALSE);
68 elm_spinner_special_value_add(sp, 1, "January"); 76 elm_spinner_special_value_add(sp, 1, "January");