Screen orientation issue when CheckButton is setchecked

Screen orientation issue when CheckButton is setchecked

BY 28 Mar 2013 Native Application Development

Hello,

I have one form designed in landscape mode (orientation=”Landscape” in xml). The form contains two CheckButtons and two Buttons.
The problem is that when I set any CheckButton as checked by code it show the form in portrait and cut.
Please note that I also setting the orientation by code:
 
pForm->SetOrientation(Tizen::Ui::ORIENTATION_LANDSCAPE); This is the code of the form:

Form code:

OnIniatilizing()
{​
     ​CheckButton* pCheckButton1 = static_cast<CheckButton*>(GetControl(L"IDC_CHECKBUTTON1", true));

     pCheckButton1->SetActionId(ID_CHECK_BUTTON1_CHECKED, ID_CHECK_BUTTON1_UNCHECKED, ID_CHECK_BUTTON1_SELECTED);

     pCheckButton1->AddActionEventListener(*this);

     pCheckButton1->SetSelected(false);

​} 

Have you experience any issue like this?

Thanks!

Written by