Hello, Well I don't know where to start. It looks like you misunderstood some basic concepts.
1. Set the weight size hint for window resize object if you want to resize the window. Or the window size will be shrinked to the min size of its resize object. Read the documentation. https://build.enlightenment.org/job/nightly_elm_gcc_x86_64/lastSuccessfulBuild/artifact/doc/html/group__Win.html#ga505d6bd217e5ee01e82b548ec35986eb 2. Put an object just in one place. You packed label into a table and content_set the label into layout. You can just use an object in one place. 3. Just use table. It looks like you don't need a layout in this example. Just use table and pack labels into a table. Thanks. Daniel Juyung Seo (SeoZ) On Tue, May 28, 2013 at 12:55 PM, Anurag Choudhary <anurag....@gmail.com>wrote: > 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-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel