Hi
I am trying to add two swallow objects as table items.
I have created three swallow object and fill two object as label and pack
those label as table item.
Problem-
I got 1st label while window load and got table while i resize the window.
Please suggest what i am doing wrong.
collections {
group {
name: "test_group";
parts {
part {
name: "OBJ_ONE";
type: SWALLOW;
description {
state: "default" 0.0;
}
}
part {
name: "OBJ_TWO";
type: SWALLOW;
description {
state: "default" 0.0;
}
}
part {
name: "OBJ_TBL";
type: SWALLOW;
description {
state: "default" 0.0;
}
}
}
}
==============C code========
EAPI_MAIN int
elm_main(int argc, char **argv)
{
Evas_Object *win, *bg, *label, *table,*layout;
win = elm_win_add(NULL, "table", ELM_WIN_BASIC);
elm_win_title_set(win, "Table");
elm_win_autodel_set(win, EINA_TRUE);
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
layout= elm_layout_add(win);
elm_win_resize_object_add(win, layout);
evas_object_show(layout);
Eina_Bool elm_layout_file_set(layout,test.edj,"test_group");
table = elm_table_add(layout);
evas_object_show(table);
elm_table_padding_set(table, 5, 5);
elm_table_homogeneous_set(table, EINA_TRUE);
label = elm_label_add(win);
elm_object_text_set(label, "label 0");
evas_object_show(label);
elm_table_pack(table, label, 0, 0, 1, 1);
elm_object_part_content_set(layout, "OBJ_ONE", label);
label = elm_label_add(win);
elm_object_text_set(label, "label 1");
evas_object_show(label);
elm_table_pack(table, label, 1, 0, 1, 1);
elm_object_part_content_set(layout, "OBJ_TWO", label);
elm_object_part_content_set(layout, "OBJ_TBL", table);
evas_object_show(win);
}
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
enlightenment-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-users