forked from enlightenment/efl
parent
f6c143674f
commit
979b2661da
|
@ -894,18 +894,21 @@ my_bt_15(void *data, Evas_Object *obj, void *event_info)
|
||||||
elm_win_resize_object_add(win, bx);
|
elm_win_resize_object_add(win, bx);
|
||||||
evas_object_show(bx);
|
evas_object_show(bx);
|
||||||
|
|
||||||
|
printf("win = %p, bx = %p\n", win, bx);
|
||||||
np = elm_notepad_add(win);
|
np = elm_notepad_add(win);
|
||||||
elm_notepad_file_set(np, "note.txt", ELM_TEXT_FORMAT_PLAIN_UTF8);
|
elm_notepad_file_set(np, "note.txt", ELM_TEXT_FORMAT_PLAIN_UTF8);
|
||||||
evas_object_size_hint_weight_set(np, 1.0, 1.0);
|
evas_object_size_hint_weight_set(np, 1.0, 1.0);
|
||||||
evas_object_size_hint_align_set(np, -1.0, -1.0);
|
evas_object_size_hint_align_set(np, -1.0, -1.0);
|
||||||
elm_box_pack_end(bx, np);
|
elm_box_pack_end(bx, np);
|
||||||
evas_object_show(np);
|
evas_object_show(np);
|
||||||
|
printf("np = %p\n", np);
|
||||||
|
|
||||||
bx2 = elm_box_add(win);
|
bx2 = elm_box_add(win);
|
||||||
elm_box_horizontal_set(bx2, 1);
|
elm_box_horizontal_set(bx2, 1);
|
||||||
elm_box_homogenous_set(bx2, 1);
|
elm_box_homogenous_set(bx2, 1);
|
||||||
evas_object_size_hint_weight_set(bx2, 1.0, 0.0);
|
evas_object_size_hint_weight_set(bx2, 1.0, 0.0);
|
||||||
evas_object_size_hint_align_set(bx2, -1.0, -1.0);
|
evas_object_size_hint_align_set(bx2, -1.0, -1.0);
|
||||||
|
printf("bx2 = %p\n", bx2);
|
||||||
|
|
||||||
bt = elm_button_add(win);
|
bt = elm_button_add(win);
|
||||||
ic = elm_icon_add(win);
|
ic = elm_icon_add(win);
|
||||||
|
@ -918,6 +921,7 @@ my_bt_15(void *data, Evas_Object *obj, void *event_info)
|
||||||
evas_object_size_hint_weight_set(bt, 1.0, 0.0);
|
evas_object_size_hint_weight_set(bt, 1.0, 0.0);
|
||||||
elm_box_pack_end(bx2, bt);
|
elm_box_pack_end(bx2, bt);
|
||||||
evas_object_show(bt);
|
evas_object_show(bt);
|
||||||
|
printf("bt = %p\n", bt);
|
||||||
|
|
||||||
bt = elm_button_add(win);
|
bt = elm_button_add(win);
|
||||||
ic = elm_icon_add(win);
|
ic = elm_icon_add(win);
|
||||||
|
@ -930,6 +934,7 @@ my_bt_15(void *data, Evas_Object *obj, void *event_info)
|
||||||
evas_object_size_hint_weight_set(bt, 1.0, 0.0);
|
evas_object_size_hint_weight_set(bt, 1.0, 0.0);
|
||||||
elm_box_pack_end(bx2, bt);
|
elm_box_pack_end(bx2, bt);
|
||||||
evas_object_show(bt);
|
evas_object_show(bt);
|
||||||
|
printf("bt = %p\n", bt);
|
||||||
|
|
||||||
bt = elm_button_add(win);
|
bt = elm_button_add(win);
|
||||||
ic = elm_icon_add(win);
|
ic = elm_icon_add(win);
|
||||||
|
@ -942,6 +947,7 @@ my_bt_15(void *data, Evas_Object *obj, void *event_info)
|
||||||
evas_object_size_hint_weight_set(bt, 1.0, 0.0);
|
evas_object_size_hint_weight_set(bt, 1.0, 0.0);
|
||||||
elm_box_pack_end(bx2, bt);
|
elm_box_pack_end(bx2, bt);
|
||||||
evas_object_show(bt);
|
evas_object_show(bt);
|
||||||
|
printf("bt = %p\n", bt);
|
||||||
|
|
||||||
elm_box_pack_end(bx, bx2);
|
elm_box_pack_end(bx, bx2);
|
||||||
evas_object_show(bx2);
|
evas_object_show(bx2);
|
||||||
|
|
|
@ -356,7 +356,7 @@ elm_notepad_add(Evas_Object *parent)
|
||||||
elm_widget_on_focus_hook_set(obj, _on_focus_hook, NULL);
|
elm_widget_on_focus_hook_set(obj, _on_focus_hook, NULL);
|
||||||
elm_widget_data_set(obj, wd);
|
elm_widget_data_set(obj, wd);
|
||||||
elm_widget_del_hook_set(obj, _del_hook);
|
elm_widget_del_hook_set(obj, _del_hook);
|
||||||
elm_widget_can_focus_set(obj, 0);
|
elm_widget_can_focus_set(obj, 1);
|
||||||
|
|
||||||
wd->scroller = elm_scroller_add(parent);
|
wd->scroller = elm_scroller_add(parent);
|
||||||
elm_widget_resize_object_set(obj, wd->scroller);
|
elm_widget_resize_object_set(obj, wd->scroller);
|
||||||
|
|
Loading…
Reference in New Issue