From: Jinho, Lee Date: Thu, 20 Apr 2017 06:59:35 +0000 (+0900) Subject: Text scrolling example use scrolling stop mode(FINISH_LOOP, IMMEDIATE) and loop delay X-Git-Tag: dali_1.2.40~3^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ecfeadc4f00a61128705435a4f50d8c1c1256b3b;hp=-c;p=platform%2Fcore%2Fuifw%2Fdali-demo.git Text scrolling example use scrolling stop mode(FINISH_LOOP, IMMEDIATE) and loop delay Change-Id: I991ccd799fd33bcfcf9ebfd392c0b429065996cb --- ecfeadc4f00a61128705435a4f50d8c1c1256b3b diff --git a/examples/text-scrolling/text-scrolling-example.cpp b/examples/text-scrolling/text-scrolling-example.cpp index 66a358b..709dce0 100644 --- a/examples/text-scrolling/text-scrolling-example.cpp +++ b/examples/text-scrolling/text-scrolling-example.cpp @@ -23,6 +23,7 @@ // EXTERNAL INCLUDES #include #include +#include using namespace Dali; using namespace Dali::Toolkit; @@ -181,6 +182,8 @@ public: Toolkit::PushButton scrollRtlButton = Toolkit::PushButton::New(); scrollRtlButton.ClickedSignal().Connect( this, &TextScrollingExample::OnButtonClickedRtl ); CreateLabel( mRtlLabel, "مرحبا بالعالم", boxD , true, scrollRtlButton ); + mRtlLabel.SetProperty(DevelTextLabel::Property::AUTO_SCROLL_STOP_MODE, DevelTextLabel::AutoScrollStopMode::IMMEDIATE ); + mRtlLabel.SetProperty(DevelTextLabel::Property::AUTO_SCROLL_LOOP_DELAY, 0.3f ); CreateBox( "boxE", boxE, desktop, SCROLLING_BOX_SIZE ); boxE.SetPosition( 0.0f, -100.0f, 1.0f ); @@ -190,6 +193,7 @@ public: mRtlLongLabel.SetProperty(TextLabel::Property::AUTO_SCROLL_SPEED, 500); mRtlLongLabel.SetProperty(TextLabel::Property::AUTO_SCROLL_GAP, 500); mRtlLongLabel.SetProperty(TextLabel::Property::AUTO_SCROLL_LOOP_COUNT, 3); + mRtlLongLabel.SetProperty(DevelTextLabel::Property::AUTO_SCROLL_STOP_MODE, DevelTextLabel::AutoScrollStopMode::FINISH_LOOP ); mPanGestureDetector = PanGestureDetector::New(); mPanGestureDetector.DetectedSignal().Connect(this, &TextScrollingExample::OnPanGesture );