On Tue, 3 Jul 2012 08:44:45 +0900 (KST) ChunEon Park <her...@naver.com> said:
> Hi. > If my guess is correct, you need to use the layout instead of the conformant. > In Tinzen, usually user uses the conformant for the virtual keypad and the > clipboard but not indicator. Maybe... the window manager doesn't care the > indicator. So.. please refer the blew code. conformant handles indicator too. did someone patch e to NOT send indicator spacing info? it SHOULD work to just pmake win, put conformant in win, put your content in conformant, set tru on your window that it is conformant and conformant should move/resize your content to adjust for the indicator AND for the vkbd if/when it appears. i'm staring at the code in conformant to handle exactly this. > ex) > > Evas_Object *win, *bg, *layout, *btn, *en; > win = elm_win_add(NULL, "conformant", ELM_WIN_BASIC); > elm_win_borderless_set(win, EINA_TRUE); > elm_win_indicator_mode_set(win, ELM_WIN_INDICATOR_SHOW); > elm_win_indicator_opacity_set(win, ELM_WIN_INDICATOR_TRANSPARENT); > evas_object_size_hint_weight_set(win, EVAS_HINT_EXPAND, > EVAS_HINT_EXPAND); > Evas_Object *layout = elm_layout_add(win); > elm_layout_theme_set(layout, "layout", "application", "default"); > evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); > elm_win_resize_object_add(win, layout); > evas_object_show(layout); > btn = elm_button_add(win); > elm_object_text_set(btn, "Test Conformant"); > evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, > EVAS_HINT_EXPAND); > evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL); > evas_object_show(btn); > elm_object_content_set(layout, btn); > evas_object_show(win); > > > > ------------------------------------ > -Regards, Hermet- > -----Original Message----- > From: "Roland Kloeters"<roland.kloet...@xcom.de> > To: <enlightenment-devel@lists.sourceforge.net>; > Cc: > Sent: 2012-07-03 (화) 07:46:20 > Subject: [E-devel] Problem with indicator space in conformant > > Hello folks, > > I'm new to devloping application with enlightment. > I made a simple application for my Tizen environment and had to find out > the conformant I am using is not concidering the space of the indicator. > The application consists of a window, a conformant and a button. > > That looks ok except that the button (which takes all the space) is > being overlayed by the indicator at the top of the screen. > The conformant should have resized the window so that it fits below the > indicator. > > Here is my code: > > #include <Elementary.h> > #include <Ecore_X.h> > #include <appcore-efl.h> > > #include <iostream> > > typedef struct __appdata { > Evas *evas; > Evas_Object *win_main; > Evas_Object *ly_main; /* window */ > Evas_Object *navigator; > > } appdata; > > > static int app_create(void *data) { > > Evas_Object *win, *bg, *conform, *btn, *bx, *en; > > win = elm_win_add(NULL, "conformant", ELM_WIN_BASIC); > elm_win_borderless_set(win, EINA_TRUE); > > elm_win_conformant_set(win, EINA_TRUE); > > elm_win_indicator_mode_set(win, ELM_WIN_INDICATOR_SHOW); > elm_win_indicator_opacity_set(win, ELM_WIN_INDICATOR_TRANSPARENT); > > evas_object_size_hint_weight_set(win, EVAS_HINT_EXPAND, > EVAS_HINT_EXPAND); > > conform = elm_conformant_add(win); > evas_object_size_hint_weight_set(conform, EVAS_HINT_EXPAND, > EVAS_HINT_EXPAND); > evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL); > elm_win_resize_object_add(win, conform); > evas_object_show(conform); > > btn = elm_button_add(win); > elm_object_text_set(btn, "Test Conformant"); > evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, > EVAS_HINT_EXPAND); > evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL); > evas_object_show(btn); > > elm_object_content_set(conform, btn); > > evas_object_show(win); > > return 0; > } > > static int app_terminate(void *data) { > return 0; > } > > static int app_pause(void *data) { > return 0; > } > > static int app_resume(void *data) { > return 0; > } > > static int app_reset(bundle *b, void *data) { > return 0; > } > > int main(int argc, char *argv[]) { > > appdata ad; > struct appcore_ops ops; > ops.create = app_create; > ops.terminate = app_terminate; > ops.pause = app_pause; > ops.resume = app_resume; > ops.reset = app_reset; > > memset(&ad, 0x0, sizeof(appdata)); > ops.data = &ad; > > return appcore_efl_main(PACKAGE, &argc, &argv, &ops); > } > > What am I doing wrong. > > Any help is appreciated. > > Kind regards > Roland > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > enlightenment-devel mailing list > enlightenment-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > enlightenment-devel mailing list > enlightenment-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) ras...@rasterman.com ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel