Languages

Menu
Sites
Language
evas_object_hide() have no effect

 

evas_object_hide(Evas_Object *); 

     The function can't hide an evas_object ,Do I have make a mistake ?

 

Responses

2 Replies
Eugene Kurzberg

You are probably trying to hide an object which is set into some other object's part. If this is the case you should use the following method:

evas_object_hide(elm_object_part_content_unset(parent, "part_name"));
Mango Bar

Add your evas_object in box container . Then call evas_object_hide(Evas_Object *obj). It will work fine.

Evas_Object *box = elm_box_add(ad->conform);
evas_object_show(box);

ad->label = elm_label_add(ad->conform);
elm_object_text_set(ad->label, "<align=center>Hello Tizen</align>");
evas_object_show(ad->label);
elm_box_pack_end(box,ad->label);

evas_object_hide(ad->label);