{
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 )
"background-color": [0.5,0.5,0,1],
"parent-origin": "CENTER",
"size":[400,500,1],
- "rows": 4,
- "columns":4,
"cell-padding": [10, 5],
"layout-rows": { // set the height of the rows
"0": { "policy": "fixed", "value": 40 },
"actors": [{
"name":"gallery-1",
"type":"ImageActor",
+ "width-resize-policy":"FILL_TO_PARENT",
+ "height-resize-policy":"FILL_TO_PARENT",
"image": {
"filename": "{DALI_IMAGE_DIR}gallery-large-1.jpg"
},
"custom-properties": { // properties registered dynamically
- "cell-indices": [0,0],// property to specify the top-left cell this child occupies
+ "cell-indices": [0,0], // property to specify the top-left cell this child occupies
"row-span":4, // property to specify how many rows this child occupies, if not set, default value is 1
- "column-spam":1 // property to specify how many columns this child occupies, if nor set, defualt cvalue is 1
+ "column-span":1 // property to specify how many columns this child occupies, if nor set, defualt cvalue is 1
}
},{
"name":"gallery-2",
"type":"ImageActor",
+ "width-resize-policy":"FILL_TO_PARENT",
+ "height-resize-policy":"FILL_TO_PARENT",
"image": {
"filename": "{DALI_IMAGE_DIR}gallery-large-2.jpg"
},
}, {
"name":"gallery-3",
"type":"ImageActor",
+ "width-resize-policy":"FILL_TO_PARENT",
+ "height-resize-policy":"FILL_TO_PARENT",
"image": {
"filename": "{DALI_IMAGE_DIR}gallery-large-3.jpg"
},
}, {
"name":"gallery-4",
"type":"ImageActor",
+ "width-resize-policy":"FILL_TO_PARENT",
+ "height-resize-policy":"FILL_TO_PARENT",
"image": {
"filename": "{DALI_IMAGE_DIR}gallery-large-4.jpg"
},