{
mPopup = CreatePopup();
- // The popup is not yet on the stage so needs to be flaged as dirty
- mPopup.MarkDirtyForRelayout();
-
mPopup.Show();
}
else if( button.GetName() == POPUP_BUTTON_TITLE_ID )
mPopup = CreatePopup();
mPopup.SetTitle( "Popup!" );
- // The popup is not yet on the stage so needs to be flaged as dirty
- mPopup.MarkDirtyForRelayout();
-
mPopup.Show();
}
else if( button.GetName() == POPUP_BUTTON_BUTTONS_1_ID )
mPopup.AddButton( okayButton );
- // The popup is not yet on the stage so needs to be flaged as dirty
- mPopup.MarkDirtyForRelayout();
-
mPopup.Show();
}
else if( button.GetName() == POPUP_BUTTON_BUTTONS_2_ID )
mPopup.AddButton( okayButton );
- // The popup is not yet on the stage so needs to be flaged as dirty
- mPopup.MarkDirtyForRelayout();
-
mPopup.Show();
}
else if( button.GetName() == POPUP_BUTTON_TITLE_BUTTONS_ID )
mPopup.AddButton( okayButton );
- // The popup is not yet on the stage so needs to be flaged as dirty
- mPopup.MarkDirtyForRelayout();
-
mPopup.Show();
}
else if( button.GetName() == POPUP_BUTTON_CONTENT_TEXT_ID )
mPopup.Add( text );
- // The popup is not yet on the stage so needs to be flaged as dirty
- mPopup.MarkDirtyForRelayout();
-
mPopup.Show();
}
else if( button.GetName() == POPUP_BUTTON_CONTENT_IMAGE_ID )
mPopup.Add( image );
- // The popup is not yet on the stage so needs to be flaged as dirty
- mPopup.MarkDirtyForRelayout();
-
mPopup.Show();
}
else if( button.GetName() == POPUP_BUTTON_CONTENT_IMAGE_SCALE_ID )
mPopup.Add( image );
- // The popup is not yet on the stage so needs to be flaged as dirty
- mPopup.MarkDirtyForRelayout();
-
mPopup.Show();
}
else if( button.GetName() == POPUP_BUTTON_CONTENT_IMAGE_FIT_ID )
mPopup.Add( image );
- // The popup is not yet on the stage so needs to be flaged as dirty
- mPopup.MarkDirtyForRelayout();
-
mPopup.Show();
}
else if( button.GetName() == POPUP_BUTTON_CONTENT_IMAGE_FILL_ID )
mPopup.Add( image );
- // The popup is not yet on the stage so needs to be flaged as dirty
- mPopup.MarkDirtyForRelayout();
-
mPopup.Show();
}
else if( button.GetName() == POPUP_BUTTON_TITLE_CONTENT_TEXT_ID )
mPopup.Add( text );
- // The popup is not yet on the stage so needs to be flaged as dirty
- mPopup.MarkDirtyForRelayout();
-
mPopup.Show();
}
else if( button.GetName() == POPUP_BUTTON_TITLE_CONTENT_TEXT_BUTTONS_ID )
mPopup.AddButton( okayButton );
- // The popup is not yet on the stage so needs to be flaged as dirty
- mPopup.MarkDirtyForRelayout();
-
mPopup.Show();
}
else if( button.GetName() == POPUP_BUTTON_COMPLEX_ID )
root.AddChild( text, Toolkit::TableView::CellPosition( 0, 1 ) );
- content.AddChild( root, Toolkit::TableView::CellPosition( 1, 0, 0, 2 ) ); // Column span 2
+ content.AddChild( root, Toolkit::TableView::CellPosition( 1, 0 ) );
}
mPopup.Add( content );
mPopup.AddButton( okayButton );
- // The popup is not yet on the stage so needs to be flaged as dirty
- mPopup.MarkDirtyForRelayout();
-
mPopup.Show();
}
else if( button.GetName() == TABLEVIEW_BUTTON_EMPTY_ID )
mPopup.Add( table );
- // The popup is not yet on the stage so needs to be flaged as dirty
- mPopup.MarkDirtyForRelayout();
-
mPopup.Show();
}
else if( button.GetName() == TABLEVIEW_BUTTON_1CELL_ID )
mPopup.Add( table );
- // The popup is not yet on the stage so needs to be flaged as dirty
- mPopup.MarkDirtyForRelayout();
-
mPopup.Show();
}
else if( button.GetName() == TABLEVIEW_BUTTON_3CELL_ID )
mPopup.Add( table );
- // The popup is not yet on the stage so needs to be flaged as dirty
- mPopup.MarkDirtyForRelayout();
-
mPopup.Show();
}
else if( button.GetName() == TABLEVIEW_BUTTON_3X3CELL_ID )
mPopup.Add( table );
- // The popup is not yet on the stage so needs to be flaged as dirty
- mPopup.MarkDirtyForRelayout();
-
mPopup.Show();
}
else if( button.GetName() == TABLEVIEW_BUTTON_FIXED1_ID )
mPopup.Add( table );
- // The popup is not yet on the stage so needs to be flaged as dirty
- mPopup.MarkDirtyForRelayout();
-
mPopup.Show();
}
else if( button.GetName() == TABLEVIEW_BUTTON_FIXED2_ID )
mPopup.Add( table );
- // The popup is not yet on the stage so needs to be flaged as dirty
- mPopup.MarkDirtyForRelayout();
-
mPopup.Show();
}
else if( button.GetName() == TABLEVIEW_BUTTON_FIT1_ID )
mPopup.Add( table );
- // The popup is not yet on the stage so needs to be flaged as dirty
- mPopup.MarkDirtyForRelayout();
-
mPopup.Show();
}
else if( button.GetName() == TABLEVIEW_BUTTON_FIT2_ID )
mPopup.Add( table );
- // The popup is not yet on the stage so needs to be flaged as dirty
- mPopup.MarkDirtyForRelayout();
-
mPopup.Show();
}
else if( button.GetName() == TABLEVIEW_BUTTON_NATURAL1_ID )
mPopup.Add( table );
- // The popup is not yet on the stage so needs to be flaged as dirty
- mPopup.MarkDirtyForRelayout();
-
mPopup.Show();
}
else if( button.GetName() == TABLEVIEW_BUTTON_NATURAL2_ID )
mPopup.Add( table );
- // The popup is not yet on the stage so needs to be flaged as dirty
- mPopup.MarkDirtyForRelayout();
-
mPopup.Show();
}
else if( button.GetName() == TABLEVIEW_BUTTON_NATURAL3_ID )
mPopup.Add( table );
- // The popup is not yet on the stage so needs to be flaged as dirty
- mPopup.MarkDirtyForRelayout();
-
mPopup.Show();
}
else if( button.GetName() == OKAY_BUTTON_ID || button.GetName() == CANCEL_BUTTON_ID )