Languages

Menu
Sites
Language
How to force expand full screen a popup?

Hi!

as the tittle says... How to force expand full screen a popup?

Also, Can I use a table o grid in a popup for set the components?

Thanks!!

Responses

3 Replies
Armaan-Ul- Islam

As little as I've worked with popups it seems popup is expanded with respect to objects packed in it. Please check out the sample:

 

New Project > Sample > Mobile > Native > UI > UI components > src dir > popup.c

 

There are lots of different sample popup code there. Anyways you may also try:  elm_win_fullscreen_set (popup,true);

I guess setting table, grid, layout on popup shouldn't be any issue.

Carlos Dominguez

Hello,

elm_win_fullscreen_set (popup,true); dont make any effect, and

elm_win_fullscreen_set (layout,true); also dont make any effect...

 

I am trying to add more components to the popup for see if I can fix it in the window, I have this:

appdata_s *ad = data;

    ad->popup_setting = elm_popup_add(ad->conform);
    elm_popup_align_set(ad->popup_setting, ELM_NOTIFY_ALIGN_FILL, 1.0);
    //eext_object_event_callback_add(ad->popup_setting, EEXT_CALLBACK_BACK, eext_popup_back_cb, NULL);
    evas_object_size_hint_weight_set(ad->popup_setting, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
    elm_object_text_set(ad->popup_setting, "Settings");

 

    Evas_Object *layout = elm_layout_add(ad->popup_setting);
    elm_layout_theme_set(layout, "layout", "drawer", "panel");
    evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
    elm_object_content_set(ad->popup_setting, layout);

    Evas_Object *button_popup_save = elm_button_add(ad->popup_setting);
    elm_object_text_set(button_popup_save, "Save");
    evas_object_smart_callback_add(button_popup_save, "clicked", setting_popup_save_cb, ad);
    elm_object_part_content_set(ad->popup_setting, "button1", button_popup_save);

    Evas_Object *button_popup_cancel = elm_button_add(ad->popup_setting);
    elm_object_text_set(button_popup_cancel, "Cancel");
    evas_object_smart_callback_add(button_popup_cancel, "clicked", setting_popup_cancel_cb, ad);
    elm_object_part_content_set(ad->popup_setting, "button2", button_popup_cancel);

    //elm_win_fullscreen_set (layout,true);

    Evas_Object *label = elm_label_add(layout);
    elm_object_text_set(label, LABELFORMATSTART "Waiting GPS status" LABELFORMATEND);
    elm_object_part_content_set(layout, "elm.swallow.content" , label);

    Evas_Object *entry = elm_entry_add(layout);
    elm_entry_single_line_set(entry, EINA_TRUE);
    elm_entry_scrollable_set(entry, EINA_TRUE);
    evas_object_size_hint_weight_set(entry, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
    evas_object_size_hint_align_set(entry, EVAS_HINT_FILL, EVAS_HINT_FILL);
    eext_entry_selection_back_event_allow_set(entry, EINA_TRUE);
    elm_object_part_text_set(entry, "elm.guide", "Guide Text");
    elm_object_part_content_set(layout, "elm.swallow.content" , entry);

 

The two buttons appears because are out of the layout, but the layout only shows the text field compinent and not the label, and I can not underestand why...

Any idea?

Thanks

Armaan-Ul- Islam