+ button.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT );
+ button.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_LEFT );
+ button.SetProperty( Actor::Property::POSITION, Vector2( 240, 400 ));
+ button.SetProperty( Actor::Property::SIZE, Vector2( 100, 100 ) );
+ application.GetScene().Add( button );
+
+ application.SendNotification();
+ application.Render();
+
+ button.SetProperty( Toolkit::Button::Property::AUTO_REPEATING, true );
+ button.SetProperty( Toolkit::Button::Property::INITIAL_AUTO_REPEATING_DELAY, AUTO_REPEATING_DELAY );
+ // connect to its touch signal
+ ConnectionTracker* testTracker = new ConnectionTracker();
+ button.PressedSignal().Connect( &ButtonCallback );
+ button.ClickedSignal().Connect( &ButtonCallback );
+ bool clickedSignal = false;
+ bool pressedSignal = false;
+ button.ConnectSignal( testTracker, "pressed", CallbackFunctor(&pressedSignal) );
+ button.ConnectSignal( testTracker, "clicked", CallbackFunctor(&clickedSignal) );
+
+ Dali::Integration::TouchEvent event;
+
+ // Touch point down and up inside the button.
+
+ gIsCalledButtonCallback = false;
+ event = Dali::Integration::TouchEvent();
+ event.AddPoint( GetPointDownInside() );
+ application.ProcessEvent( event );