- stage = Stage::GetCurrent();
- stage.SetBackgroundColor(Color::BLACK);
- stage.KeyEventSignal().Connect(this, &MyTester::OnKey);
- stage.TouchSignal().Connect(this, &MyTester::OnTouch);
-
- TextLabel rubric = TextLabel::New( "You will need a working internet connection to see the images below");
- rubric.SetProperty( TextLabel::Property::MULTI_LINE, true );
- rubric.SetProperty( TextLabel::Property::TEXT_COLOR, Color::WHITE );
- rubric.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::WIDTH );
- rubric.SetResizePolicy( ResizePolicy::DIMENSION_DEPENDENCY, Dimension::HEIGHT );
- rubric.SetParentOrigin( ParentOrigin::TOP_CENTER );
- rubric.SetAnchorPoint( ParentOrigin::TOP_CENTER );
- stage.Add( rubric );
+ mWindow = application.GetWindow();
+ mWindow.SetBackgroundColor(Color::BLACK);
+ mWindow.KeyEventSignal().Connect(this, &MyTester::OnKey);
+ mWindow.TouchedSignal().Connect(this, &MyTester::OnTouch);
+
+ TextLabel rubric = TextLabel::New("You will need a working internet connection to see the images below");
+ rubric.SetProperty(TextLabel::Property::MULTI_LINE, true);
+ rubric.SetProperty(TextLabel::Property::TEXT_COLOR, Color::WHITE);
+ rubric.SetResizePolicy(ResizePolicy::FILL_TO_PARENT, Dimension::WIDTH);
+ rubric.SetResizePolicy(ResizePolicy::DIMENSION_DEPENDENCY, Dimension::HEIGHT);
+ rubric.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_CENTER);
+ rubric.SetProperty(Actor::Property::ANCHOR_POINT, ParentOrigin::TOP_CENTER);
+ mWindow.Add(rubric);