언어 설정

Menu
Sites
Language
Header/Footer/Button items

Hi ,
I have created Form and set ShowHeader=true in UI Builder.
1)I am able to create Header Item and place it on header this way

    Header* pHeader = GetHeader();
    __pHeaderItem1 = new HeaderItem;
    __pHeaderItem1->Construct(actionID);
    __pHeaderItem1->SetText("HeaderItem1");
    pHeader->AddItem(*__pHeaderItem1);

After this I have pointer to HeaderItem and could perform any actions, use Tizen::Ui::Controls::Header class methods.

2) If I am adding HeaderItem via UI Builder I can't find how to get pointer to concrete HeaderItem, there is no GetHeaderItem(id or something else) method in api, and I can't use static_cast< HeaderItem* >GetControl(resID), HeaderItems have no ResourceIDs.

Is it possible to obtain it?
p.s. Footer/Button items have identical problems.
Thank you in advance.
Alexey

Edited by: Brock Boland on 17 3월, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

1 댓글
wil smith
Alex, you are correct, the behavior looks to be bit unconventional. It would be better not to rely upon UIBuilder for FooterItem and HeaderItem if your requirement is to change their attributes in runtime, manage them programmatically if you want to do so. GetControl() won't be useful as FooterItem/HeaderItem is not a control.