Toolkit::TableView tableView = Toolkit::TableView::New( 1, 2 );
tableView.SetSize( DP(260), DP(RADIO_LABEL_THUMBNAIL_SIZE) );
- Toolkit::TextView textView = Toolkit::TextView::New( "Select enabled" );
- Toolkit::Alignment alignment = Toolkit::Alignment::New( Toolkit::Alignment::HorizontalLeft );
- alignment.Add( textView );
- tableView.AddChild( alignment, Toolkit::TableView::CellPosition( 0, 0 ) );
-
ImageActor imageActor = ImageActor::New( ResourceImage::New( ENABLED_IMAGE ) );
imageActor.SetSize( DP(RADIO_LABEL_THUMBNAIL_SIZE), DP(RADIO_LABEL_THUMBNAIL_SIZE) );
tableView.AddChild( imageActor, Toolkit::TableView::CellPosition( 0, 1 ) );
bool OnCheckBoxesSelected( Toolkit::Button button )
{
- if( button.GetName() == "checkbox1" )
- {
- if( button.IsSelected() )
- {
- button.SetLabel("CheckBox1 is selected");
- }
- else
- {
- button.SetLabel("CheckBox1 is unselected");
- }
- }
-
- if( button.GetName() == "checkbox2" )
- {
- if( button.IsSelected() )
- {
- button.SetLabel("CheckBox2 is selected");
- }
- else
- {
- button.SetLabel("CheckBox2 is unselected");
- }
- }
-
- if( button.GetName() == "checkbox3" )
- {
- if( button.IsSelected() )
- {
- button.SetLabel("CheckBox3 is selected");
- }
- else
- {
- button.SetLabel("CheckBox3 is unselected");
- }
- }
-
return true;
}