- mTableView = Toolkit::TableView::New( NUMBER_OF_LANGUAGES, 1 );
- mTableView.SetResizePolicy( FILL_TO_PARENT, WIDTH );
- mTableView.SetResizePolicy( USE_NATURAL_SIZE, HEIGHT );
- mTableView.SetParentOrigin( ParentOrigin::TOP_LEFT );
- mTableView.SetAnchorPoint( AnchorPoint::TOP_LEFT );
- mTableView.TouchedSignal().Connect( this, &TextLabelMultiLanguageExample::OnTouchEvent );
- stage.Add( mTableView );
+ mTableView = Toolkit::TableView::New(NUMBER_OF_LANGUAGES, 1);
+ mTableView.SetResizePolicy(ResizePolicy::FILL_TO_PARENT, Dimension::WIDTH);
+ mTableView.SetResizePolicy(ResizePolicy::USE_NATURAL_SIZE, Dimension::HEIGHT);
+ mTableView.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_LEFT);
+ mTableView.SetProperty(Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT);
+ mTableView.TouchedSignal().Connect(this, &TextLabelMultiLanguageExample::OnTouch);
+ window.Add(mTableView);