more comprehensive test for entry - there are bugs, this will let me test and
authorCarsten Haitzler <raster@rasterman.com>
Wed, 10 Mar 2010 07:58:29 +0000 (07:58 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Wed, 10 Mar 2010 07:58:29 +0000 (07:58 +0000)
fix.

SVN revision: 47101

src/bin/test.c
src/bin/test_entry.c

index 549dce1e9ecbc22d6d9179e6c4653341b249ed33..54a0795390076f56dd545070ea969c439e66cd8b 100644 (file)
@@ -18,6 +18,7 @@ void test_hover(void *data, Evas_Object *obj, void *event_info);
 void test_hover2(void *data, Evas_Object *obj, void *event_info);
 void test_entry(void *data, Evas_Object *obj, void *event_info);
 void test_entry_scrolled(void *data, Evas_Object *obj, void *event_info);
+void test_entry3(void *data, Evas_Object *obj, void *event_info);
 void test_notepad(void *data, Evas_Object *obj, void *event_info);
 void test_anchorview(void *data, Evas_Object *obj, void *event_info);
 void test_anchorblock(void *data, Evas_Object *obj, void *event_info);
@@ -163,6 +164,7 @@ my_win_main(void)
    elm_list_item_append(li, "Hover 2", NULL, NULL, test_hover2, NULL);
    elm_list_item_append(li, "Entry", NULL, NULL, test_entry, NULL);
    elm_list_item_append(li, "Entry Scrolled", NULL, NULL, test_entry_scrolled, NULL);
+   elm_list_item_append(li, "Entry 3", NULL, NULL, test_entry3, NULL);
    elm_list_item_append(li, "Notepad", NULL, NULL, test_notepad, NULL);
    elm_list_item_append(li, "Anchorview", NULL, NULL, test_anchorview, NULL);
    elm_list_item_append(li, "Anchorblock", NULL, NULL, test_anchorblock, NULL);
index 03f1325c5d4bae42a62025d48f185a28a03569ca..088724f14e17e3ec27e49fb8d04433b86bd2e62c 100644 (file)
@@ -321,4 +321,636 @@ test_entry_scrolled(void *data, Evas_Object *obj, void *event_info)
    elm_object_focus(win);
    evas_object_show(win);
 }
