Languages

Menu
Sites
Language
can I add swallow part to genlist?

Hi,

Can i add swallow part to genlist? my requirement is i need start genlist starting postion from particullar position.I am not getting how start genlist from particular postion.Please help me to start genlist from particular postion.

Responses

2 Replies
bhoomika rathod

you can add your genlist to table widget.Like below,
you can change parameters of my_table_pack() to start your genlist from perticular position.

        Evas_Object *table = elm_table_add(ad->conform);
        elm_table_homogeneous_set(table, EINA_TRUE);
	elm_table_padding_set(table, 10 * elm_config_scale_get(),10 * elm_config_scale_get());
	evas_object_size_hint_weight_set(table, EVAS_HINT_EXPAND,EVAS_HINT_EXPAND);
	evas_object_size_hint_align_set(table, EVAS_HINT_FILL, EVAS_HINT_FILL);
	evas_object_show(table);

	/*  Genlist  */
	Evas_Object  *genlist =elm_genlist_add(ad->conform);
	my_table_pack(table,genlist,0,0,10,10);
static  void
    my_table_pack(Evas_Object *table,Evas_Object *child,int x,int y,int w,int h)
	{
	evas_object_size_hint_align_set(child,EVAS_HINT_FILL,EVAS_HINT_FILL);
	evas_object_size_hint_weight_set(child,EVAS_HINT_EXPAND,EVAS_HINT_EXPAND);
	elm_table_pack(table,child,x,y,w,h);
	evas_object_show(child);
	}

 

victory yuvaraju

tq Bhoomika rathood,