2009/1/26 Oguz Yarimtepe <comp....@gmail.com>:
> Hi,
>
> I was trying to set a box that will include some thumbs at my
> application but i couldn't find how to use swallowing with a box that
> will include some pics. Here is the EDC part:
>
> part {
>                        name: "picthumblist";
>                        clip_to: "left";
>                        repeat_events: 1;
>                        type: "SWALLOW";

You rather use "type: BOX" ;-)


> Ned here is the code:
>
>       Evas_Object *box;
>        Evas_Object *img;
>        box=evas_object_box_add(evas);
>        evas_object_box_layout_set(box,
> evas_object_box_layout_homogeneous_max_size_horizontal, NULL, NULL);
>
>        img=evas_object_image_filled_add(evas);
>        evas_object_image_file_set(img, "/animage.png", NULL);
>        evas_object_box_prepend(box, img);

almost fine, but if you want your object to be resized you must use
size_hints, see documentation at evas_object_box.c or
http://docs.enlightenment.org/api/evas/html/group__Evas__Object__Box.html#g9c9046e3d12eefca2d53992521e9bdd9
more specifically under "Child element's properties". In code:

evas_object_size_hints_align_set(img, -1.0, -1.0);
evas_object_box_prepend(box, img);


should be that.

Yes, we really lack some examples about box and table, which are quite
new. If you have some minutes, please add some examples at
http://trac.enlightenment.org/wiki/ we'd appreciate.

-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--------------------------------------
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to