+
+static void
+my_ent_bt_clr(void *data, Evas_Object *obj, void *event_info)
+{
+   Evas_Object *en = data;
+   elm_entry_entry_set(en, "");
+}
+
+static void
+my_ent_bt_pri(void *data, Evas_Object *obj, void *event_info)
+{
+   Evas_Object *en = data;
+   const char *s = elm_scrolled_entry_entry_get(en);
+   printf("ENTRY:\n");
+   if (s) printf("%s\n", s);
+}
+
+static void
+my_ent_bt_sel(void *data, Evas_Object *obj, void *event_info)
+{
+   Evas_Object *en = data;
+   const char *s = elm_entry_selection_get(en);
+   printf("SELECTION:\n");
+   if (s) printf("%s\n", s);
+}
+
+static void
+my_ent_bt_all(void *data, Evas_Object *obj, void *event_info)
+{
+   Evas_Object *en = data;
+   elm_scrolled_entry_select_all(en);
+}
+
+static void
+my_ent_bt_non(void *data, Evas_Object *obj, void *event_info)
+{
+   Evas_Object *en = data;
+   elm_scrolled_entry_select_none(en);
+}
+
+static void
+my_ent_bt_ins(void *data, Evas_Object *obj, void *event_info)
+{
+   Evas_Object *en = data;
+   elm_scrolled_entry_entry_insert(en, "Insert text");
+}
+
+static void
+my_ent_bt_lef(void *data, Evas_Object *obj, void *event_info)
+{
+   Evas_Object *en = data;
+   elm_scrolled_entry_cursor_prev(en);
+}
+
+static void
+my_ent_bt_rig(void *data, Evas_Object *obj, void *event_info)
+{
+   Evas_Object *en = data;
+   elm_scrolled_entry_cursor_next(en);
+}
+
+static void
+my_ent_bt_up_(void *data, Evas_Object *obj, void *event_info)
+{
+   Evas_Object *en = data;
+   elm_scrolled_entry_cursor_up(en);
+}
+
+static void
+my_ent_bt_dow(void *data, Evas_Object *obj, void *event_info)
+{
+   Evas_Object *en = data;
+   elm_scrolled_entry_cursor_down(en);
+}
+
+static void
+my_ent_bt_beg(void *data, Evas_Object *obj, void *event_info)
+{
+   Evas_Object *en = data;
+   elm_scrolled_entry_cursor_begin_set(en);
+}
+
+static void
+my_ent_bt_end(void *data, Evas_Object *obj, void *event_info)
+{
+   Evas_Object *en = data;
+   elm_scrolled_entry_cursor_end_set(en);
+}
+
+static void
+my_ent_bt_lbe(void *data, Evas_Object *obj, void *event_info)
+{
+   Evas_Object *en = data;
+   elm_scrolled_entry_cursor_line_begin_set(en);
+}
+
+static void
+my_ent_bt_len(void *data, Evas_Object *obj, void *event_info)
+{
+   Evas_Object *en = data;
+   elm_scrolled_entry_cursor_line_end_set(en);
+}
+
+static void
+my_ent_bt_sbe(void *data, Evas_Object *obj, void *event_info)
+{
+   Evas_Object *en = data;
+   elm_scrolled_entry_cursor_selection_begin(en);
+}
+
+static void
+my_ent_bt_sen(void *data, Evas_Object *obj, void *event_info)
+{
+   Evas_Object *en = data;
+   elm_scrolled_entry_cursor_selection_end(en);
+}
+
+static void
+my_ent_bt_fmt(void *data, Evas_Object *obj, void *event_info)
+{
+   Evas_Object *en = data;
+   printf("IS FORMAT: %i\n", 
+          (int)elm_scrolled_entry_cursor_is_format_get(en));
+}
+
+static void
+my_ent_bt_vfm(void *data, Evas_Object *obj, void *event_info)
+{
+   Evas_Object *en = data;
+   printf("IS VISIBLE FORMAT %i\n",
+          (int)elm_scrolled_entry_cursor_is_visible_format_get(en));
+}
+
+static void
+my_ent_bt_chr(void *data, Evas_Object *obj, void *event_info)
+{
+   Evas_Object *en = data;
+   printf("CHAR '%s'\n", elm_scrolled_entry_cursor_content_get(en));
+}
+
+static void
+my_ent_bt_cut(void *data, Evas_Object *obj, void *event_info)
+{
+   Evas_Object *en = data;
+   elm_scrolled_entry_selection_cut(en);
+}
+
+static void
+my_ent_bt_cop(void *data, Evas_Object *obj, void *event_info)
+{
+   Evas_Object *en = data;
+   elm_scrolled_entry_selection_copy(en);
+}
+
+static void
+my_ent_bt_pas(void *data, Evas_Object *obj, void *event_info)
+{
+   Evas_Object *en = data;
+   elm_scrolled_entry_selection_paste(en);
+}
+
+void
+test_entry3(void *data, Evas_Object *obj, void *event_info)
+{
+   Evas_Object *win, *bg, *bx, *bx2, *bt, *en, *en_p, *sp;
+
+   win = elm_win_add(NULL, "entry3", ELM_WIN_BASIC);
+   elm_win_title_set(win, "Entry 3");
+   elm_win_autodel_set(win, 1);
+
+   bg = elm_bg_add(win);
+   elm_win_resize_object_add(win, bg);
+   evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+   evas_object_show(bg);
+
+   bx = elm_box_add(win);
+   evas_object_size_hint_weight_set(bx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+   elm_win_resize_object_add(win, bx);
+   evas_object_show(bx);
+
+   /* Single line selected entry */
+   en = elm_scrolled_entry_add(win);
+   evas_object_size_hint_weight_set(en, EVAS_HINT_EXPAND, 0.0);
+   evas_object_size_hint_align_set(en, EVAS_HINT_FILL, 0.5);
+   elm_scrolled_entry_scrollbar_policy_set(en, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF);
+   elm_scrolled_entry_entry_set(en, "This is a single line");
+   elm_scrolled_entry_single_line_set(en, 1);
+   evas_object_show(en);
+   elm_box_pack_end(bx, en);
+
+   bx2 = elm_box_add(win);
+   elm_box_horizontal_set(bx2, 1);
+   evas_object_size_hint_weight_set(bx2, EVAS_HINT_EXPAND, 0.0);
+   evas_object_size_hint_align_set(bx2, EVAS_HINT_FILL, EVAS_HINT_FILL);
+
+   bt = elm_button_add(win);
+   elm_button_label_set(bt, "Clr");
+   evas_object_smart_callback_add(bt, "clicked", my_ent_bt_clr, en);
+   evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
+   elm_box_pack_end(bx2, bt);
+   evas_object_show(bt);
+
+   bt = elm_button_add(win);
+   elm_button_label_set(bt, "Pri");
+   evas_object_smart_callback_add(bt, "clicked", my_ent_bt_pri, en);
+   evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
+   elm_box_pack_end(bx2, bt);
+   evas_object_show(bt);
+
+   bt = elm_button_add(win);
+   elm_button_label_set(bt, "Sel");
+   evas_object_smart_callback_add(bt, "clicked", my_ent_bt_sel, en);
+   evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
+   elm_box_pack_end(bx2, bt);
+   evas_object_show(bt);
+
+   bt = elm_button_add(win);
+   elm_button_label_set(bt, "All");
+   evas_object_smart_callback_add(bt, "clicked", my_ent_bt_all, en);
+   evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
+   elm_box_pack_end(bx2, bt);
+   evas_object_show(bt);
+
+   bt = elm_button_add(win);
+   elm_button_label_set(bt, "Non");
+   evas_object_smart_callback_add(bt, "clicked", my_ent_bt_non, en);
+   evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
+   elm_box_pack_end(bx2, bt);
+   evas_object_show(bt);
+
+   bt = elm_button_add(win);
+   elm_button_label_set(bt, "Ins");
+   evas_object_smart_callback_add(bt, "clicked", my_ent_bt_ins, en);
+   evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
+   elm_box_pack_end(bx2, bt);
+   evas_object_show(bt);
+
+   elm_box_pack_end(bx, bx2);
+   evas_object_show(bx2);
+
+   bx2 = elm_box_add(win);
+   elm_box_horizontal_set(bx2, 1);
+   evas_object_size_hint_weight_set(bx2, EVAS_HINT_EXPAND, 0.0);
+   evas_object_size_hint_align_set(bx2, EVAS_HINT_FILL, EVAS_HINT_FILL);
+
+   bt = elm_button_add(win);
+   elm_button_label_set(bt, "Lef");
+   evas_object_smart_callback_add(bt, "clicked", my_ent_bt_lef, en);
+   evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
+   elm_box_pack_end(bx2, bt);
+   evas_object_show(bt);
+
+   bt = elm_button_add(win);
+   elm_button_label_set(bt, "Rig");
+   evas_object_smart_callback_add(bt, "clicked", my_ent_bt_rig, en);
+   evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
+   elm_box_pack_end(bx2, bt);
+   evas_object_show(bt);
+
+   bt = elm_button_add(win);
+   elm_button_label_set(bt, "Up ");
+   evas_object_smart_callback_add(bt, "clicked", my_ent_bt_up_, en);
+   evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
+   elm_box_pack_end(bx2, bt);
+   evas_object_show(bt);
+
+   bt = elm_button_add(win);
+   elm_button_label_set(bt, "Dow");
+   evas_object_smart_callback_add(bt, "clicked", my_ent_bt_dow, en);
+   evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
+   elm_box_pack_end(bx2, bt);
+   evas_object_show(bt);
+
+   bt = elm_button_add(win);
+   elm_button_label_set(bt, "Beg");
+   evas_object_smart_callback_add(bt, "clicked", my_ent_bt_beg, en);
+   evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
+   elm_box_pack_end(bx2, bt);
+   evas_object_show(bt);
+
+   bt = elm_button_add(win);
+   elm_button_label_set(bt, "End");
+   evas_object_smart_callback_add(bt, "clicked", my_ent_bt_end, en);
+   evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
+   elm_box_pack_end(bx2, bt);
+   evas_object_show(bt);
+
+   elm_box_pack_end(bx, bx2);
+   evas_object_show(bx2);
+
+   bx2 = elm_box_add(win);
+   elm_box_horizontal_set(bx2, 1);
+   evas_object_size_hint_weight_set(bx2, EVAS_HINT_EXPAND, 0.0);
+   evas_object_size_hint_align_set(bx2, EVAS_HINT_FILL, EVAS_HINT_FILL);
+
+   bt = elm_button_add(win);
+   elm_button_label_set(bt, "LBe");
+   evas_object_smart_callback_add(bt, "clicked", my_ent_bt_lbe, en);
+   evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
+   elm_box_pack_end(bx2, bt);
+   evas_object_show(bt);
+
+   bt = elm_button_add(win);
+   elm_button_label_set(bt, "LEn");
+   evas_object_smart_callback_add(bt, "clicked", my_ent_bt_len, en);
+   evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
+   elm_box_pack_end(bx2, bt);
+   evas_object_show(bt);
+
+   bt = elm_button_add(win);
+   elm_button_label_set(bt, "SBe");
+   evas_object_smart_callback_add(bt, "clicked", my_ent_bt_sbe, en);
+   evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
+   elm_box_pack_end(bx2, bt);
+   evas_object_show(bt);
+
+   bt = elm_button_add(win);
+   elm_button_label_set(bt, "SEn");
+   evas_object_smart_callback_add(bt, "clicked", my_ent_bt_sen, en);
+   evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
+   elm_box_pack_end(bx2, bt);
+   evas_object_show(bt);
+
+   bt = elm_button_add(win);
+   elm_button_label_set(bt, "Fmt");
+   evas_object_smart_callback_add(bt, "clicked", my_ent_bt_fmt, en);
+   evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
+   elm_box_pack_end(bx2, bt);
+   evas_object_show(bt);
+
+   bt = elm_button_add(win);
+   elm_button_label_set(bt, "VFm");
+   evas_object_smart_callback_add(bt, "clicked", my_ent_bt_vfm, en);
+   evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
+   elm_box_pack_end(bx2, bt);
+   evas_object_show(bt);
+
+   elm_box_pack_end(bx, bx2);
+   evas_object_show(bx2);
+
+   bx2 = elm_box_add(win);
+   elm_box_horizontal_set(bx2, 1);
+   evas_object_size_hint_weight_set(bx2, EVAS_HINT_EXPAND, 0.0);
+   evas_object_size_hint_align_set(bx2, EVAS_HINT_FILL, EVAS_HINT_FILL);
+
+   bt = elm_button_add(win);
+   elm_button_label_set(bt, "Chr");
+   evas_object_smart_callback_add(bt, "clicked", my_ent_bt_chr, en);
+   evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
+   elm_box_pack_end(bx2, bt);
+   evas_object_show(bt);
+
+   bt = elm_button_add(win);
+   elm_button_label_set(bt, "Cut");
+   evas_object_smart_callback_add(bt, "clicked", my_ent_bt_cut, en);
+   evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
+   elm_box_pack_end(bx2, bt);
+   evas_object_show(bt);
+
+   bt = elm_button_add(win);
+   elm_button_label_set(bt, "Cop");
+   evas_object_smart_callback_add(bt, "clicked", my_ent_bt_cop, en);
+   evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
+   elm_box_pack_end(bx2, bt);
+   evas_object_show(bt);
+
+   bt = elm_button_add(win);
+   elm_button_label_set(bt, "Pas");
+   evas_object_smart_callback_add(bt, "clicked", my_ent_bt_pas, en);
+   evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
+   elm_box_pack_end(bx2, bt);
+   evas_object_show(bt);
+
+   elm_box_pack_end(bx, bx2);
+   evas_object_show(bx2);
+
+   /* markup scrolled entry */
+   en = elm_scrolled_entry_add(win);
+   evas_object_size_hint_weight_set(en, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+   evas_object_size_hint_align_set(en, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   elm_scrolled_entry_scrollbar_policy_set(en, ELM_SCROLLER_POLICY_ON, ELM_SCROLLER_POLICY_ON);
+   elm_scrolled_entry_entry_set(en,
+                               "This is an entry widget in this window that<br>"
+                               "uses markup <b>like this</> for styling and<br>"
+                               "formatting <em>like this</>, as well as<br>"
+                               "<a href=X><link>links in the text</></a>, so enter text<br>"
+                               "in here to edit it. By them way, links are<br>"
+                               "called <a href=anc-02>Anchors</a> so you will need<br>"
+                               "to refer to them this way. At the end here is a really long "
+                               "line to test line wrapping to see if it works. But just in "
+                               "case this line is not long enough I will add more here to "
+                               "really test it out, as Elementary really needs some "
+                               "good testing to see if entry widgets work as advertised.");
+   evas_object_smart_callback_add(en, "anchor,clicked", scrolled_anchor_test, en);
+   evas_object_show(en);
+   elm_box_pack_end(bx, en);
+
+   bx2 = elm_box_add(win);
+   elm_box_horizontal_set(bx2, 1);
+   evas_object_size_hint_weight_set(bx2, EVAS_HINT_EXPAND, 0.0);
+   evas_object_size_hint_align_set(bx2, EVAS_HINT_FILL, EVAS_HINT_FILL);
+
+   bt = elm_button_add(win);
+   elm_button_label_set(bt, "Clr");
+   evas_object_smart_callback_add(bt, "clicked", my_ent_bt_clr, en);
+   evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
+   elm_box_pack_end(bx2, bt);
+   evas_object_show(bt);
+
+   bt = elm_button_add(win);
+   elm_button_label_set(bt, "Pri");
+   evas_object_smart_callback_add(bt, "clicked", my_ent_bt_pri, en);
+   evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
+   elm_box_pack_end(bx2, bt);
+   evas_object_show(bt);
+
+   bt = elm_button_add(win);
+   elm_button_label_set(bt, "Sel");
+   evas_object_smart_callback_add(bt, "clicked", my_ent_bt_sel, en);
+   evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
+   elm_box_pack_end(bx2, bt);
+   evas_object_show(bt);
+
+   bt = elm_button_add(win);
+   elm_button_label_set(bt, "All");
+   evas_object_smart_callback_add(bt, "clicked", my_ent_bt_all, en);
+   evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
+   elm_box_pack_end(bx2, bt);
+   evas_object_show(bt);
+
+   bt = elm_button_add(win);
+   elm_button_label_set(bt, "Non");
+   evas_object_smart_callback_add(bt, "clicked", my_ent_bt_non, en);
+   evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
+   elm_box_pack_end(bx2, bt);
+   evas_object_show(bt);
+
+   bt = elm_button_add(win);
+   elm_button_label_set(bt, "Ins");
+   evas_object_smart_callback_add(bt, "clicked", my_ent_bt_ins, en);
+   evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
+   elm_box_pack_end(bx2, bt);
+   evas_object_show(bt);
+
+   elm_box_pack_end(bx, bx2);
+   evas_object_show(bx2);
+
+   bx2 = elm_box_add(win);
+   elm_box_horizontal_set(bx2, 1);
+   evas_object_size_hint_weight_set(bx2, EVAS_HINT_EXPAND, 0.0);
+   evas_object_size_hint_align_set(bx2, EVAS_HINT_FILL, EVAS_HINT_FILL);
+
+   bt = elm_button_add(win);
+   elm_button_label_set(bt, "Lef");
+   evas_object_smart_callback_add(bt, "clicked", my_ent_bt_lef, en);
+   evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
+   elm_box_pack_end(bx2, bt);
+   evas_object_show(bt);
+
+   bt = elm_button_add(win);
+   elm_button_label_set(bt, "Rig");
+   evas_object_smart_callback_add(bt, "clicked", my_ent_bt_rig, en);
+   evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
+   elm_box_pack_end(bx2, bt);
+   evas_object_show(bt);
+
+   bt = elm_button_add(win);
+   elm_button_label_set(bt, "Up ");
+   evas_object_smart_callback_add(bt, "clicked", my_ent_bt_up_, en);
+   evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
+   elm_box_pack_end(bx2, bt);
+   evas_object_show(bt);
+
+   bt = elm_button_add(win);
+   elm_button_label_set(bt, "Dow");
+   evas_object_smart_callback_add(bt, "clicked", my_ent_bt_dow, en);
+   evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
+   elm_box_pack_end(bx2, bt);
+   evas_object_show(bt);
+
+   bt = elm_button_add(win);
+   elm_button_label_set(bt, "Beg");
+   evas_object_smart_callback_add(bt, "clicked", my_ent_bt_beg, en);
+   evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
+   elm_box_pack_end(bx2, bt);
+   evas_object_show(bt);
+
+   bt = elm_button_add(win);
+   elm_button_label_set(bt, "End");
+   evas_object_smart_callback_add(bt, "clicked", my_ent_bt_end, en);
+   evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
+   elm_box_pack_end(bx2, bt);
+   evas_object_show(bt);
+
+   elm_box_pack_end(bx, bx2);
+   evas_object_show(bx2);
+
+   bx2 = elm_box_add(win);
+   elm_box_horizontal_set(bx2, 1);
+   evas_object_size_hint_weight_set(bx2, EVAS_HINT_EXPAND, 0.0);
+   evas_object_size_hint_align_set(bx2, EVAS_HINT_FILL, EVAS_HINT_FILL);
+
+   bt = elm_button_add(win);
+   elm_button_label_set(bt, "LBe");
+   evas_object_smart_callback_add(bt, "clicked", my_ent_bt_lbe, en);
+   evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
+   elm_box_pack_end(bx2, bt);
+   evas_object_show(bt);
+
+   bt = elm_button_add(win);
+   elm_button_label_set(bt, "LEn");
+   evas_object_smart_callback_add(bt, "clicked", my_ent_bt_len, en);
+   evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
+   elm_box_pack_end(bx2, bt);
+   evas_object_show(bt);
+
+   bt = elm_button_add(win);
+   elm_button_label_set(bt, "SBe");
+   evas_object_smart_callback_add(bt, "clicked", my_ent_bt_sbe, en);
+   evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
+   elm_box_pack_end(bx2, bt);
+   evas_object_show(bt);
+
+   bt = elm_button_add(win);
+   elm_button_label_set(bt, "SEn");
+   evas_object_smart_callback_add(bt, "clicked", my_ent_bt_sen, en);
+   evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
+   elm_box_pack_end(bx2, bt);
+   evas_object_show(bt);
+
+   bt = elm_button_add(win);
+   elm_button_label_set(bt, "Fmt");
+   evas_object_smart_callback_add(bt, "clicked", my_ent_bt_fmt, en);
+   evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
+   elm_box_pack_end(bx2, bt);
+   evas_object_show(bt);
+
+   bt = elm_button_add(win);
+   elm_button_label_set(bt, "VFm");
+   evas_object_smart_callback_add(bt, "clicked", my_ent_bt_vfm, en);
+   evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
+   elm_box_pack_end(bx2, bt);
+   evas_object_show(bt);
+
+   elm_box_pack_end(bx, bx2);
+   evas_object_show(bx2);
+
+   bx2 = elm_box_add(win);
+   elm_box_horizontal_set(bx2, 1);
+   evas_object_size_hint_weight_set(bx2, EVAS_HINT_EXPAND, 0.0);
+   evas_object_size_hint_align_set(bx2, EVAS_HINT_FILL, EVAS_HINT_FILL);
+
+   bt = elm_button_add(win);
+   elm_button_label_set(bt, "Chr");
+   evas_object_smart_callback_add(bt, "clicked", my_ent_bt_chr, en);
+   evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
+   elm_box_pack_end(bx2, bt);
+   evas_object_show(bt);
+
+   bt = elm_button_add(win);
+   elm_button_label_set(bt, "Cut");
+   evas_object_smart_callback_add(bt, "clicked", my_ent_bt_cut, en);
+   evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
+   elm_box_pack_end(bx2, bt);
+   evas_object_show(bt);
+
+   bt = elm_button_add(win);
+   elm_button_label_set(bt, "Cop");
+   evas_object_smart_callback_add(bt, "clicked", my_ent_bt_cop, en);
+   evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
+   elm_box_pack_end(bx2, bt);
+   evas_object_show(bt);
+
+   bt = elm_button_add(win);
+   elm_button_label_set(bt, "Pas");
+   evas_object_smart_callback_add(bt, "clicked", my_ent_bt_pas, en);
+   evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
+   elm_box_pack_end(bx2, bt);
+   evas_object_show(bt);
+
+   elm_box_pack_end(bx, bx2);
+   evas_object_show(bx2);
+
+   evas_object_resize(win, 320, 480);
+
+   elm_object_focus(win);
+   evas_object_show(win);
+}
 #endif