- mPopup.SetResizePolicy( ResizePolicy::SIZE_RELATIVE_TO_PARENT, Dimension::ALL_DIMENSIONS );
- mPopup.SetProperty( Actor::Property::SIZE_MODE_FACTOR, Vector3( 0.75f, 0.5f, 1.0f ) );
-
- Toolkit::TableView table = Toolkit::TableView::New( 3, 1 );
- table.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS );
- table.SetFixedHeight( 0, 50.0f );
-
- {
- Actor backing = CreateSolidColor( Vector4( 1.0f, 0.0f, 0.0f, 1.0f ) );
- backing.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS );
- Toolkit::TextLabel text = Toolkit::TextLabel::New( "Fixed" );
- text.SetProperty( Toolkit::TextLabel::Property::TEXT_COLOR, Color::WHITE );
- text.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
- text.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS );
- text.SetProperty( Toolkit::TextLabel::Property::HORIZONTAL_ALIGNMENT, "CENTER" );
- text.SetProperty( Toolkit::TextLabel::Property::VERTICAL_ALIGNMENT, "CENTER" );
- backing.Add( text );
- table.Add( backing );
- }
- {
- Actor backing = CreateSolidColor( Vector4( 1.0f, 1.0f, 0.0f, 1.0f ) );
- backing.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS );
- Toolkit::TextLabel text = Toolkit::TextLabel::New( "Fill" );
- text.SetProperty( Toolkit::TextLabel::Property::TEXT_COLOR, Color::WHITE );
- text.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS );
- text.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
- text.SetProperty( Toolkit::TextLabel::Property::HORIZONTAL_ALIGNMENT, "CENTER" );
- text.SetProperty( Toolkit::TextLabel::Property::VERTICAL_ALIGNMENT, "CENTER" );
- backing.Add( text );
- table.Add( backing );
- }
- {
- Actor backing = CreateSolidColor( Vector4( 0.0f, 1.0f, 0.0f, 1.0f ) );
- backing.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS );
- Toolkit::TextLabel text = Toolkit::TextLabel::New( "Fill" );
- text.SetProperty( Toolkit::TextLabel::Property::TEXT_COLOR, Color::WHITE );
- text.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS );
- text.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
- text.SetProperty( Toolkit::TextLabel::Property::HORIZONTAL_ALIGNMENT, "CENTER" );
- text.SetProperty( Toolkit::TextLabel::Property::VERTICAL_ALIGNMENT, "CENTER" );
- backing.Add( text );
- table.Add( backing );
- }
-
- mPopup.Add( table );
-
- StagePopup( mPopup );
+ mPopup.SetResizePolicy(ResizePolicy::SIZE_RELATIVE_TO_PARENT, Dimension::ALL_DIMENSIONS);
+ mPopup.SetProperty(Actor::Property::SIZE_MODE_FACTOR, Vector3(0.75f, 0.5f, 1.0f));
+
+ Toolkit::TableView table = Toolkit::TableView::New(3, 1);
+ table.SetResizePolicy(ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS);
+ table.SetFixedHeight(0, 50.0f);
+
+ {
+ Actor backing = CreateSolidColor(Vector4(1.0f, 0.0f, 0.0f, 1.0f));
+ backing.SetResizePolicy(ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS);
+ Toolkit::TextLabel text = Toolkit::TextLabel::New("Fixed");
+ text.SetProperty(Toolkit::TextLabel::Property::TEXT_COLOR, Color::WHITE);
+ text.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER);
+ text.SetResizePolicy(ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS);
+ text.SetProperty(Toolkit::TextLabel::Property::HORIZONTAL_ALIGNMENT, "CENTER");
+ text.SetProperty(Toolkit::TextLabel::Property::VERTICAL_ALIGNMENT, "CENTER");
+ backing.Add(text);
+ table.Add(backing);
+ }
+ {
+ Actor backing = CreateSolidColor(Vector4(1.0f, 1.0f, 0.0f, 1.0f));
+ backing.SetResizePolicy(ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS);
+ Toolkit::TextLabel text = Toolkit::TextLabel::New("Fill");
+ text.SetProperty(Toolkit::TextLabel::Property::TEXT_COLOR, Color::WHITE);
+ text.SetResizePolicy(ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS);
+ text.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER);
+ text.SetProperty(Toolkit::TextLabel::Property::HORIZONTAL_ALIGNMENT, "CENTER");
+ text.SetProperty(Toolkit::TextLabel::Property::VERTICAL_ALIGNMENT, "CENTER");
+ backing.Add(text);
+ table.Add(backing);
+ }
+ {
+ Actor backing = CreateSolidColor(Vector4(0.0f, 1.0f, 0.0f, 1.0f));
+ backing.SetResizePolicy(ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS);
+ Toolkit::TextLabel text = Toolkit::TextLabel::New("Fill");
+ text.SetProperty(Toolkit::TextLabel::Property::TEXT_COLOR, Color::WHITE);
+ text.SetResizePolicy(ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS);
+ text.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER);
+ text.SetProperty(Toolkit::TextLabel::Property::HORIZONTAL_ALIGNMENT, "CENTER");
+ text.SetProperty(Toolkit::TextLabel::Property::VERTICAL_ALIGNMENT, "CENTER");
+ backing.Add(text);
+ table.Add(backing);
+ }
+
+ mPopup.Add(table);
+
+ ShowPopup(mPopup);