Languages

Menu
Sites
Language
화면전환 질문드립니다.

ui builder 를 이용해서 뷰를 2개를 만들고 첫번째 뷰에는 버튼하나를 만들었습니다.

버튼생성후 properties 에서 clicked 이벤트를 만들어서

/*******************************************************************************
* This file was generated by UI Builder.
* User should hand edit this file.
********************************************************************************/

#include "app_main.h"
#include "uib_views.h"

typedef struct _uib_view1_control_context {
 /* add your variables here */

} uib_view1_control_context;

void view1_button1_onclicked(uib_view1_view_context *vc, Evas_Object *obj, void *event_info) {
                   ???????????
}

라는 이벤트 핸들러가 만들어졌습니다 여기서 버튼을 클릭시 두번째 뷰로 넘어가려면 어떤식으로 코드를 작성해야하는지

알려주시면 감사하겠습니다.

Responses

2 Replies
Masum Talukder

Please post your query in English.

thanks.

Alex Dem

Hi,

If you use "UI Builder Navigation" template
I hope all you need is just add  into your code to use alraedy generated change_page():

void view1_button1_onclicked(uib_view1_view_context *vc, Evas_Object *obj, void *event_info) {

Elm_Object_Item* navi_item = change_page(vc->parent, "Title", NULL, NULL, "view2", NULL);
//...

}

to load other naviframe with desired name.
Alexey.